Setting up Paradox Tables on a Network

Setting up Paradox Tables on a Network

Question:
I’ve created a multi-user application in Delphi that accesses Paradox tables. But I’m having a problem setting them up to run successfully on a network.

Answer:

A Short Story

Here’s a make-believe but all too common scenario for those of you who are new to Paradox tables:

You’ve just finished final testing of a local database application on your machine, and you’re ready to deploy it to other workstations on your LAN. Knowing that your users will be needing the Borland Database Engine (BDE) to run the application, you install the BDE on each user’s machine, add the appropriate database aliases and create an icon on their desktops that points to your application. Satisfied, you tell the users to go ahead and take the application for a spin and that you’re going out to lunch. You’re confident in the knowledge that you’ve created a virtually flawless masterpiece (it’s got to be a masterpiece, considering the overtime you put into finishing the job). You go out to lunch and order a big steak in congratulations to yourself for a job well done. Today, you think, I’m going to take a really long lunch and revel in my victory. Isn’t life wonderful?

Upon returning to your desk, you notice that the message light on your voice mail machine is blinking furiously. Must be the folks in marketing congratulating me, you think. So you happily dial into voice-mail to listen to your messages. The dry, computerized female voice informs you that the first message came not five minutes after you left for lunch, and it’s from the head of the marketing department. Your heart sinks as you hear the message.

Hi, Tom. This is Mary Malone in marketing. I’m calling to tell you that the application you installed is crashing when more than one person accesses it. This isn’t good because we have to enter the information into the computer by quitting time today so we can run our reports in the morning for submittal to the planning department. I’m thinking that if this one thing’s wrong, what else is? Sorry for being a little miffed about this, but you need to fix it as soon as possible. Can you call me back and tell me when you’re coming over? The rest of messages say essentially the same thing.

When you call Mary back, you find out that the error messages that come up are “Directory is locked by another user.&quot or “Cannot open table. Table is locked by another lock file C:PRIVPARADOX.LCK”. How can that be? you ask yourself. I’ve never seen that error before. What am I gonna do…

Does the above sound familiar to you? While a bit on the hokey side, it’s not as far-fetched as one might at first assume. But there is a solution to this problem.

The Solution

Networking Paradox tables is not that difficult. In fact, when I tell you how, you’ll flip over how insanely simple it is. Here’s what you have to do:

  1. Open up Explorer or File Manager and create a new directory that is accessible to all users, making sure that they have both read and write privelges to it. For clarity’s sake, name it PDOXNET.
  2. Go to a user’s machine that has the BDE installed on it.
  3. Open up the BDE Configuration Manager. For Delphi 1.0, this is the IDAPI Configuration Manager.
  4. In the Driver Name list, select the PARADOX list entry.
  5. In the Parameters fields, click on the field entitled NET DIR.
  6. Type the fully qualified name of the directory you created on the network into this field.
  7. Save the configuration and exit the BDE Configuration Manager.
  8. Repeat steps 2 through 7 for each user’s machine on which the BDE is installed.

You must go through each of these steps, for a very good reason: The BDE has to know how to manage access to shared resources by multiple users. It does this with a central network control file called PDOXUSRS.NET, which is essentially a binary table that contains information about a specific user accessing a table. Its purpose is to keep a user count and tell the BDE who has what resources in use at any time. But the most important thing about this is that there can only be one of these files on the network at any time, and each user that uses the BDE must point to this file. Otherwise, the BDE will not know how to manage the users, and you’ll get the error messages that were mentioned in the story above.

devx-admin

devx-admin

Share the Post:
Poland Energy Future

Westinghouse Builds Polish Power Plant

Westinghouse Electric Company and Bechtel have come together to establish a formal partnership in order to design and construct Poland’s inaugural nuclear power plant at

EV Labor Market

EV Industry Hurting For Skilled Labor

The United Auto Workers strike has highlighted the anticipated change towards a future dominated by electric vehicles (EVs), a shift which numerous people think will

Soaring EV Quotas

Soaring EV Quotas Spark Battle Against Time

Automakers are still expected to meet stringent electric vehicle (EV) sales quotas, despite the delayed ban on new petrol and diesel cars. Starting January 2023,

Affordable Electric Revolution

Tesla Rivals Make Bold Moves

Tesla, a name synonymous with EVs, has consistently been at the forefront of the automotive industry’s electric revolution. The products that Elon Musk has developed

Poland Energy Future

Westinghouse Builds Polish Power Plant

Westinghouse Electric Company and Bechtel have come together to establish a formal partnership in order to design and construct Poland’s inaugural nuclear power plant at the Lubiatowo-Kopalino site in Pomerania.

EV Labor Market

EV Industry Hurting For Skilled Labor

The United Auto Workers strike has highlighted the anticipated change towards a future dominated by electric vehicles (EVs), a shift which numerous people think will result in job losses. However,

Soaring EV Quotas

Soaring EV Quotas Spark Battle Against Time

Automakers are still expected to meet stringent electric vehicle (EV) sales quotas, despite the delayed ban on new petrol and diesel cars. Starting January 2023, more than one-fifth of automobiles

Affordable Electric Revolution

Tesla Rivals Make Bold Moves

Tesla, a name synonymous with EVs, has consistently been at the forefront of the automotive industry’s electric revolution. The products that Elon Musk has developed are at the forefront because

Sunsets' Technique

Inside the Climate Battle: Make Sunsets’ Technique

On February 12, 2023, Luke Iseman and Andrew Song from the solar geoengineering firm Make Sunsets showcased their technique for injecting sulfur dioxide (SO₂) into the stratosphere as a means

AI Adherence Prediction

AI Algorithm Predicts Treatment Adherence

Swoop, a prominent consumer health data company, has unveiled a cutting-edge algorithm capable of predicting adherence to treatment in people with Multiple Sclerosis (MS) and other health conditions. Utilizing artificial

Personalized UX

Here’s Why You Need to Use JavaScript and Cookies

In today’s increasingly digital world, websites often rely on JavaScript and cookies to provide users with a more seamless and personalized browsing experience. These key components allow websites to display

Geoengineering Methods

Scientists Dimming the Sun: It’s a Good Thing

Scientists at the University of Bern have been exploring geoengineering methods that could potentially slow down the melting of the West Antarctic ice sheet by reducing sunlight exposure. Among these

why startups succeed

The Top Reasons Why Startups Succeed

Everyone hears the stories. Apple was started in a garage. Musk slept in a rented office space while he was creating PayPal with his brother. Facebook was coded by a

Bold Evolution

Intel’s Bold Comeback

Intel, a leading figure in the semiconductor industry, has underperformed in the stock market over the past five years, with shares dropping by 4% as opposed to the 176% return

Semiconductor market

Semiconductor Slump: Rebound on the Horizon

In recent years, the semiconductor sector has faced a slump due to decreasing PC and smartphone sales, especially in 2022 and 2023. Nonetheless, as 2024 approaches, the industry seems to

Elevated Content Deals

Elevate Your Content Creation with Amazing Deals

The latest Tech Deals cater to creators of different levels and budgets, featuring a variety of computer accessories and tools designed specifically for content creation. Enhance your technological setup with

Learn Web Security

An Easy Way to Learn Web Security

The Web Security Academy has recently introduced new educational courses designed to offer a comprehensible and straightforward journey through the intricate realm of web security. These carefully designed learning courses

Military Drones Revolution

Military Drones: New Mobile Command Centers

The Air Force Special Operations Command (AFSOC) is currently working on a pioneering project that aims to transform MQ-9 Reaper drones into mobile command centers to better manage smaller unmanned

Tech Partnership

US and Vietnam: The Next Tech Leaders?

The US and Vietnam have entered into a series of multi-billion-dollar business deals, marking a significant leap forward in their cooperation in vital sectors like artificial intelligence (AI), semiconductors, and

Huge Savings

Score Massive Savings on Portable Gaming

This week in tech bargains, a well-known firm has considerably reduced the price of its portable gaming device, cutting costs by as much as 20 percent, which matches the lowest

Cloudfare Protection

Unbreakable: Cloudflare One Data Protection Suite

Recently, Cloudflare introduced its One Data Protection Suite, an extensive collection of sophisticated security tools designed to protect data in various environments, including web, private, and SaaS applications. The suite

Drone Revolution

Cool Drone Tech Unveiled at London Event

At the DSEI defense event in London, Israeli defense firms exhibited cutting-edge drone technology featuring vertical-takeoff-and-landing (VTOL) abilities while launching two innovative systems that have already been acquired by clients.

2D Semiconductor Revolution

Disrupting Electronics with 2D Semiconductors

The rapid development in electronic devices has created an increasing demand for advanced semiconductors. While silicon has traditionally been the go-to material for such applications, it suffers from certain limitations.

Cisco Growth

Cisco Cuts Jobs To Optimize Growth

Tech giant Cisco Systems Inc. recently unveiled plans to reduce its workforce in two Californian cities, with the goal of optimizing the company’s cost structure. The company has decided to

FAA Authorization

FAA Approves Drone Deliveries

In a significant development for the US drone industry, drone delivery company Zipline has gained Federal Aviation Administration (FAA) authorization, permitting them to operate drones beyond the visual line of

Mortgage Rate Challenges

Prop-Tech Firms Face Mortgage Rate Challenges

The surge in mortgage rates and a subsequent decrease in home buying have presented challenges for prop-tech firms like Divvy Homes, a rent-to-own start-up company. With a previous valuation of

Lighthouse Updates

Microsoft 365 Lighthouse: Powerful Updates

Microsoft has introduced a new update to Microsoft 365 Lighthouse, which includes support for alerts and notifications. This update is designed to give Managed Service Providers (MSPs) increased control and

Website Lock

Mysterious Website Blockage Sparks Concern

Recently, visitors of a well-known resource website encountered a message blocking their access, resulting in disappointment and frustration among its users. While the reason for this limitation remains uncertain, specialists