Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

Create a blank Jet database

5.00/5 (4 votes)
7 Nov 2010CPOL 9.1K  
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)