There are several Delphi tutorials out there that use the DBDemos database that ships with Delphi. I tend to learn much better if I actually perform the tasks outlined in these tutorials rather than just reading or viewing them. However, I'd much rather perform these tasks using ElevateDB, since this is the database I have chosen for all my new applications.
I started looking around to see if someone has done this already. I was looking for a .zip file out there in internet land. I posted to the ElevateDB support group hoping someone had a .zip file I could get my hands on. What I found was much more valuable.
One of the regulars, Roy, said why don't you just use the "built-in BDE migrator" that comes with ElevateDB.
This is one of the coolest things I have done with ElevateDB. I learned so much more going through this process then I would have if I simply downloaded some .zip off the internet.This whole process takes less than 5 minutes from start to finish. It looks very complicated but believe me it's not.
Step 1 - Create a Session Called DBDemos
Make sure you have the ElevateDB Manager up and running. Right-Click on ElevateDB Manager and then choose Create New Session
General Tab
There are two things that need to be done inside the General tab.
- Name: DBDemos
- Description: DBDemos database that ships with Delphi
Local Tab
There are two things that need to be done inside the Local tab.
- File Folder: Enter the location for configuration file for this session. Don't worry if this folder doesn't exist, it will get created for you later on.
- Large File Support: Make sure this box is checked.
DO NOT CLICK OK . . Switch to the Login tab
Login Tab
There are three things that need to be done inside the Login tab.
- User Name: Administrator
- Password: Enter: EDBDefault
- Confirm Password: EDBDefault
Click Yes if prompted to create folder. |
Step 2 - Create Database Migrators
Now we need to add the database Migrators that come with ElevateDB to the DBMemos session.
- Expand the ElevateDB Manager by clicking on the + (Plus)
- You will see the DBDemos session we just created
- Expand the DBDemos session by clicking on the + (Plus)
- Right-Click on DBDemos
- Choose Create Database Migrators
Step 3 - Create an Empty DBDemos database
Now we need to add the database Migrators that come with ElevateDB to the DBMemos session.- Expand the ElevateDB Manager by clicking on the + (Plus)
- Expand the DBDemos session by clicking on the + (Plus)
- Right-Click on Databases
- Choose Create New Database...
There are three things that need to be done on the General tab
- Name:DBDemos
- Description: DBDemos Database that ships with Delphi
- Folder: Enter the location where you want the database files to reside. In my example I simply use a DB folder in the same location as the session folder.
Click OK when Done |
Step 4 - Migrate the DBDemos Database and Into ElevateDB
We are almost done, this is the final step.- Expand ElevateDB Manager by clicking on the + (Plus)
- Expand DBDemos session by clicking on the + (Plus)
- Expand Databases by clicking on the + (Plus)
- Right-Click on DBDemos database
- Choose Migrate Database...
There are seven things that need to be done on the Migrate Database Source tab.
- Migrator: Choose BDE
- Ckeckbox: Make sure Include Table Data is checked
- Parameters Grid: Click DatabaseName to highlight the grid row
- Value: Enter DBDemos
- Click Set Paramter Value button
- Veify the Parameter Grid shows DBDemos for the DatabaseName
- Click OK
Congratulations. You now have an ElevatdDB version of the DBDemos database you can use to follow along with all the Delphi tutorials out there.
Enjoy!
Semper Fi - Gunny Mike
I am learning report writed but do not have ElevateDB. We use an old version of DBISAM.
ReplyDeleteIf possible, please can you zip and share the DBDemos database you created?
Thanks - Kevin