There is no clause availabe on t-sql. But in oracle it is available:

Oracle:

ALTER TABLE tblname
RENAME COLUMN oldcol TO newcol

In, t-sql (MS SQL) you can use the internal stored procedure:
sp_rename

The syntax is:

sp_rename [@objname =] ‘object_name’,
[@newname =] ‘new_name’
[, [@objtype =] ‘object_type’]

For more information, see : http://doc.ddart.net/mssql/sql70/sp_ra-rz_11.htm

VN:F [1.1.6_502]
Rating: 0.0/5 (0 votes cast)
Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • LinkedIn
  • Live
  • MySpace
  • StumbleUpon
  • Technorati

Related posts:

  1. What is the maximum size MSSQL and MySQL can support?
  2. Build DateTime from values
  3. Tips: Rename SQLServer dababase
  4. What is the difference between CAST and CONVERT in SQL?