Viewing 5 posts - 1 through 5 (of 5 total)
We can use BCP utility to get the data of the table (queryout option). The contents of the file will have character field (with varchar(MAX) / nvarchar(MAX)) with all...
January 26, 2011 at 11:05 pm
The approach mentioned using CTE does not work for string (@array) which has more than 100 numbers. (e.g '1,2,3,4,5,....,101'). SQL Server returns following error message -
"Msg 530, Level 16,...
December 14, 2009 at 12:28 am
Using this method, the SELECT query is executed 'n' number of times, where n is total number of records in the table. I dont think this is optimized solution....
June 16, 2008 at 3:48 am
The working of pivot depends upon the columns we specify in the select list. The pivot has one column on which aggregate function is applied (like sum(),count(), etc), the second...
May 13, 2008 at 8:09 am
Viewing 5 posts - 1 through 5 (of 5 total)