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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 ALTER TABLE

Author  Topic 

gvd
Starting Member

21 Posts

Posted - 2005-10-04 : 05:16:46
Hi guys, i have a little problem. I have a table with 3 columns. Let's say Col1, Col2 & Col3. Col1 is the primary key. Now i already have data in this table and i have found out that i need one extra column, let's say Col4 to hold other data. Pls how can i alter the table design using T-Sql from Query Analyzer, to accomodate the new column (Col4).
NB:
I dont want to do it from Enterprise Manager.
Thanks

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-04 : 05:21:14
Alter Table yourTable Add col4 int null

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -