Hi,
I looked all over for a concise example of a DSN-less Oracle connection. I found many code snippets, some short, some quite lengthy, but nothing seems to work. I tried DAO, ADO, etc. I tried searching through Microsoft’s web sites and Access/Oracle user forums, but to no avail.
What I’m trying to do is implement “DSN-less” connections to multiple Oracle databases from a single Access 2010 database (32 bit). The Access database is on a Windows 7 machine (64 bit). The database I’m trying to modify is linked to several Oracle (11g) tables, in several databases. The Access database works fine with named DSN’s created via the “ODBC Data Source Administrator.” The DSN’s are using the following driver: Oracle in OraClient11g_home1, SQORA32.DLL, version 11.02.0001.
The database contains a query that pulls data from four different tables, from four different databases. The query works fine aside from the fact that the user is prompted to log-in four (4) times, once for each DSN/database.
I would like the end user to enter their user ID and password “just once.” I created a form for the users to enter their log-in credentials. When they click a button on the log-in form, I want Access (via VBA code) to log into the four databases using the user supplied log-in credentials (with no prompts displayed). Our environment is such that each user has the same Oracle log-in credentials for each database they have access to.
Is this possible? Thanks in advance for your help.
Cheers,
Jeff
I looked all over for a concise example of a DSN-less Oracle connection. I found many code snippets, some short, some quite lengthy, but nothing seems to work. I tried DAO, ADO, etc. I tried searching through Microsoft’s web sites and Access/Oracle user forums, but to no avail.
What I’m trying to do is implement “DSN-less” connections to multiple Oracle databases from a single Access 2010 database (32 bit). The Access database is on a Windows 7 machine (64 bit). The database I’m trying to modify is linked to several Oracle (11g) tables, in several databases. The Access database works fine with named DSN’s created via the “ODBC Data Source Administrator.” The DSN’s are using the following driver: Oracle in OraClient11g_home1, SQORA32.DLL, version 11.02.0001.
The database contains a query that pulls data from four different tables, from four different databases. The query works fine aside from the fact that the user is prompted to log-in four (4) times, once for each DSN/database.
I would like the end user to enter their user ID and password “just once.” I created a form for the users to enter their log-in credentials. When they click a button on the log-in form, I want Access (via VBA code) to log into the four databases using the user supplied log-in credentials (with no prompts displayed). Our environment is such that each user has the same Oracle log-in credentials for each database they have access to.
Is this possible? Thanks in advance for your help.
Cheers,
Jeff