How to create an access database?
I have the recordset with the data, and I want to create on he fly an access database (on app.path) with one table which will contain the entire recordset. How?
Michael Vlastos
Automation Engineer
Company SouthGate Hellas SA
Development Department
Athens, Greece
Re: How to create an access database?
if you use ADO you can add a reference to ADOX = Microsoft ADO Ext 2.1 for DDL and Security.
it has methods for creating a database and objects inside...
Re: How to create an access database?
just found some sample code
Dim c as ADOX.Catalog
set c = new ADOX.Catalog
c.Create "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=m:\schrott\test2.mdb"
and now for something completely different
how about throwing away all your VB code and use SQL server 7's DTS (data transformation service) facility?
or bulkcopy out your sQLServer out to a textfile and import it into access using Access's Import feature?
I'd never write a single line of code for data transfer purposes!
Re: and now for something completely different
Because my database contains data for 500 customers and I want to create 500 mdb's for each customer. That seems to be difficult by importing from Access. About the SQL utility you said, I will take a look. thanx anyway for all replies (and speed!!!)
Michael Vlastos
Automation Engineer
Company SouthGate Hellas SA
Development Department
Athens, Greece