Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get ID handler from VFP DBC connection ?
Message
From
04/10/2005 16:39:38
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01056057
Message ID:
01056059
Views:
28
>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")
Previous
Reply
Map
View

Click here to load this message in the networking platform