Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get remote views to share a connection?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Get remote views to share a connection?
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Oracle
Divers
Thread ID:
01553921
Message ID:
01553921
Vues:
54
I have a VFP9 app that uses remote views to connect to an Oracle backend.

Before I can run my views, I need to issue this:

alter session set global_names=false;

..so easy enough I do this:

lnConnectionString = 'DSN=myDSN;UID=myUserName;PWD=myPassword;SERVER=myServer
lnConnectionHandle = SQLSTRINGCONNECT(lnConnectionString)
lnEResult = SQLEXEC(lnConnectionHandle, 'alter session set global_names=false')

..which appears to work. Now what I want to do is have my remote views use the connection I just created (since this "session" has the configuration I want). ..so I thought I could just do this next:

Use myRemoteView in 0

...but it does not work.

If I do this it does work:
lnEResult = SQLEXEC(lnConnectionHandle, 'alter system set global_names=false')

...however that is setting a system setting in the Oracle database and our DBA will probably have a stroke if I ask to do that.

Any ideas?

Thanks!

update: Yes I have my remote views set to "share connection" :)
ICQ 10556 (ya), 254117
Répondre
Fil
Voir

Click here to load this message in the networking platform