Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I add a column to an existing DB? 1

Status
Not open for further replies.

Ralph8

IS-IT--Management
Mar 15, 2003
168
US
Is it possible to add a column to a production DB using T-SQL?

A customer has added a requirement and I need to add 1 or 2 columns to a DB. They are several hours away and I do not have the capability to "Sign on" via the internet and use EM.

I have looked at the FAQs and the MS Developers page. If the answer is there I missed it.

Any ideas?

TIA

Ralph D. Meredith
 
Although I've never done it I know it can be done using the ALTER TABLE statement. Do a search here for ALTER TABLE, there's plenty of examples.

Patrick
 
Look at the ALTER TABLE statement in Books online.

In basic form it would look similar to

ALTER TABLE TabelName ADD NewField varchar(15)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top