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.
| Author |
Topic |
|
duf
Starting Member
39 Posts |
Posted - 2012-02-15 : 11:48:59
|
| [code]ALTER TABLE table_name RENAME COLUMN old_column_name TO new_column_name[/code][code]ALTER TABLE table_name RENAME COLUMN old_column_name new_column_name[/code]None of the above query does not work. What is the correct query to change the column name? |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-02-15 : 15:07:05
|
| make sure you check for dependent objects and list them all before you change column name so that you can reflect chnages to them too. Otherwise you'll end up breaking them all after the change!------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2012-03-17 : 14:00:49
|
quote: Originally posted by duf
ALTER TABLE table_name RENAME COLUMN old_column_name TO new_column_name ALTER TABLE table_name RENAME COLUMN old_column_name new_column_name None of the above query does not work. What is the correct query to change the column name?
Are you using SQL Server or ORACLE?MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|