Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting relationships online

Status
Not open for further replies.

storm1976

Programmer
Jul 6, 2001
31
GB
Ok heres the scenario.

I uploaded a database to our website a few months ago, with many tables in some related. There were also tables which were empty for future development.

So now it has come round to the time to work on these tables. However, there is a relationship between two tables which needs to be deleted.

The question is: is there a way of deleting a relationship using sql or would i need to download the database and delete it manually?

Cheers in advance
 
To delete a relationship, you can use SQL of the form:
Code:
ALTER TABLE yourTableNameHere
DROP CONSTRAINT constraintNameHere;
Of course to use this you'll need to know the name of the realtionship, which may be unlikely


[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top