Solved

sql

Posted on 2007-03-29
2
198 Views
Last Modified: 2012-05-05
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
Comment
Question by:riskyricky1972
2 Comments
 
LVL 39

Expert Comment

by:appari
ID: 18821459
alter table tablename
drop column columnname
0
 
LVL 31

Accepted Solution

by:
awking00 earned 250 total points
ID: 18823913
Alter TABLE [table1]
      Drop (SV,CompanyID)
Alter TABLE [table2]
      Drop (SD,CompanyID)I
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Read about achieving the basic levels of HRIS security in the workplace.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now