Subject RE: [IBO] Database connection in Delphi 7
Author Myles Wakeham
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@...]
> 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
>
>
>
>
>
>
>