Created
August 14, 2014 15:17
-
-
Save dkapitan/2046f5471fa7db61e4f8 to your computer and use it in GitHub Desktop.
Parse values into string using XML PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @column_list nvarchar(2000) = ( | |
SELECT | |
substring( | |
( | |
SELECT ', ' + column_name | |
FROM dbo.get_columns_types(@database, @schema, @table) | |
FOR XML PATH ('') | |
), 2, 2000) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment