Results 1 to 2 of 2

Thread: Creating a Microsoft Access Database at Runtime

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Location
    United Kingdom
    Posts
    3

    Question Creating a Microsoft Access Database at Runtime

    Hello,

    How would I go about creating a Microsoft Access at runtime. I want the database to be created purley in code. I dont want to embed the database into my exe. Any pointers in the right direction would be very useful
    Kind Regards,
    Robert A Heeley
    http://www.rahsoftware.com
    [email protected]

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Creating a Microsoft Access Database at Runtime

    You would need to use ADOX to create the database in the first place. Once the database exists you could do some things in ADO.NET if you wanted, but it might be just as easy to stick completely with ADOX. Search MSDN and you'll get heaps of hits, but below is a link to some code examples. You've got a choice of VB.NET or C++ I'm afraid, but between them you should be able to convert to C#. There's also a link to a code converter in my signature if you need it, but don't expect it to be 100% reliable.

    http://msdn.microsoft.com/library/de...dlexamples.asp

    Edit:
    I recommend against posting your actual e-mail address where spammers can easily find it.
    Last edited by jmcilhinney; Nov 17th, 2005 at 06:36 PM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width