• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

sql

Alter TABLE [table1]
      Add SV int null default 1 with values,CompanyID int null default 1 with values

Alter TABLE [table2]
      Add SD int null default 1 with values,CompanyID int null default 1 with values
I have above script to run and it works fine to me. But how to write script to delete the columns?
0
riskyricky1972
Asked:
riskyricky1972
1 Solution
 
appariCommented:
alter table tablename
drop column columnname
0
 
awking00Commented:
Alter TABLE [table1]
      Drop (SV,CompanyID)
Alter TABLE [table2]
      Drop (SD,CompanyID)I
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now