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)
 Check to see if Column exists before Adding /Dropping

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-06-12 : 09:20:10
Greg writes "I know I can check to see if a table exists, but I'd like to have my stored procedure/SQL check to see if a column exists in the table before I issue a Alter table Drop Column (or Add Column). I read some articles about a system table called _column, that supposedly contains all column names for a database, but I can't seem to query at the table name level for the existance of a column. Thanks (SQL 7/2000)"
   

- Advertisement -