Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Rename Column with comma

$
0
0
Hi I have comma in column name. we just import from somewhere and cant change. I want to rename column name from upper case to lowercase and i can do it with gui but i have lot and want to use script. and this is giving me error. any thought?[code="sql"]exec sp_rename '[table_name].[Rec'd 2007]', '[rec'd 2007]', 'COLUMN';[/code]

Viewing all articles
Browse latest Browse all 3145

Trending Articles