OK thanks....thats a pity. Excel can access an mdb file, and you can access an express MDF from .net - so this seems a shame.
Main Topics
Browse All TopicsHi,
I dont want to use Access for an Excel VBA solution, and so was wondering if it is possible to connect Excel 2003 via ADO to a detached MDF file. I could then distribute the application as an Excel file and an MDF file in the local file system.
Is this possible?
Regards
p
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
How are you directly accessing an MDF with .NET without the relational engine running? It's very likely that the SQLExpress engine is running. If that is the case then yes, you can access the MDF from Excel...
As far as I know, it is impossible to read data from an MDF without a running relational SQL engine.
From the link you posted:
<quote>
Working with Databases Through Visual Studio 2005
When you install any of the Visual Studio 2005 editions you'll be asked if you also want to install SQL Server 2005 Express edition. If you choose Yes, this will install SQL Server 2005 Express edition on your development box, where you're installing Visual Studio 2005. (SQL Server 2005 Express edition can be installed side-by-side with other versions of SQL Server, including SQL Server 2000 and other editions of SQL Server 2005.)
</quote>
So as cmangus has already stated (no points for me) you need SQL Server not only installed but also running.
Business Accounts
Answer for Membership
by: cmangusPosted on 2008-02-19 at 14:21:46ID: 20933224
No, Excel can't access a detached MDF file. The only way to get data out of the MDF is if it is an active database in SQL Server.