Subject | RE: [IBO] Connecting to a remote database |
---|---|
Author | Alan McDonald |
Post date | 2004-12-25T20:13:55Z |
> Alan McDonald wrote:Ahh no.. using the alias on IBODatabase makes IBO look into the BDE's config
>
> > > I have an NT w/s with FB 1.5.1 installed. The firewall is
> allowing it to
> > > act as a server on port 3050. SYSDBA and password have not
> been changed
> > > from the default. The computer's name on the network is MACHINE2.
> > >
> > > In aliases.conf I have defined an alias for the database:
> > > TestDB = d:\test\TEST.FDB
> > >
> > > I am running Delphi 7 with IBObjects on an XP machine.
> > >
> > > I have not set any permissions on the NT machine for the XP
> machine to
> > > access the root drive of the NT machine, where Firebird resides.
> >
> > this is not necessary anyway - not sure why you even think this
> is relevant.
>
> Because this is where the server is located.
> >
> > >
> > >
> > > In IB_Database1 I set
> > > AliasName to TestDB
> > > protocol to cpTCP_IP
> > > server to the local ip address of the machine: 192. ...
> > > password for SYSDBA entered as the usual default.
> > >
> >
> > I asume you are not using IN_Connection. Now if you want to use
> an alias and
> > not the full path - that means you are trying to use the BDE on
> the local XP
> > machine. If you want to avoid the BDE - you need also to se
> tthe path of the
> > database. and not the alias.
> > Alan
>
> The same thing occurs with IB_Connection. IB_Database is an IBObjects
> Access component and doesn't use the BDE.
>
> Using the alias should void the need to set the path.
>
> Raymond.
file for the real database path. If you set it's path and server and set
alias to blank, then it will not look for the config file, it will take your
word for it. There is no such component as IB_Database - it's IB_Connection
or IBODatabase AFAIK.
Alan