Configuring BDE for Windows 7

Applies to: Borland Delphi, BDE, Paradox Databases, Windows 7

Windows 7 can be very restrictive towards applications written for the previous versions of Windows. This is the case with the Borland Database Engine (BDE), which is not capable of running in Windows7 unless two settings have been changed:

  1. A permission for the BDE must be given in the windows registry database.
  2. A BDE attribute named “Net Dir” must be configured to an arbitrary folder other than the root drive (C:). This configuration is done in the “BDE Administrator” program that’s installed with the BDEInfoSetup utility.

1. First, configure the permission for the BDE in the registry…

Make sure you are logged into your Windows7 machine with an administrator account. Then follow these directions:

  1. Go to Start | Run… Type regedit…
  2. Open the HKEY_LOCAL_MACHINE branch.
  3. Open the SOFTWARE branch.
  4. Right-Click on the entry labeled “Borland”.
  5. In the menu that shows select Permissions. The following dialog will appear:
  6. Click “Users”.
  7. Under “Permissions for Users “, select “Allow” for Full Control. Then click OK.
  8. Click OK to exit the Registry Key Permissions dialog box.
  9. Exit the Registry Editor window

2. Next the Borland Database Engine must be configured…

The Borland Database Engine makes use of a special file called “Pdoxusrs.net” (the purpose of which is beyond the scope of this document). The default setting for the placement of this file is in the root of drive C, which will fail under Windows Windows7, as this operating system does not permit new files to be created here. However, it is permitted to designate any subfolder for the “Pdoxusrs.net” file to be placed. The name of this new folder is of minor importance and could be named anything you like. For example, here we will choose “BDEShare”. (The name doesn’t matter. It just needs to be any folder other than the root drive.)

So let’s stick with this example. Create a subfolder off the root drive C and name it “BDEShare“. So the file path for this new subfolder will be “C:BDEShare”. Remember this string value because you will need to enter it below.

Now the BDE must be configured to use the new folder. This is done in the Windows control panel, where you will find an applet named “BDE administrator“. Note that you will only see this after the BDE has been installed to your system (which should have been done automatically during the installation of your application).
You can also find this utility under C:Program FilesBorlandCommon FilesBDEBDEADMIN.EXE

Double-click the BDE Administrator to open it. You will see the following dialog appear:

As shown in the above picture, click the tabsheet titled “Configuration”. Expand the configuration as shown (Drivers – Native) to expose the entry titled “PARADOX”. Single click the item named PARADOX. Now observe the data that fills on the right half of the dialog. You will need to edit the entry for “NET DIR”. Initially, it will be shown as “C:”. You need to change that entry to the subfolder that you created above. In our example, this is C:BDEShare.

If the BDE Administrator is not capable of making the change then verify that the permission in the registry has been set properly. If this isn’t the case then retry to apply the permission as described in the above.

Now start your application. With the BDE now happy with Windows7 (actually, the other way around!), your app should function properly.

Leave a comment ?

15 Comments.

  1. Diane Bundlie

    Thanks for this fix. There’s only one thing you need to change: the path to the BDEADMIN is
    C:Program FilesCommon FilesBorlandBDEBDEADMIN.EXE
    NOT
    C:Program FilesBorlandCommon FilesBDEBDEADMIN.EXE
    In other words, the Borland folder is in Common Files, not the other way around.

    Otherwise, this was excellent and helped me and my customer. Thanks!

  2. Diane Bundlie

    The reason I had to use the Windows Explorer path is because the customer could not see the BDE Administrator in Control Panel.

  3. great work

  4. Hi,
    I tried to run a Delphi 5 application with Paradox and BDE in Windows 7 and although I made the changes in the registry and the Net Dir , I get the error ‘An error occured while attempting to intialize the Borland Database Engine (error $2108). I would be obliged if you could help me

    Thank you very much

  5. Please try the following link. Let me know if this resolves your issue.
    http://support.embarcadero.com/article/35865

  6. Thank you for your help. I got over the error message og initializing the BDE. The prblem now is that I get the message ‘Unknown database. Alias ‘…’.
    The alias is set right on the BDE administrator pointing to the directory that contains the Paradox files. Could you suggest any workaround for this problem. Thank you very much once again.

  7. Hi, great job!
    Now, after configuring BDE, I have a problem reading my tables with ODBC in C#.
    When I try to read these tables I have the ODBC error [Microsoft][ODBC Paradox Driver]External table is not in the expected format.
    When I am on a XP environment everything works well, instead when I am on a Win7 64bit dev machine (my code is running at 32 bit) I get this error.
    Is it this a well-known error?
    Thanks in advance

  8. Thanks for the great advice. :grin:

  9. @Nick
    Try to start both, the bdeadmin.exe and your application, with administrator rights.

  10. This is really helpfull, thanks for taking the time to share it.
    :smile:

  11. I am very greatful for this information. I have a software package with 390 users and when Windows 7 arrived I had the issues outlined above. I have downloaded the BDE, made the changes to the reg and it works. Thanks a bunch.

    :smile:

  12. I installed the BDE on a New Windows 7 Dell Desktop PC and when I went to the registry the Borland BDE was not installed. The system seemed to work but this has happeded before where the system will run for hours or days and then start having the $2508 error. I’m lost at what to do.
    HELP

  13. Thanks. Using and supporting a legacy delphi 4 app in win 7 – 64 bit. Works Well. But the Registry entries for 64 bit are in HKEY_LOCAL_MACHINESOFTWAREWow6432NodeBorland
    I gave permissions to that key and all seems well. Its a multi user file share paradox db app. Have yet to see it in full load but so far so good.

  14. :idea: I have taken a different approach to legacy Delphi/Paradox BDE applications on Windows 7. I have purchased VMware Workstation and now have a fully functional and licensed copy of Windows XP running in a separate “window” on my Win7 machine. All the legacy programs are loaded on the XP “machine”. Saves a lot of detailed manipulation to get them running, but, of course, does not help with clients.

  15. Hi Delphi developers! :razz:
    If you need a setup for BDE working under Windows 7 32 and 64 bits (and XP, Vista, 2003, etc) you can try a setup I’ve created using Inno Setup. More information you can find here:
    http://alexandrecmachado.blogspot.com/2012/01/bde-and-windows-7-32-and-64-bits.html

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>