Viewing 15 posts - 271 through 285 (of 336 total)
Not sure because I've never tried to do a group by in the primary update (it seems to me to be bad form). If I want aggregate info, then I...
November 30, 2004 at 4:20 pm
put it in a while loop that checks @@rowcount
use SET ROWCOUNT 10000
November 30, 2004 at 1:34 pm
many different ways of doing this...
try
select top 1 columnname from tablename where ... order by ...
November 30, 2004 at 1:31 pm
I hope you all realize there's an implied challenge in that original post which can be looked at in two ways:
1. Provide an example of a situation where the cursor...
November 24, 2004 at 12:21 pm
just delete the "with allow_dup_row"... it will work. (Or at least it does for me.)
November 23, 2004 at 3:04 pm
I believe it is just a syntax change. You can still "allow dups" by just not saying "UNIQUE" in the create index statement.
November 23, 2004 at 2:32 pm
Um, how about having the source not put them in there? (always the best option: get good data to start)...apart from that...
There is also the option of using a format...
November 19, 2004 at 4:16 pm
Along the same lines of reasoning, has anyone written about the top WP on my list and my own personal major peeve: the unbelievable stupidity of prefixing table names with...
November 12, 2004 at 11:52 am
DTS supports EXCEL as an output that you can put a transformation task into:
select ... from result table
OR
exec ResultProducingProc
Now just go find an excel forum for how to...
November 5, 2004 at 1:38 pm
Don't forget to check dos errors using the return from cmdshell (assuming the platform suppoorts it).
declare @err INT
EXEC @err = master..xp_cmdshell ...
IF @err <> 0 PRINT "oops, so much for...
November 5, 2004 at 1:35 pm
your result is being implicitly converted to a float datatype which gets goofy like this. You should tell the result to round and put the result into a numeric or...
October 29, 2004 at 4:27 pm
I was able to duplicate your problem when using only a CHAR(13) as a line break.
October 29, 2004 at 4:18 pm
I don't know. (to be clear)
But here's my guess:
I suspect the editor that you used to create the proc stripped the line breaks in a manner that confused the parser.
In...
October 29, 2004 at 2:48 pm
Like GO, the line terminator says take the prior string (ASCII text of your TRANSACT-SQL) and send it to the server. That's it. The server does all parsing, compiling, and...
October 29, 2004 at 2:34 pm
Viewing 15 posts - 271 through 285 (of 336 total)