Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Upsizing VFP Database to SQL Server 7 - Primary Keys
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00414321
Message ID:
00414347
Vues:
21
>I would recommend using GUIDs - that way you don't have to mess with keeping the ones added in SQL Server in synch with the ones added in VFP, or with making sure you can override an IDENTITY field.
>
>You can create them in VFP with the code in this link.
>http://support.microsoft.com/support/kb/articles/Q269/3/87.ASP
>
>In SQL Server, just use NEWID() to get a new GUID and the UniqueIdentifier data type for the PK field.

So, use VFP code to generate a GUID, then take that value and issue an INSERT? When I am defining my table in SQL Server, do I define my PK with the ROWGUIDCOL attribute? Also, this database is not going to be replicated or distributed, so are GUIDs a good idea?
Chris McCandless
Red Sky Software
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform