Solved

DBD Alias Problem

Posted on 1997-05-14
6
218 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Expert Comment

by:icampbe1
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now