Groups | Blog | Home
all groups > dotnet ado.net > august 2006 >

dotnet ado.net : DAO, SQL Server 2005, and VB6


Marcus
8/28/2006 1:26:52 PM
I have some legacy VB6 code that uses DAO (Microsoft DAO 3.6) to access
an access 2000 database. In this app, Access is used soley for data
storage - there is no UI component. I have converted the database to
SQL Server 2005. Can I use DAO to access the new SQL Server database,
or must I change all the DAO calls to ADO? I would like to rewrite as
little code as possible.

Thanks,
Marcus
Marcus
8/28/2006 2:22:10 PM
I am writing the code in VB6, not VB.Net. I don't think interop comes
into this, does it?


[quoted text, click to view]
David Browne
8/28/2006 3:33:59 PM

[quoted text, click to view]

Basically, yes. DAO can access ODBC, through which you can access SQL
Server. Using an Access Database with all the local tables replaced with
ODBC linked tables is an easy way to do this.

David

Scott M.
8/28/2006 6:15:34 PM
It doesn't, but this is a newsgroup for .NET, so we assumed you wanted DAO
in that environment.


[quoted text, click to view]

Theo Verweij
8/28/2006 10:35:18 PM
You can use interop to reference the DAO.dll.

[quoted text, click to view]
AddThis Social Bookmark Button