Solved

Change extention of a database to my own application file.

Posted on 2009-07-09
3
174 Views
Last Modified: 2012-05-07
Dear experts,

I have made a programm that uses a MS-ACCESS database.
I use the components ADOConnection and ADOQuery for that.
And everythings works fine. But I have a couple of questions:

1. Do you have to install MSACCESS on the computer for my application
   to open an Acces-database?
2. I want to make of the database (.MDB) my own application file (.PKD)
    How can I do that?
3. If I change the database extention .MDB to a .PKD is than still possible
    to open it with MSACESS.

Greetings, Peter Kiers

 
0
Comment
Question by:peterkiers
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
FactorB earned 500 total points
ID: 24812565
1. No, you don't need to. You just need the compatible driver, in your case "Microsoft.Jet.OLEDB.4.0" which is pre-installed on Windows XP and above, if not you can download it from http://support.microsoft.com/?id=239114

2. Simply change the file extension from Database.mdb to Database.pkd


3. It is not possible to open the .pkd file with access straight away, file association will be lost, you will need to redo the association with the help of open dialog or programmatically ...

3.5 :) In order to access your new database you will need to use appropriate connection string, ex.
Form1.ADOConnection1.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source='+IncludeTrailingPathDelimiter(ExtractFilePath(Application.ExeName))+'Database.pkd;';

Regards,
B.
0
 
LVL 1

Author Comment

by:peterkiers
ID: 24812920
Thanks for the info, you really helped me alot.
0
 
LVL 6

Expert Comment

by:FactorB
ID: 24813102
This was quick grading :)
You are always welcome.

Regards,
B.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now