Viewing 15 posts - 5,506 through 5,520 (of 5,588 total)
David Johnson (12/5/2008)
Please note that there is a comma missing, from before 'SaveAs'....
December 5, 2008 at 6:16 am
Jeff Moden (12/3/2008)
Heh... T-SQL wasn't designed for most of what I do with it... 😛
Isn't that the truth.
Fantastic article! Thanks!
Wayne
December 3, 2008 at 10:13 am
Okay, I found out how SSMS is doing it (by tracing it's actions).
It needs to be done like:
select name from sysobjects o1
where type in ('FN',...
November 10, 2008 at 7:42 am
I agree with using the SELECT ... FOR XML PATH('') to get a set based operation. Not only does it remove the cursor, but it greatly simplifies the code.
What I...
November 10, 2008 at 7:20 am
Derek,
This doesn't do it... those procs must not be in sys.system_objects
Wayne
Derek Dongray (11/10/2008)
select name from sysobjects o1
where type in ('FN', 'IF',...
November 10, 2008 at 6:47 am
Thanks Matt.
(I hate the answers that are SOOO obvious... why didn't I think of it???:))
November 7, 2008 at 1:09 pm
Neat article.
You can eliminate the cursor (though in this case there's really not a performance hit) by:
...
November 5, 2008 at 6:05 am
Interesting. While testing out the select statement above, I am getting the emails almost instantly. Typical.
The logs were showing the database mail process starting, and about 10 minutes later stopping.
November 4, 2008 at 8:08 am
To get the last 100 from an identity column, it would be as Adi said:
select top 100 *
from MyTable
order by MyIdentityColumn desc
this gets the last 100 values...
November 3, 2008 at 9:00 am
What happens if you put the password column at the end of the select list instead of in the middle?
I don't think that this will relate, but if you have...
November 3, 2008 at 7:53 am
Good thoughts. Thanks for your replies.
What I'm trying to accomplish is to:
a. get a list of drives, free space, and available space. (xp_FixedDrives gets me the drive letter and...
October 23, 2008 at 1:30 pm
GilaMonster (10/1/2008)
WayneS (9/30/2008)
October 1, 2008 at 7:03 am
lucian (8/22/2008)
I would like to think that both these methods have a place in a code library and can be used where applicable
I agree. And that's a pretty interesting use...
August 22, 2008 at 7:16 am
bhovious (8/21/2008)
August 21, 2008 at 3:24 pm
Viewing 15 posts - 5,506 through 5,520 (of 5,588 total)