Viewing post 1 (of 1 total)
/*Another way to get the fields in comma separated list and store the returned string in a VARCHAR is:*/
DECLARE @TableName SYSNAME = 'tablename'
DECLARE @ColumnNames VARCHAR(MAX)
SELECT @ColumnNames = COALESCE(@ColumnNames + ',','')...
March 30, 2015 at 9:27 am
#1787398