Viewing 8 posts - 1 through 8 (of 8 total)
Steve, an interesting article.
I generally follow a similar pattern to yours.
One thing I notice you haven't mentioned is labelling. I view this as key to successfully managing a...
January 15, 2003 at 6:59 am
alexd1980, you probably have ansi nulls turned on.
In this case NULL=NULL always evaluates to unknown, so your if expression evaluates the ELSE branch.
This is why it doesn't matter...
December 16, 2002 at 2:18 am
my fault for adding to the confusion - didn't spot you were copying rows across to your other table
don't have any bright ideas for the timestamp...
December 13, 2002 at 2:02 pm
I think simplest to use some dynamic sql here - use exec (@sql) where @sql represents a built string from your input params.
eg,
set @sql...
December 13, 2002 at 12:13 pm
you should update the table that the trigger is on, referencing the inserted table & joining over the primary key.
that way you influence the value of the row(s) being...
December 13, 2002 at 11:37 am
not that I know much about this, but I suspect its something to with a transaction wrapped around your sp (possibly implicit).
If you check your sp interactively you should...
December 13, 2002 at 10:26 am
Anyone interested in digging further should check out BOL.
Its simplest to look for 'NULL Comparison Search Conditions' in the index & follow the link to 'Null Values' at the...
December 13, 2002 at 4:16 am
I realised the topic specifically covered variables, but some of these aspects also apply more widely to any expression involving null.
Under sql92 any expression involving null directly evaluates to...
December 12, 2002 at 3:32 am
Viewing 8 posts - 1 through 8 (of 8 total)