Click here to Skip to main content
15,886,761 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Create a blank Jet database

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
7 Nov 2010CPOL 8.6K   3   2
You can do this in a much easier way:object ADOXCat = Activator.CreateInstance(Type.GetTypeFromProgID("ADOX.Catalog"));ADOXCat.GetType().InvokeMember("Create", System.Reflection.BindingFlags.InvokeMethod, null, ADOXCat, new string[] { ConnectionString });
You can do this in a much easier way:

C#
object ADOXCat = Activator.CreateInstance(Type.GetTypeFromProgID("ADOX.Catalog"));
ADOXCat.GetType().InvokeMember("Create", System.Reflection.BindingFlags.InvokeMethod, null, ADOXCat, new string[] { ConnectionString });

License

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


Written By
Web Developer
Germany Germany
Software-Developer since 1990
Specialiced in LAN/WAN Tracers ( sniffer )
now developing in .NET ( c#, VB, ASP ..)

Comments and Discussions

 
GeneralReason for my vote of 1 1 Pin
Sherylee12-Nov-10 1:18
Sherylee12-Nov-10 1:18 
GeneralReason for my vote of 5 cool esoteric code :) Pin
almog.ori6-Nov-10 6:23
almog.ori6-Nov-10 6:23 

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.