Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foreign key constraint
Message
De
13/09/2011 11:17:32
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01523430
Message ID:
01523434
Vues:
32
>>HI
>>
>>I'm inserting records into several tables.
>>
>>I've wrapped all the inserts in a transaction as I don't want any of them to work if one fails.
>>
>>I'm getting a foreign key error on one of the inserts.
>>
>>Is this because the transaction hasn't been committed so effectively the foreign key doesn't exist
>>
>>Thanks
>>
>>Nick
>
>No, this is not because of this problem. You probably didn't insert records in the right order.

Thanks for that Naomi.

Made me look back at the obvious

a typo :-(
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform