|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to rename a Column?
Hi,
Please let me know which query we will to rename a column in a table. I am using MS-SQL 2000. |
|
#2
|
||||
|
||||
|
you can use ALTER TABLE -- alter the table to add a new column, run an UPDATE to set the new column equal to the old one, then alter the table again to drop the old column
or, just use sp_rename |
|
#3
|
|||
|
|||
|
Thanx alot.. you gave me an excellent link in the form of sp_rename... I can solve my other problems as well.
![]() |
|
#4
|
|||
|
|||
|
This issue also needs your attentation
r937 if you also plz help me in resolving this issue. I shall be very thankful to you. Below is the link of posted issue which needs your attentaion as well!
Title " Creating tables on condition" http://forums.devshed.com/t204767/s.html |
|
#5
|
||||
|
||||
|
nope, sorry, i can't help you on that one
i would never create separate tables for separate clients what you need involves searching the system tables (or information_schema tables) good luck |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > How to rename a Column? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|