Re: ADO ODBC CONNECTION STRING
From: Val Mazur (group51a_at_hotmail.com)
Date: 03/27/04
- Next message: Val Mazur: "Re: Help! ADO Connection Problem.."
- Previous message: Val Mazur: "Re: odbc connection string in ADO"
- In reply to: John Lanford: "ADO ODBC CONNECTION STRING"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 26 Mar 2004 23:30:20 -0500
Hi John,
I do not think you can do it using ADO. Database property of the ADO
connection returns name of the database of the active opened connection, but
I think in case of the linked tables, you will get database name of your
MDB.
-- Val Mazur Microsoft MVP "John Lanford" <lanfojo@tulsaschools.org> wrote in message news:B860E141-B516-4417-B460-C82AE28125E1@microsoft.com... >I have an access data base (mdb) with linked tables from an Ms sql >database. > I am trying to use ADO in VBA to list the odbc connection string for each > linked (pass through) table. > I have some code using DAO that can do this using the "connect" property > of a tabledef object. But > I can't find the equivalent of this in ADO. I have used a catalog object > to retrieve the names of all the > pass-through tables but I can't find the connection string. I use linked > tables from 2 different sql databases > and I want to find the name of the database where the table is, I am > trying to write a procedure to relink > the tables. I can work around this using the DAO properties. But I am > trying to use ADO instead of DAO > whenever I can. > > Thanks > John Lanford Tulsa Public Schools >
- Next message: Val Mazur: "Re: Help! ADO Connection Problem.."
- Previous message: Val Mazur: "Re: odbc connection string in ADO"
- In reply to: John Lanford: "ADO ODBC CONNECTION STRING"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|