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
 General SQL Server Forums
 New to SQL Server Programming
 droping table with cascade constraints

Author  Topic 

rauk10
Starting Member

16 Posts

Posted - 2008-08-10 : 15:52:23
What is the equivalent code of
drop table table_name cascade Contraints; (of ORACLE) in the SQL SERVER.

I had two tables referencing each other and I want to drop them with cascade constraints but I dont know how I could do that on SQL SERVER.

Any help will be appreciated.

Thank You.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-10 : 15:56:00
ALTER TABLE ... DROP CONSTRAINT ...

DROP TABLE ...

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

vrajput
Starting Member

3 Posts

Posted - 2012-10-03 : 07:26:58
Hi, I didn't find any info in the page referred here.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-10-03 : 10:33:41
quote:
Originally posted by vrajput

Hi, I didn't find any info in the page referred here.


which page are you referring to?

for syntax on dropping a constraint see

http://msdn.microsoft.com/en-us/library/ms190273.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -