Viewing 15 posts - 106 through 120 (of 322 total)
The 2nd SELECT has no ORDER BY clause, and the table variable has no index. How do you know what the last row will contain?
😛
November 25, 2009 at 1:35 pm
Thanks Gail,
Well written. I read all 3 and learned a few things.
November 18, 2009 at 6:53 am
bornsql (11/16/2009)
Hi how about this code whether this will work fine or notDECLARE @tmpstr2 Varchar(MAX)
SELECT @tmpstr2=replace(OriginalString, char(10) + char(13), '') FROM @demo
SELECT @tmpstr2=replace(@tmpstr2,' ','|')
SELECT @tmpstr2=replace(@tmpstr2,'|','')
SELECT @tmpstr2
In the end this..
The goal...
November 17, 2009 at 6:30 am
How very elegant, and cool. It's so well explained that I know I'll remember it the next time I have to do some cleanup.
Thanks Jeff!
November 16, 2009 at 6:41 am
Regarding my temp table without ORDER BY observation:
It was just that. An obversation.
I didn't say that I don't use ORDER BY.
I didn't recommend not using ORDER BY.
I was hoping...
November 16, 2009 at 6:08 am
Jeff,
Terrific article. I haven't used Quirky Update for a few years, and that's a good thing because I didn't know all of the rules.
I don't want to stir up a...
November 13, 2009 at 11:17 am
Viewing 15 posts - 106 through 120 (of 322 total)