Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET IDENTITY ON and OFF
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01545210
Message ID:
01545211
Vues:
73
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>First time this morning I get an error (actually customer does) when on inserting of a new records the error is
>
>Cannot insert explicit value for identity column in table 'tableName' when IDENTITY_INSERT is set to OFF
>
>
>I Googled this and found a MSFT msdn page that describes that only one table in a session can have SET IDENTITY_ INSERT ON. I have not had to "deal" with this from my VFP application so far. So my question is, do I need to do something in the VFP application on every insert? That is, do I need to send an explicit command to the SQL Server?
>What else could be causing this problem, kind of, all of a sudden?
>TIA.

Just make sure that you didn't touch that field anywhere in your statements.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform