Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mike

[C#] Create Access DB file...

This topic is 5283 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a way in C#.Net to create the database file if it does not already exist? I know how to take an empty database and add tables and such to it with no problem, but I don''t know how to create the actuall .mdb file if it is not present.

Share this post


Link to post
Share on other sites
Advertisement
You might be able to do it using OLE Automation interface of MSAccess itself, but I wouldn''t hold your breath.

I would probably go for shipping a "skeleton" mdb file with your app, and just copying the file into the right place before you mess with it.

OLE Automation is pretty unreliable in my experience.

Mark

Share this post


Link to post
Share on other sites
This might help: http://www.codeguru.com/vb/gen/vb_database/microsoftaccess/article.php/c5149

Regards,
Andre Loker

[edit]BTW: it was a 5 sec google-search-work...[/edit]

[edited by - VizOne on June 3, 2004 12:43:45 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!