[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

Create a Access Database with ADO

Can anyone tell me how to create an Access-database with the ADO-components that come with Delphi 5 ? - Some samplecode would be nice...

hopla
0
hopla
Asked:
hopla
1 Solution
 
dygCommented:
Use ADOX to create database:

uses ComObj;

implementation

procedure CreateAccessDatabase;
var
  Catalog: Variant;
begin
  Catalog := CreateOleObject('ADOX.Catalog');
  Catalog.Create('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\new.mdb;');
end;
0
 
hoplaAuthor Commented:
Seems to work like a charm!

Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now