Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Get a CSV list of columns in a table

    /*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 + ',','')...

Viewing post 1 (of 1 total)