I'm still trying to get a handle on remote "handles". From the VFP8 HELP I read:
To obtain a handle, you request a connection to the data source using the SQLCONNECT( ) or SQLSTRINGCONNECT( ) function. If the connection is successful, your application receives a connection handle for use in subsequent Visual FoxPro calls
Which makes me think SQLCONNECT( ) or SQLSTRINGCONNECT( ) returns a connection handle. But then I read:
Remarks
The SQLCONNECT( ) and SQLSTRINGCONNECT( ) functions return a numeric value as the statement handle rather than a connection handle. You cannot obtain a connection handle directly. You can still set and get connection properties using the SQLSETPROP( ) and SQLGETPROP( ) functions by passing the statement handle for that connection and the string, "Shared", as arguments. All other SQL functions use a statement handle instead of a connection handle.
Does any code I write need a connection handle? I'm starting to think I never need a "connection handle" in my code, but I do need a "Statement Handle" to use with my SQL Pass Through. Please help me figure out when I will use these 2 handles.
Jim Rumbaugh
To obtain a handle, you request a connection to the data source using the SQLCONNECT( ) or SQLSTRINGCONNECT( ) function. If the connection is successful, your application receives a connection handle for use in subsequent Visual FoxPro calls
Which makes me think SQLCONNECT( ) or SQLSTRINGCONNECT( ) returns a connection handle. But then I read:
Remarks
The SQLCONNECT( ) and SQLSTRINGCONNECT( ) functions return a numeric value as the statement handle rather than a connection handle. You cannot obtain a connection handle directly. You can still set and get connection properties using the SQLSETPROP( ) and SQLGETPROP( ) functions by passing the statement handle for that connection and the string, "Shared", as arguments. All other SQL functions use a statement handle instead of a connection handle.
Does any code I write need a connection handle? I'm starting to think I never need a "connection handle" in my code, but I do need a "Statement Handle" to use with my SQL Pass Through. Please help me figure out when I will use these 2 handles.
Jim Rumbaugh