access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi;

How do I create an access database programatically,
in vb.net? I need to programatically create the .mdb, and
the table, and column names, as string type columns.

I referenced an access.dll

Articles?

Segue
 
I create access databases using the connection stirng:

cat.Create("Provider=Microsoft.Jet.OLEDB.4.0; Data _
Source=D:\AccessDB\NewMDB.mdb)

I leave off the ";Jet OLEDB:Engine Type=5" that is shown in the example.
What does this part do in creating the database?
 
¤ I create access databases using the connection stirng:
¤
¤ cat.Create("Provider=Microsoft.Jet.OLEDB.4.0; Data _
¤ Source=D:\AccessDB\NewMDB.mdb)
¤
¤ I leave off the ";Jet OLEDB:Engine Type=5" that is shown in the example.
¤ What does this part do in creating the database?

It specifies the version of the Jet database storage engine to use, although it isn't of any
significance when *creating* an Access database.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Thanks to all this was easier than I thought.

Still don't know how to use the access.dll I referenced.
 
Thanks to all this was easier than I thought.

Still don't know how to use the access.dll I referenced.
 
Thanks to all this was easier than I thought.

Still don't know how to use the access.dll I referenced.
 
Thanks. If I don't specify it when creating then I assume the latest version
on my computer will be used...is this correct? Also, when accessing the
database if I don't specify the type, then also the latest version will be
used..is this also correct?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top