Subject | [IBO] Re: TIBODatabase Paths & Aliases? |
---|---|
Author | mitch_landor |
Post date | 2006-09-23T03:23:01Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
version IBO components, just haven't installed them yet).
I wan't to develop and test on my standalone local computer which does
not have a static IP address, and deploy the app & db to any
workstation/server whether standalone (no fixed IP) or in a workgroup
or domain.
1. Is it possible to do this, given that I presume that my development
machine must use cpLocal, but the deployed app must presumably use
cpTCP_IP?
2. Is it possible to cater for all user protocol permutations with one
exe?
3. When I use cpLocal on my development machine, I can enter my alias
ok in both the databaseName & Path properties. But I am not sure
exactly what to enter in the Database field in the IBODatabase editor.
The editor has an elipsis button and then I can make an entry and then
I have to press the "find" button. It will only accept the entry if it
can find the alias/path. So exactly what should I put in this box? Can
you give me a specific example? (eg: localhost:alias) or something?
Mitch
>name if
> At 06:24 PM 22/09/2006, you wrote:
>
> > > Don't worry about it. It only writes that if it encounters a Nil
> > > entry in Database. Make it a point always to use Path, Server and
> > > Protocol and avoid the traditional VCL hard-wiring of the whole
> > > Database string or use of Params.
> > >
> > > You can use the Database property for some developer-friendly
> > > you want, doesn't need to resemble the database name in any way.I'm using Delphi 2006, IBObjects Trial 4.6. (I've bought the paid
> > >
> > > Helen
> > >
> >
> >
> >It doesn't seem to work for me. Rather like "whack-a-mole". Wherever I
> >enter the alias, the path pops up somewhere else, even if I enter a
> >spurious name.
> >
> >eg: (all references below are to the TIBODatabase)
> >1. If I enter my alias in the path property, it also shows up in
> >databasename. But in the dbeditor the file path is shown. If I now try
> >to deploy this on another computer, the error message indicates
> > that it is still looking for my original path, not the alias.
> >
> >2. The dbeditor refuses all attempts to change the path in its
> >database field. Does this mean I have to use the "search" and "find"
> >functions to get it to accept a setting?
>
> Something is fishy. What versions of everything are you using?
>
>
> >What is the exact syntax for a connection on the same computer?
> >
> >localhost: ???
>
> localhost would be the Server property, provided you set cpTCP_IP as
> the protocol. If you set Protocol to cpLocal, the Server property is
> ignored. The Path property can be a path or an alias. That path
> (whether it is in aliases.conf or is coded directly into Path) of
> course must be a path that is local to the server and on a partition
> that is controlled by the host machine that is running
> Firebird. What it cannot be is any sort of share or drive mapping.
>
> Helen
>
version IBO components, just haven't installed them yet).
I wan't to develop and test on my standalone local computer which does
not have a static IP address, and deploy the app & db to any
workstation/server whether standalone (no fixed IP) or in a workgroup
or domain.
1. Is it possible to do this, given that I presume that my development
machine must use cpLocal, but the deployed app must presumably use
cpTCP_IP?
2. Is it possible to cater for all user protocol permutations with one
exe?
3. When I use cpLocal on my development machine, I can enter my alias
ok in both the databaseName & Path properties. But I am not sure
exactly what to enter in the Database field in the IBODatabase editor.
The editor has an elipsis button and then I can make an entry and then
I have to press the "find" button. It will only accept the entry if it
can find the alias/path. So exactly what should I put in this box? Can
you give me a specific example? (eg: localhost:alias) or something?
Mitch