Solved

DBD Alias Problem

Posted on 1997-05-14
6
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 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
Technology Partners: 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

Industry Leaders: 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!

Question has a verified solution.

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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