Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Alter Column Type.

0 views
Skip to first unread message

luc h

unread,
Feb 25, 2004, 12:55:37 PM2/25/04
to
Hello,

Easy one for the SQL experts.

I have a simple table. For the example let's say it looks like this:
CREATE TABLE doc_exb ( column_a INT, column_b VARCHAR(20) NULL)

Now I want to alter this table and make the column column_a a float
instead of an INT.
How do I do that? I cannot DROP and ADD the column I would lose some
very precious data.

Thanks a lot

Simon Hayes

unread,
Feb 25, 2004, 1:35:51 PM2/25/04
to

"luc h" <lhovhan...@hotmail.com> wrote in message
news:d4175164.04022...@posting.google.com...

See ALTER TABLE in Books Online:

alter table dbo.doc_exb
alter column column_a float

Simon


0 new messages