Information générale
Catégorie:
Codage, syntaxe et commandes
You can use SQLSTRINGCONNECT()
Here is an example for oracle:
h=SQLSTRINGCONNECT("DRIVER={Microsoft ODBC for Oracle};UID=DOB;PWD=runtime;SERVER=PDML;")
I don't know the name of the driver you are using and syntax exactly but
What I do is hard code the driver part:
DRIVER={Microsoft ODBC for Oracle};
Then append the server,login and username (UID=DOB;PWD=runtime;SERVER=PDML;")
) from my login dialog and pass it to
SQLSTRINGCON()
To get the syntax correct make a new database container in foxpro and then use the "connections" and create a connection string. You can test the connection here and get the exact syntax.
HTH
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement