Subject | RE: [IBO] Database connection in Delphi 7 |
---|---|
Author | Myles Wakeham |
Post date | 2004-10-07T16:16:48Z |
I'm not actually sure about this, but would the inclusion of a \ character
simply refer to 'escaping' the following character? I have to do this with
PHP all the time, but have you tried putting double \ characters in there so
that it gets a literal \ in the database name?
Ie. '127.0.0.1:c:\\Program Files\\Firebird\\Bin\\TMS.GDB';
Just a thought. I'm not an expert in this, but your missing colon stuck out
quickly.
Myles
===========================
Myles Wakeham
Director of Engineering
Tech Solutions Inc.
Scottsdale, Arizona USA
Phone (480) 451-7440
Web: www.techsol.org
simply refer to 'escaping' the following character? I have to do this with
PHP all the time, but have you tried putting double \ characters in there so
that it gets a literal \ in the database name?
Ie. '127.0.0.1:c:\\Program Files\\Firebird\\Bin\\TMS.GDB';
Just a thought. I'm not an expert in this, but your missing colon stuck out
quickly.
Myles
===========================
Myles Wakeham
Director of Engineering
Tech Solutions Inc.
Scottsdale, Arizona USA
Phone (480) 451-7440
Web: www.techsol.org
> -----Original Message-----
> From: yaedos2000 [mailto:yaedos2000@...]
> Sent: Thursday, October 07, 2004 9:14 AM
> To: IBObjects@yahoogroups.com
> Subject: Re: [IBO] Database connection in Delphi 7
>
>
>
> Thanks, I've put the colon in (how did I miss that?!) but I'm still
> getting the same error. The error actually reads: "DatabaseName
> cannont be blank."
>
> --- In IBObjects@yahoogroups.com, "Myles Wakeham" <myles@t...> wrote:
> > Your database name is incorrectly formatted. Should read:
> >
> > '127.0.0.1:c:\Program Files\Firebird\Bin\TMS.GDB';
> >
> > (NOTE the missing second colon : after the C following the IP
> address).
> >
> > Myles
> >
> > ===========================
> > Myles Wakeham
> > Director of Engineering
> > Tech Solutions Inc.
> > Scottsdale, Arizona USA
> > Phone (480) 451-7440
> > Web: www.techsol.org
> >
> >
> >
> > > -----Original Message-----
> > > From: yaedos2000 [mailto:yaedos2000@y...]
> > > Sent: Thursday, October 07, 2004 9:02 AM
> > > To: IBObjects@yahoogroups.com
> > > Subject: [IBO] Database connection in Delphi 7
> > >
> > >
> > >
> > > Hi,
> > >
> > > I'm developing a database system for my project using Firebird
> and
> > > IBO components. I'm using IB_Connect to connect the database with
> the
> > > following code:
> > >
> > > cn.Params.Values ['Database'] := '127.0.0.1:C\Program
> > > Files\Firebird\Bin\TMS.GDB';
> > > cn.Params.Values ['user_name'] := 'tarak';
> > > cn.Params.Values ['password'] := 'test';
> > > cn.Connect;
> > >
> > > The code produces the run-time error "DataBase name cannot be
> blank."
> > > The same code works fine in another version of the database. Any
> > > ideas??!!
> > >
> > > Thanks :-)
> > >
> > >
> > >
> > >
> > >
> > > ------------------------ Yahoo! Groups Sponsor
> > > --------------------~-->
> > > $9.95 domain names from Yahoo!. Register anything.
> > > http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/PhFolB/TM
> > > --------------------------------------------------------------
> > > ------~->
> > >
> > > ______________________________________________________________
> > > _____________
> > > IB Objects - direct, complete, custom connectivity to
> > > Firebird or InterBase
> > > without the need for BDE, ODBC or any other layer.
> > > ______________________________________________________________
> > > _____________
> > > http://www.ibobjects.com - your IBO community resource for
> > > Tech Info papers,
> > > keyword-searchable FAQ, community code contributions and more
> > > !
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/PhFolB/TM
> --------------------------------------------------------------
> ------~->
>
> ______________________________________________________________
> _____________
> IB Objects - direct, complete, custom connectivity to
> Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ______________________________________________________________
> _____________
> http://www.ibobjects.com - your IBO community resource for
> Tech Info papers,
> keyword-searchable FAQ, community code contributions and more
> !
> Yahoo! Groups Links
>
>
>
>
>
>
>