General information
Category:
Coding, syntax & commands
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only