Tech Trinkets
Thursday, August 27, 2009
T-SQL to Rename a Column Name or Table Name
renaming any column :
sp_RENAME 'TableName.[OldColumnName]' , '[NewColumnName]', 'COLUMN'
renaming any object (table, stored procedure etc) :
sp_RENAME '[OldTableName]' , '[NewTableName]'
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Blog Archive
►
2014
(1)
►
October
(1)
►
2013
(2)
►
October
(1)
►
March
(1)
►
2012
(2)
►
March
(1)
►
February
(1)
►
2011
(6)
►
June
(1)
►
May
(1)
►
April
(1)
►
March
(1)
►
February
(1)
►
January
(1)
►
2010
(12)
►
December
(1)
►
November
(1)
►
October
(1)
►
September
(1)
►
August
(1)
►
July
(1)
►
June
(1)
►
May
(1)
►
April
(1)
►
March
(1)
►
February
(1)
►
January
(1)
▼
2009
(13)
►
December
(1)
►
November
(1)
►
September
(1)
▼
August
(1)
T-SQL to Rename a Column Name or Table Name
►
July
(2)
►
May
(2)
►
April
(4)
►
February
(1)
►
2008
(6)
►
November
(1)
►
August
(1)
►
July
(1)
►
June
(1)
►
April
(1)
►
March
(1)
►
2007
(10)
►
October
(1)
►
September
(1)
►
August
(1)
►
July
(4)
►
June
(3)
About Me
Gopika
View my complete profile
Websites
Rajesh Sharma
Old Renwick Trail
AllStyleTees.com
Shree Sadgurukrupa
Resonate Now
Goldivas.com
Indulgence, Inc