CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    2

    Creating an Access Database programmatically

    Is it possible to create an Access database in C# using ADO.NET?

  2. #2
    Join Date
    Dec 2005
    Location
    algiers, Algeria
    Posts
    132

    Re: Creating an Access Database programmatically

    Yes you can by adding ADOX reference and :
    Code:
    ADOX.CatalogClass cat = new ADOX.CatalogClass();
    cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\dbase.mdb;Jet OLEDB:Engine Type=5");

  3. #3
    Join Date
    May 2007
    Location
    Egypt
    Posts
    19

    Re: Creating an Access Database programmatically

    Thanks ledaker; this post provides discussion of the code you have just provided:
    http://vbadud.wordpress.com/2007/11/...lly-using-ado/

    In addition, you can query MASTER and create your database using SQL statements.
    Mohammad Elsheimy
    [email protected]
    [email protected]

    Just Like a Magic the magic inside the machine
    http://JustLikeAMagic.Wordpress.com

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

Featured