¤ Tell me, what is the connection string in ADO or ADO.NET to connect to an
¤ .mdb file?
oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=c:\somepath\mydb.mdb;" & _
"Uid=admin;" & _
"Pwd="
What you've shown here is what driver to use. Drivers are yet another way
to "wrap" the actual functionality of connecting to the data source. You
are supplying a "satisfactory" connection string, while the actual DB
provider is "Microsoft.OLEDB.JET.n.x" as seen in the more commonly used:
Con.Open "Provider=Microsoft.JET.OLEDB.4.0.;Data Source=path"
¤ Tell me, what is the only kind of data that DAO can connect to?
¤
DAO can connect to any number of database types including Microsoft Access
and ODBC supported
databases such as SQL Server and Oracle and ISAM databases such as xBase,
Excel, Paradox etc.
Actually it's true, I mis-spoke, DAO does support more than just Access,
however if you read the article I posted the link to, you will see this:
"You can use the ODBCDirect object hierarchy to work with ODBC data sources
without going through the Jet database engine."
So, when you use ODBC, you are not connecting to a JET database. But, when
you do use JET in DAO, you are now limited to JET databases (not SQL,
Oracle, etc.).
It's also interesting that in VB 6.0, if you make a Data Project and get
into the connection's properties and look at the OLEDB providers, you don't
see one for Access. What you do see is JET. And, if you select JET and
then move on to select the corresponding database, it is even more
interesting that the dialong box used to browse for these databases has only
one file type that it is filtering on - - .mdb.
The minutia of this thread has all but worn me out Paul. Read the article I
posted and you will see that your argument holds up on a very high level,
but not at the lower levels. There's nothing more I can say.