I'm trying to connect VB5 to Oracle8i locally. I don't want to use DSN (in ODBC) because I will distribute the app to the professor's PC and don't want to set it up.
I've figured out how to create a tablespace in Oracle that will save the tables to a file called, for example, myfile.one. I'm trying to communicate with myfile.one using ADO.
Here is a DSN-less connection string.
Below: put your userid, password and oracle server name.
ex, UID= anagarur
PWD=annnap
SERVER = ntoracle.base.net
Leave the driver part as it is.
Cn = "UID=youruserid;PWD=yourpassword;driver=" _
& "{Microsoft ODBC for Oracle};SERVER=youroracleserver;"
Set Cn = New ADODB.Connection
With Cn
.ConnectionString = conn
.CursorLocation = adUseClient
.Open
End With
Bookmarks