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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie question. Insert column 1

Status
Not open for further replies.

smeyer56

IS-IT--Management
Oct 16, 2002
206
US
I have had a SQL 7 database thrown at me and I need to add a column named FldNotes to the table tblInquirers. I am new to SQL and am not certain how to do it. I have tried the Enterprise manager but it seems to lock up when I do it. Would anyone help me please?
Thanks!
 
alter table tblInquirers add FldNotes varchar(1000) null.

If you add it with a default then it will have to update every row in the table and may take a long time.
E-m is probably making another copy of the table and migrating the data - try scripting the commend to see.
It might be better to do that anyway
see

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top