Groups | Blog | Home
all groups > sql server (microsoft) > february 2006 >

sql server (microsoft) : Renaming field in MSSQL


Sonnich
2/27/2006 8:19:15 AM
How do I do that?

alter table sdfgsdf rename a to b?


S
Jens
2/27/2006 8:27:55 AM
Look for sp_rename in the BOL:

sp_rename
Changes the name of a user-created object (for example, table, column,
or user-defined data type) in the current database.

EXEC sp_rename 'customers.[contact title]', 'title', 'COLUMN'


HTH, Jens Suessmeyer.
AddThis Social Bookmark Button