SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 droping table with cascade constraints
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rauk10
Starting Member

16 Posts

Posted - 08/10/2008 :  15:52:23  Show Profile  Reply with Quote
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

USA
37157 Posts

Posted - 08/10/2008 :  15:56:00  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

India
3 Posts

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

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 10/03/2012 :  10:33:41  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000