Re: Constraints: disable / enable constraints issue
From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 10/27/04
- Next message: Mark Wilden: "Re: Constraints: disable / enable constraints issue"
- Previous message: Mark Wilden: "Re: string search with Query Analyser"
- In reply to: Leida: "Constraints: disable / enable constraints issue"
- Next in thread: Mark Wilden: "Re: Constraints: disable / enable constraints issue"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 27 Oct 2004 16:47:02 -0400
You can use ALTER TABLE to disable a foreign key. You cannot disable a
primary key, since it uses a unique index.
-- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com "Leida" <Leida@discussions.microsoft.com> wrote in message news:AD81D4EF-060C-41FA-82D0-A223EB41BD9A@microsoft.com... Isn't there a way, other then Enterprise Manager, to disable and / or enable constraints, in particular primary and foreign keys? I am migrating data daily from one system to SQL and to disable and enable manually is inconvenient and combersome. I looked through BOL and cannot find a direct answer on how to create a process to automatically disable and / or enable constraints. Thanks.
- Next message: Mark Wilden: "Re: Constraints: disable / enable constraints issue"
- Previous message: Mark Wilden: "Re: string search with Query Analyser"
- In reply to: Leida: "Constraints: disable / enable constraints issue"
- Next in thread: Mark Wilden: "Re: Constraints: disable / enable constraints issue"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading