Viewing 15 posts - 91 through 105 (of 581 total)
Something like this? I suspect you don't need aggregates. If you do, why MAX() of a long character field? This solution assumes (updateID,langID) is unique in updatedetails.
July 10, 2006 at 8:57 am
July 10, 2006 at 8:14 am
Using dynamic SQL doesn't generate a new spid (session). It generates a new batch. Temp tables have session scope so they are visible to the new batch. Table variables have batch...
July 10, 2006 at 4:53 am
Your problem most probably arises from the presence of NULLs in your employees table:
Q1:
i ValidReps_Original_Query...
July 9, 2006 at 5:58 am
To expand on the above comments, v9 supports nested comments. But v8 recognises */ and not /* inside a comment block. Once a /* is encountered, further /* s are ignored (treated as comment text)...
July 6, 2006 at 6:05 pm
'
as a part of a string value, as for example ,
July 5, 2006 at 4:49 pm
Yes, no dangling transactions please. Remiss not to mention it. And yes, once again, (all together now) must you use a cursor?
July 5, 2006 at 4:29 pm
I (embarassingly!) dropped the GROUP BY clause when pasting the code in. Still, at least it wouldn't parse at all, as is.
group
by b
July 5, 2006 at 4:14 pm
The reason given was:
>The reason for relying on a "Set @Qry" then executing it, is because this is only a small part of a larger SP and there...
July 5, 2006 at 3:55 pm
@@rowcount is another example. If you want to capture both @@rowcount and @@error, you have to get both at the same time, directly after the statement you are 'watching', otherwise the...
July 5, 2006 at 3:49 pm
top 1 *
...
July 5, 2006 at 3:39 pm
You may need to add some null handling in the having clause.
July 5, 2006 at 3:32 pm
The question is, how to pass this back to the client while the cursor is processing.
To expand on the idea of processing batches, you can open the cursor first, then...
July 5, 2006 at 3:18 pm
You could do the process in batches keeping track of how many batches of what size have been executed so far. If you have more than one connection to the DB, the process...
July 5, 2006 at 12:58 pm
Good decision. First rule of cost-benefit analysis: the past doesn't exist.
July 5, 2006 at 12:26 pm
Viewing 15 posts - 91 through 105 (of 581 total)