?
Solved

DBD Alias Problem

Posted on 1997-05-14
6
Medium Priority
?
229 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 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
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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 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