all groups > sql server programming > march 2004 >
You're in the

sql server programming

group:

drop table ... cascade constraints


drop table ... cascade constraints richlm
3/31/2004 11:56:07 PM
sql server programming:
Is there a simple way to achieve the equivalent of "drop table ... cascade constraints" (Oracle syntax) in SQL server 2000 - either SQL syntax or through an API

The only solution I can see is to first call sp_depends and process the resultset from that before dropping the table

Wondering if it can be done with less code

Re: drop table ... cascade constraints Tibor Karaszi
4/1/2004 11:29:08 AM
I'm afraid not. (I can't answer the API part with 100% confidence, but I'm pretty certain.)

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp


[quoted text, click to view]

AddThis Social Bookmark Button