Click here to Skip to main content
12,449,919 members (42,090 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3.8K views
3 bookmarked
Posted

Create a blank Jet database

, 7 Nov 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
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:

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)

Share

About the Author

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

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralReason for my vote of 1 1 Pin
JFergulbops12-Nov-10 1:18
memberJFergulbops12-Nov-10 1:18 
GeneralReason for my vote of 5 cool esoteric code :) Pin
almog.ori6-Nov-10 6:23
memberalmog.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.

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