Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote view based on SPT cursor or connection handle
Message
De
03/04/2005 20:18:47
 
 
À
03/04/2005 06:09:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01001077
Message ID:
01001122
Vues:
18
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform