How to rename a table:
EXEC sp_rename 'OldTableName', 'NewTableName'
How to rename a column:
EXEC sp_rename @objname = 'TableName.OldColumnName', @newname = 'NewColumnName', @objtype = 'COLUMN'
posted by ridei at 6:37 PM
Post a Comment
Subscribe to Post Comments [Atom]
<< Home
View my complete profile
Subscribe toComments [Atom]
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home