Drop Table
Support Forum for database administrators and web based access to important newsgroups related to databasesHow do I delete a relationship between tables in SQL Server 7.0? I previously had a relationship between two tables, but I renamed the field and table of one of the tables and the old relationship still points to the old field name and table. How do I remove the defunct relationship? It doesn't show in my diagram because the old table no longer exists (well it does but it's been renamed).
Post Follow-up to this messageReferential integrity between tables is implemented using constraints. Try this: alter table <table_name> drop constraint <constraint_name> "Steve" <steve@hello.com> wrote in message news:43301ef3_1@x-privat.org... > How do I delete a relationship between tables in SQL Server 7.0? > > I previously had a relationship between two tables, but I renamed the > field and table of one of the tables and the old relationship still points > to the old field name and table. How do I remove the defunct relationship? > > It doesn't show in my diagram because the old table no longer exists (well > it does but it's been renamed). >
Post Follow-up to this messageALTER TABLE tblname DROP CONSTRAINT constraintname -- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www. solidqualitylearning .com/ Blog: http:// solidqualitylearning .com/blogs/tibor/ "Steve" <steve@hello.com> wrote in message news:43301ef3_1@x-privat.org... > How do I delete a relationship between tables in SQL Server 7.0? > > I previously had a relationship between two tables, but I renamed the fiel d > and table of one of the tables and the old relationship still points to th e > old field name and table. How do I remove the defunct relationship? > > It doesn't show in my diagram because the old table no longer exists (well > it does but it's been renamed). > >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread