Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding records to vfp table
Message
De
19/05/2006 08:34:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/05/2006 02:06:24
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01123484
Message ID:
01123522
Vues:
17
>Hi
>I have an app that copies records to SQL and it works fine I wanted to try it against VFP tables but it crashes. It adds the first record fine but then return the error
>
>"Additional information: Column 'pk' is constrained to be unique. Value '' is already present."
>
>I have set the primary field "pk" as AutoInc and have a primary index on it. If I add records at the command window it works ok. So what have I forgotten to do?
>TIA
>Stuart

Stuart,
I don't know MM but sounds like you're trying to insert a record with a provided PK value and autoinc fields are readonly. What's your insertCmd?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform