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)
 A simple Delete command

Author  Topic 

nibs
Starting Member

3 Posts

Posted - 2003-02-05 : 11:29:41
My database is called : dgi

table name : jobs


column is : links2 varChar (40)

Does anyone know the command to delete the column name from the table.

Thank you,
Nibs

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2003-02-05 : 11:34:03
You can't delete a column ...

You can delete a row.
You can update a value in a column in a row.
You can alter the schema of the table to drop that column.

Which do you mean?

Jay White
{0}
Go to Top of Page

nibs
Starting Member

3 Posts

Posted - 2003-02-05 : 11:46:38
You can alter the schema of the table to drop that column

The above is the one I mean. I mean that I want to delete the columns name from that table as I won't need it.

Thanks,
Nibs

Go to Top of Page

LarsG
Constraint Violating Yak Guru

284 Posts

Posted - 2003-02-05 : 11:52:07
alter table jobs drop column links2

Go to Top of Page

nibs
Starting Member

3 Posts

Posted - 2003-02-05 : 12:10:10
Thank you Jay and LarsG that command worked perfectly

Nibs

Go to Top of Page
   

- Advertisement -