|Subject||Re: [IBO] Alias Names|
>At 08:30 AM 19-10-01 +0000, you wrote:At 06:58 PM 19-10-01 +1000, Helen Borrie wrote:
> >Our sotware goes out to many different clients. I cant hardcode the
> >literal string. If not using an AliasName, would you setup an ini
> >file or is there a better way to do this ?
>ini file or registry - Delphi has good support for both. Registry is less vulnerable to external interference...ini files "go anywhere" whereas REG files are Win-version-specific... It's small code - why not try both and see which you prefer? For clues on the Registry way, see Jason's connection code in IBF_SQL.pas (the main form for the IB_SQL application).I should have added that you can actually set up the ISC_DATABASE environment variable, either statically in the system configuration or as part of a startup script or batch file (as appropriate to the server platform).
All for Open and Open for All
InterBase Developer Initiative · http://www.interbase2000.org