Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get ID handler from VFP DBC connection ?
Message
De
04/10/2005 16:39:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Divers
Thread ID:
01056057
Message ID:
01056059
Vues:
31
>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.
? cursorgetprop("ConnectHandle","rvAlias")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform