Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help on duplicate key
Message
De
02/04/2005 09:46:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01000949
Message ID:
01000979
Vues:
19
>Hi to All,
>
>I need help about this 'scenario'.
>In a Data Form, I manage an MS SQL Table with a PK.
>I manage this Table with a Cursor Adapter, created with CA Builder (is a class).
>How can I to verify, when the record is new and immediatly after I enter the primary Code, that this Code isn't duplicate ? This PK isn't automatically generated.
>The control on the duplicate key is currently active only when I try to save and this isn't interesting for me.
>
>Thank you for help and any code suggestion.
>
>Best Regards

Unless it's an auto generated unique value there is no way to check before trying to save (assuming multiuser).
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
Répondre
Fil
Voir

Click here to load this message in the networking platform