unplug1.6
Wednesday, February 8, 2012
SQL Update column name
exec sp_RENAME 'table.column', 'newName', 'COLUMN';
example:
exec sp_RENAME 'Employee.notes' , 'payNotes', 'COLUMN';
Caution:
Changing any part of an object name could break scripts and stored procedures.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment