Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Rename a column and its data type

Author  Topic 

BendJoe
Posting Yak Master

128 Posts

Posted - 2008-02-27 : 11:57:35
What is the way to rename a column in a table along with its datatype.


Thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-02-27 : 12:09:35
use sp_rename function

http://doc.ddart.net/mssql/sql70/sp_ra-rz_11.htm
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-02-27 : 12:11:53
data type can be changed by using ALTER TABLE ALTER COLUMN
Go to Top of Page
   

- Advertisement -