Re: how to drop constraints
From: Itzik Ben-Gan (itzik_at_REMOVETHIS.SolidQualityLearning.com)
Date: 10/05/04
- Next message: Joe Celko: "Re: Which database design is better"
- Previous message: Guadala Harry: "Re: SELECT Query"
- In reply to: tchangmian: "how to drop constraints"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 4 Oct 2004 17:54:00 -0700
The syntax for dropping a constraint is:
ALTER TABLE <table_name> DROP CONSTRAINT <cns_name>
If you don't know the name of the constraint, use:
EXEC sp_helpconstraint <table_name>
-- BG, SQL Server MVP www.SolidQualityLearning.com "tchangmian" <tchangmian@yahoo.com.sg> wrote in message news:6447ee25.0410041647.3c41824e@posting.google.com... > Hi, > I would like to ask for help for how to drop constraints within a > table. For example, i have a table called A, i want to drop the > constraints within the table while the table is not been dropped. > Could anyone know how to write the syntax for dropping constraints by > using stored procedure?
- Next message: Joe Celko: "Re: Which database design is better"
- Previous message: Guadala Harry: "Re: SELECT Query"
- In reply to: tchangmian: "how to drop constraints"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|