Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 ado connection to SQL Server 2008 as Backend
Message
De
17/02/2012 14:09:27
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
 
 
À
17/02/2012 13:54:06
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01535681
Message ID:
01535687
Vues:
37
You may have to refresh the recordset to get the ID from SQL Server. Beyond that, Thread #1515107 may be helpful.

>Hello,
>I am connecting to a SQL sevrver 2008 using ADO.
>In my vfp program, I have problem getting the value of auto-increment field after I do an rs.addnew and rs.update.
>The record is added/updated on the server side with no problem.
>
>I used to be able to get the value of the auto-increment field when I run the same program to connect to an MS Access DB
>
>Here is my connectin string:
>adoDBC.Open ("Provider=SQLNCLI;Database=pcMPISQL1;Server=insvb01038adx05;Integrated Security=SSPI")
>
>Any suggestion ?
>
>Thanks,
>Kam Lee
>SUNY DMC
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform