Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view based on SPT cursor or connection handle
Message
From
03/04/2005 20:18:47
 
 
To
03/04/2005 06:09:15
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01001077
Message ID:
01001122
Views:
20
Hello Andrus,

I do it the other way round. I start by creating a connection and a first remote view.
Then I get the connection handle used by this view.
I use this connection handle in all subsequent SPT's
Create CONNECTION ccon ;
	CONNSTRING "dsn=...."

Create SQL VIEW Myview ;
	REMOTE CONNECTION "ccon" SHARE ;
	AS select * from mytable

con_dbhandle=cursorgetprop("ConnectHandle","Myview")


sqlexec(con_dbhandle,"select mycolumn from myothertable","mycursor")
So, from now on, every «Create SQL VIEW» and every «sqlexec», will use the same connection to the server.
Previous
Reply
Map
View

Click here to load this message in the networking platform