I could have sworn someone wrote an FAQ on that, but I don't see it in that section.
We code it like this for paradox:
If Session.IsAlias('AliasXYZ') then
Session.DeleteAlias('AliasXYZ');
Session.AddStandardAlias('AliasXYZ','C:\XYZ','PARADOX');
I doubt that Oracle will work with ADO (I have no idea if that's true), so I expect that you will have to use an ODBC connection. This is how we connected to Access before we used ADO connections:
Parameters := TStringList.Create;
If Session.IsAlias('AliasXYZ') then
Session.DeleteAlias('AliasXYZ');
Parameters.Add('DATABASE NAME=H:\XYZ\Main.mdb');
Parameters.Add('ODBC DSN=ODBC_XYZ');
Session.AddAlias('AliasXYZ', 'Microsoft Access Driver (*.mdb)', Parameters);
Parameters.free;
I doubt this is much help, but someone else will give you more useful information shortly.
You should take a look at the DbiAddAlias function. It's documented in BDE32.HLP. It basically adds a new alias to the BDE configuration file (IDAPI.CFG for example).
This procedure creates an alias to an Oracle database:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.