Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identity columns
Message
De
14/03/2001 12:14:03
 
 
À
09/03/2001 14:13:01
Fabian Valencia
Calamos Asset Managment Inc.
Naperville, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00483627
Message ID:
00484939
Vues:
11
>I'm trying to have the primary key of a table as an Identity column, but when using a remote view that is buffered, I don't get the new Identity when adding a record unless I get the @@Identity from SQL2000 with another SQL statement, is there any way to refresh the view so the id is not 0 and instead picks up the identity from SQL?
>
>Thanks in advance for any help provided.
>
>Fabian

You don't really need the @@IDENTITY value in this instance. Once you've added the record to the remote view, you can REQUERY() it to get the key value. However, you may need to reposition to the record you just added if you are going to do more edits.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform