Board index » delphi » Creating an .mdb database via Delphi 5 and ADO
Richard Mace
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Richard Mace
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Creating an .mdb database via Delphi 5 and ADO
Hello,
Does anybody know how I can create an .mdb access database (via code) using Thanks in advance. Richard Mace Richa...@mhsoftware.co.uk |
Zoralli
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Creating an .mdb database via Delphi 5 and ADOI know of no way to create the actual MDB file without using either Jet or the ODBC drivers. To do it from Delphi using code is quite simple (once you know how). I posted this in the inprise ng's a few weeks back. Apologies for the multiple appendages, but they are HTH --------------------------------------------------------------------------- A few little points (not immediately apparent from my original post). 1. You *NEED* the "DBQ=<path+filename>" entry, that specifies Cheers -- ------------------------------------------------------------------- Aksel De Meester <aksel.demees...@teleatlas.com> wrote in message > I tried this code. But I always get a return false. > There is a thing I don't understand: in the ODBC Microsoft desktop > Here my trial of his code: > function SQLConfigDataSource(Hwnd: > procedure TForm1.Button1Click(Sender: TObject); > var > begin > Attribs := Format( 'DSN=testje'+#0+ > fResult := SQLConfigDataSource(0,ODBC_ADD_DSN,'Microsoft Access Driver > end; > fResult always is false. > thanks for your help, > Aksel > Zorallin wrote: > > Hi, > > A special note. You *should* ask the ODBC administrator what drivers > > HTH > -------------------------------------------------------------------------- > > procedure Form1.FormCreate(Sender: TObject); > > // test/create MDB file associated with DSN > -------------------------------------------------------------------------- > > The above is copyright (c) 1999 White slavers Inc. Free for private use > > Tom Guarino <programm...@ads-corp.com> wrote in message > > > I am using a DSN for connecting to an ACCESS table for a > > > I am looking to do the INSTALL for it now, and wondering the best > > > Please respond if you know how to do this during an install, or > > > Thanks everyone, and happy holidays... > > > Tom |
1. mdb via Internet with ADO connection
2. Connect mdb file to an ODBC data source name via ADO
3. How can i create a new table in a mdb with ADO
4. MS Access 2.0 .mdb files via ODBC in Delphi
5. ADO-Connection to a .mdb-Database [Problems]
6. How to create database (*.mdb) file?
7. How to create a .MDB database
8. Record locking with ADO Express, ADO 2.5 and Access 2000 .mdb files