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 |
|
raymondpeacock
Constraint Violating Yak Guru
367 Posts |
Posted - 2003-12-01 : 11:31:53
|
| Can anyone tell me the SQL6.5 equivalent of 'ALTER TABLE <tablename> ALTER COLUMN <columnname>'?I need to script a column data type change and can't use the SQL2000 syntax!Thanks in advanceRaymond |
|
|
X002548
Not Just a Number
15586 Posts |
Posted - 2003-12-01 : 12:30:02
|
| bcp OUT OLDDROP TABLE OLDCREATE TABLE NEW (Col1 ect...bcp IN NEW???Brett8-)EDIT: ...or what Ehorn says...and move the data..then drop the old column...add the column back with the name and move the data again...EDIT: Hey, where did ehorn's post go? |
 |
|
|
ehorn
Master Smack Fu Yak Hacker
1632 Posts |
|
|
raymondpeacock
Constraint Violating Yak Guru
367 Posts |
Posted - 2003-12-02 : 03:56:43
|
| Thanks guysThat's what I was worried you'd say!Raymond |
 |
|
|
|
|
|