Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get ID handler from VFP DBC connection ?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
How to get ID handler from VFP DBC connection ?
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Divers
Thread ID:
01056057
Message ID:
01056057
Vues:
82
I have a VFP DBC that has only remote views and a "connection" to SQL server database.
Now, I have to get the handler Id number when a VFP database container uses the "connection" to connect SQL server, idem when I use:

myHandler = SQLCONNECT(...)

Why ?
I need to execute a store procedure in SQL server that apply roles, e.g.:

myHandle = SQLCONNECT("mySQLdatabase","myUser","myPwd")
liResult = SQLEXEC(myHandle, "exec sp_setapprole 'myRole', 'myPwd'")

But,

It's only works in the current session, that's why I need the number.

How can I get this number Id ?

Thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform