C
Colin Steadman
How do I specify an Oracle connection so that the user
only has to enter there username and password once
regardless of how many times the module us called?
When I used to connect to our old Ingres DB using an ODBC
DSN with the code copied below, . And this ensured the
user only had to authenticate once and use the template as
many times as they needed.
Set ws = DBEngine.CreateWorkspace
("MyWorkspace", "admin", "", dbUseODBC)
Set cn = ws.OpenConnection("ODBCConnection",
dbDriverNoPrompt,
False, "ODBC;DATABASE=live;UID=;PWD=;DSN=remus")
I'm trying to update this template and connect to Oracle
using ADODB, but if I leave the username and password
blank in my connection string (as I have done above) it
fails ask for the logon credentials:
Set cn = CreateObject("ADODB.Connection")
cn.Open "Provider=MSDAORA;" & _
"Data Source=oracle_db;"
Is this possible with ADODB?
TIA,
Colin
only has to enter there username and password once
regardless of how many times the module us called?
When I used to connect to our old Ingres DB using an ODBC
DSN with the code copied below, . And this ensured the
user only had to authenticate once and use the template as
many times as they needed.
Set ws = DBEngine.CreateWorkspace
("MyWorkspace", "admin", "", dbUseODBC)
Set cn = ws.OpenConnection("ODBCConnection",
dbDriverNoPrompt,
False, "ODBC;DATABASE=live;UID=;PWD=;DSN=remus")
I'm trying to update this template and connect to Oracle
using ADODB, but if I leave the username and password
blank in my connection string (as I have done above) it
fails ask for the logon credentials:
Set cn = CreateObject("ADODB.Connection")
cn.Open "Provider=MSDAORA;" & _
"Data Source=oracle_db;"
Is this possible with ADODB?
TIA,
Colin