Viewing 14 posts - 1 through 14 (of 14 total)
I couldn't wait until Tuesday, I spent Monday afternoon at work creating the delete trigger template.
It works beautifully, thanks for the correction on adding object type to the object_id...
May 31, 2010 at 4:36 pm
Wayne, your solution was MUCH better than mine. Cursors are evil 🙂
May 30, 2010 at 8:55 pm
Thanks for more interesting answers. And Paul, especially thank you for explaining the source of the table name! I don't need it after all, but it is satisfying...
May 30, 2010 at 8:25 pm
Thanks, Jeffrey. That was the syntax I needed.
The temp table will only contain one row, which contains the @LastUpdateUser parameter passed into the stored procedure.
Insert/Update triggers can use the...
May 28, 2010 at 5:43 pm
The temp table is available to the procedure that created it and objects called by it.
I am trying to save an input parameter of UserId to pass to a...
May 28, 2010 at 4:45 pm
This is slow and not elegant, but a cursor will work with your table structure:
DECLARE @Action varchar(10),
@Time datetime,
@UserCount int,
@MaxUsers int
SELECT @UserCount = 0, @MaxUsers = 0
DECLARE Cur CURSOR...
May 28, 2010 at 4:20 pm
Thank you for the filtering idea.
Trace found the issue.
I had to do the promotion with a single text file for all the procedures. I put the...
May 7, 2010 at 10:36 am
Thank you both.
I made a backup yesterday as soon as this started.
A DDL trigger is a good thought, I will experiment with that today.
I ran one trace yesterday, there...
May 7, 2010 at 6:02 am
Try playing with a temp table. This keeps the original employeeid and filters from the activedirectory table first. It should let you use the indexes on WhitePaper:
--------------------------------
create table #ActiveDirectory...
February 26, 2010 at 9:18 am
If you have to work with extensions to a 3rd party application, you need to follow their pattern. I worked on a large health-care system (same as Sean's?), that stored...
February 26, 2010 at 8:44 am
Barry, That link just redirects to the SQL Server 2008 homepage at Microsoft.
February 24, 2010 at 11:54 am
There's probably a better way than this, but I couldn't think of a summary function.
If you wanted this to be generic (any number if values associated with one id),...
June 11, 2009 at 4:55 pm
Thank you, that worked perfectly.
I had tried the same techique putting the exec in a FROM clause, which failed.
🙂
June 11, 2009 at 2:32 pm
Viewing 14 posts - 1 through 14 (of 14 total)