Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Publish mdf database to provider automatically

Status
Not open for further replies.

darylbewise

Programmer
Jan 5, 2009
16
0
0
GB
Hello all,

I’m looking to be able to create a script of a .MDF database (data + schema) automatically using c# code.

What I want to be able to do is create a .sql file of all the data in a .mdf database (exactly what you can do using the “Publish to provider” tool in Visual Studio.

Any ideas on an easy way of achieving this?
 
Yes it's possible but you'll probably have to use the Access Object Library. I'd suggest asking in the relevant Access forum for tips on how to do it.

Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top