alexk Posted January 27, 2003 Posted January 27, 2003 How can I create ACCESS Database using VB.NET code??? In old version I was use code: DAODBEngine.Workspaces(0).CreateDatabase(DBName, ..., ...) But how do it in VB.NET? Quote
rmatthew Posted January 28, 2003 Posted January 28, 2003 Finally a question I can answer!!!!! This is my first time trying to answer a question so I hop I get this right (use at your own risk.) - BUT works for me in my app. catalog = CreateObject("ADOX.Catalog") catalog.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & path) Hope that helps Quote
Moderators Robby Posted January 28, 2003 Moderators Posted January 28, 2003 rmatthew, that is not a .NET method, it still uses COM. I guess since I'm not able to provide a solution using .NET, I'll go away now. Quote Visit...Bassic Software
Moderators Robby Posted January 28, 2003 Moderators Posted January 28, 2003 In case you want to use ADOX , here's a sample from our own Thinker. http://www.visualbasicforum.com/showthread.php?s=&threadid=20002 Quote Visit...Bassic Software
rmatthew Posted January 28, 2003 Posted January 28, 2003 You are right - uses COM Only way I am aware of - sorry Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.