Click here to Skip to main content
12,554,150 members (60,193 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


3 bookmarked

Create a blank Jet database

, 13 Nov 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
And here is the long version, provided from Microsoft:[^]using System;using ADOX;namespace ConsoleApplication1{ class Class1 { [STAThread] static void Main(string[] args) { ...
And here is the long version, provided from Microsoft:[^]

using System;
using ADOX;
namespace ConsoleApplication1
    class Class1
        static void Main(string[] args)
            ADOX.CatalogClass cat = new ADOX.CatalogClass();
            cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" +
                   "Data Source=D:\\AccessDB\\NewMDB.mdb;" +
                   "Jet OLEDB:Engine Type=5");
            Console.WriteLine("Database Created Successfully");
            cat = null;

But many thanks for the embedded version - the trick just works for all esoterism file formats we need in our projects.
And a special thanks :-O for the c style one line solution. That is a real 5 too.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Germany Germany
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralThis line: ADOX.CatalogClass cat = new ADOX.CatalogClass()... Pin
ZamirF24-Nov-10 11:22
memberZamirF24-Nov-10 11:22 
GeneralReason for my vote of 1 1 Pin
JFergulbops12-Nov-10 1:17
memberJFergulbops12-Nov-10 1:17 
GeneralMy Solution has nothing to do with esoterics. It came from t... Pin
FZelle9-Nov-10 23:00
memberFZelle9-Nov-10 23:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161021.1 | Last Updated 13 Nov 2010
Article Copyright 2010 by snoopy001
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid