Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DSN Syntax for Oracle 10g
Message
De
18/09/2006 11:13:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
DSN Syntax for Oracle 10g
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Oracle
Divers
Thread ID:
01154712
Message ID:
01154712
Vues:
127
I am trying to get an Oracle connection without using Administrative Tools - Data Sources (ODBC).

Right now I have a connection in the ODBC part of my computer which tells VFP to go to the "prod" Oracle database. I would like to get rid of this manual process of setting up the machine. I would prefer to go "DSN Less" as it would be stated in the Help files.

I have a connection string that looks like the following:
lcConnection	= "DRIVER={Oracle in OraClient10g_home1};" + ;
	"SERVER=myserver;" + ;
	"UID=myappuid;" + ;
	"PWD=myapppwd"

? SQLSTRINGCONNECT(lcConnection)
When the SQLSTRINGCONNECT() fires, a prompt comes up with the UID and PWD filled in. The SERVER part is not. The Dialog has a caption beside it that says "SERVICE NAME". I have also tried "SERVICE=myserver;", but the dialog still pops up. When I enter in the value "myserver" into the field and press enter, the process returns 1.

Does anyone know what it will take to make this work?
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform