Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DBD Alias Problem

Posted on 1997-05-14
6
Medium Priority
?
231 Views
Last Modified: 2011-09-20
I seem to have lost the ability to create aliases with data base desktop (All I use is D1 - my shop uses Win 3.11)
When I try to run through an aias creation, I get the following actions/results:
Alias -> new alias -> newaliasname/Standard/some path  -> keep new -> OK -> <Dialog box> OK to save Public Aliases
to c:\idapi\idapi.cfg? -> Yes ->
<Dialog box> Cannot find Engine configuration. -> OK

C:\idapi\idapi.cfg is there, and I have certainly created aliase earlier. But, after working with other things for awhile, and coming back, I get this "Cannot find Engine configuration" complaint, and the cfg file is not rewritten.
Database Engine Configuration doesn't seem to save anything either - aliases created in DBEC don't cause any complaints, they just don't get written to the table.
0
Comment
Question by:dkerr051497
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:javiertb
ID: 1336232
Did you trie to do it with BDE Configuration Program and not within DataBase Desktop?
When you have finished creating the alias click Save as... menu option and give the complete path where idapi.cfg is allocated.
After this, try restarting Windows and open BDE Configuration Program again to check if your alias is still there.
I've been experiencing some troubles with BDE but now everything works fine. Maybe yours it's another kind of problem.
Let me know the results.
0
 
LVL 2

Accepted Solution

by:
icampbe1 earned 200 total points
ID: 1336233
You have to make sure that the Win.INI file is pointin to the same file as you think you are using.

[IDAPI]
DLLPATH=D:\IDAPI
CONFIGFILE01=D:\IDAPI\IDAPI.CFG

Otherwise you are just doing a local save and it isn't being used by the engine.

Hope this helps.

Cheers,
Ian C.
0
 

Author Comment

by:dkerr051497
ID: 1336234
Win.ini looks good. Idapi.cfg is showing only the 'a' file flag, yet when I use Database Engine Configuration, and tell it to rewrite idapi.cfg, it doesn't. If I use save as, and use a different name, it will do a save. If I use save as, and try to save as c:\idapi\idapi.cfg, it asks if I want to replace the original, but then it doesn't.
S'wierd, no?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:icampbe1
ID: 1336235
Hi again,  When you say that Win.INI looks good, I assume that you mean the file path and name are OK.  Somewhere in the back of my mind I seem to remember that the BDE must not be loaded or any app that uses the engine.  Maybe if you do a fresh system start and then make the config changes before anything is busy, the changes will take effect.

You didn't say if you also have Delphi 2 or 3 on your system.

Let me look more closely at my system's config.

0
 

Author Comment

by:dkerr051497
ID: 1336236
Delphi 1 (16 bit).
Yes, the idapi section in Win.ini looks just as prescribed(except for c:\ drive. . .).
When I write to a different destination (save as someother.fil), leave say dbengine configuration, and then start it up again, and load the newly saved file (someother.fil), the additions I just made are NOT included (no new alias).
What I think I will do now is to reload BDE and IDAPI from the cd, see if anything comes from so simple an effort.
I'll let you know, yeah or nay . . .
DK

0
 

Author Comment

by:dkerr051497
ID: 1336237
Don't know what C means - to me it means thanks for the hand-holds. I solved the problem, in a kludgey kinda way. I reinstalled bde several times, using both the D2 CD and the original D1 CD - no help. same symptoms as above every time.
Forgive me, but then I read the read me - it mentions copying the idapi cfg file straight from the CD/runimage. Of course, this kills all my hooks -- other aliases and odbc data gone, but I should be able to rebuild it. Just reloading the program would not replace my idapi.cfg file. At any rate, for the nonce, dbe and DBEC work okay.
Again, thanks for your interest. . .
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

927 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