Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get ID handler from VFP DBC connection ?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
How to get ID handler from VFP DBC connection ?
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01056057
Message ID:
01056057
Views:
73
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.
Next
Reply
Map
View

Click here to load this message in the networking platform