Created
March 24, 2023 07:05
-
-
Save mukarramjavid/697af222f4343cf613164a8a54bec67f to your computer and use it in GitHub Desktop.
From this script you can able to wrap Column names of any table in double qoutes in SQL Sever
This file contains hidden or 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
SELECT STRING_AGG(CONCAT('"',COLUMN_NAME,'"'),',') AS AsDoubleQoutesCols | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_NAME = N'[table_name]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment