Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foreign Key Constraint with No Check
Message
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Foreign Key Constraint with No Check
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01554296
Message ID:
01554296
Views:
59
Hi,

I would like understand possibly side effects of applying a foreign key constraint with No Check. Here is why I am thinking of using FK constraint with No Check:

I have to convert a customer database from VFP to SQL Server database. The VFP database has some entries (I don't know how much but I presume a good number) that are "orphaned." That is, if I do conversion with FK constraint in place I will get many records skipped that will not pass. So my strategy is to remove all FK constraints, convert the data from VFP to SQL and then add FK constraints with No Check. Therefore, if I understand correctly, the FK constrains will not be enforced on all existing records but only to the new records.

So before I follow with this approach, I would like to know if there any negative ramifications from this approach.

TIA for any suggestions.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform