Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting records
Message
 
À
03/05/2000 22:14:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00365920
Message ID:
00366237
Vues:
13
You can do one of two things:

1. Generate the key in VFP so you don't depend on SQL Server to do this.

2. Save updates to your parent table and then issue a SELECT @@IDENTITY AS 'Identity' via SQL pass-through to get the last key that SQL Server generated.


>I'm having a little trouble with primary keys and remote view to SQL 7 server.
>
>If I have a parent table and I APPEND BLANK to the view I don't have a primary key yet because SQL hasn't generated the key yet. That means I can't tie in any child records. To compound the problem my view needs to be parameterized on the key. The irony is I can't requery my view to get the key because the parameter to the view is that key.
>
>If anyone knows what I'm talking about and can help, message me a soon as you can.
>
>thanks,
>
>Greg Moss
>www.siteproposals.com
Hector Correa
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform