How to you modify a column's width ?
I have a VARCHAR column which is at 12 characters and I want it up to 14
characters.
I tried this, but it was not accepted by MS-SQL 6.5:
ALTER TABLE [TABLE NAME] MODIFY ([COLUMN NAME], [COLUMN TYPE]([NEW WIDTH]))
So if my table name's Authors it would look like this:
ALTER TABLE AUTHORS MODIFY (email varchar(14))
What's the right way to do it ?
Thanks,
Karell Ste-Marie
MIS Manager
CTI Datacom Inc.
2250 Place Transcanadienne
Dorval, Quebec
H9P 2X5
Phone: (514) 683 6363 .28
Fax: (514) 683 7997
Toll: (888) CTI 4 ATM
karell.s...@ctidata.com
www.ctidata.com
>I tried to find this one on the net but can't seem to find the right FAQ
>page anywhere.
>
>How to you modify a column's width ?
>
>Karell Ste-Marie
Anton V. Goldberg,
MCSE...
My opinions are only MY.
I run the script to create the new table. I then write a script, as
mentioned, to insert into the new table, or alternatively, if small
dataset, connect with Microsoft Access and use an append query to append
the data from the old table to the new table. This has the added
advantage of doing a lot of the type conversions for me, or making them
easier to see and write.
Then when all the data is in my new table, I drop the original table,
and rename the new one to the old one's name....