Viewing 3 posts - 1 through 3 (of 3 total)
Thanks Clive,
Here's an example of what I'm talking about...
DECLARE @List nvarchar(max)
SELECT @List = IsNull(@List + ', ', '') + QuoteName(name)
FROM sys.objects
--Uncommenting the following line will return only one list item...
--ORDER...
February 25, 2010 at 11:42 am
#1125143
I use this a lot also, but beware of the ORDER BY gotchya. Depending on the complexity of your query you may find that adding an ORDER BY prevents...
February 25, 2010 at 7:21 am
#1124964
Really glad you raised this one Steve. Let's face it we spend most of our time trying to prevent the disaster scenario in the first place. At the...
November 2, 2009 at 9:44 am
#1073879