How to Create ACCESS Database from VB code.

alexk

Active member
Joined
Jul 23, 2002
Messages
34
Location
Israel
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?
 
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
 
rmatthew, that is not a .NET method, it still uses COM.

I guess since Im not able to provide a solution using .NET, Ill go away now.
 
Back
Top