Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Delete relationship?
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).



Report this thread to moderator Post Follow-up to this message
Old Post
Steve
09-20-05 04:23 PM


Re: Delete relationship?
Referential 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).
>



Report this thread to moderator Post Follow-up to this message
Old Post
JT
09-20-05 04:23 PM


Re: Delete relationship?
ALTER 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).
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
09-20-05 04:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 01:51 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006