Subject Re: [IBO] FU:Help IBObjects, Delphi & Local Interbase
Author hans@hoogstraat.ca
IBO has more options there than you could wish for. Check them out :)

=====================================================

David Husarik wrote:
>
> Hi Group,
>
> First, Thank-you to Helen And Hans for the prompt
> responses to my questions. I did not have the
> opportunity to check for responses before leaving for
> work. Work is being dumb about access to yahoo groups,
> yahoo e-mail and other Internet resources.
>
> In searching for information at web sights that I can
> access, I found this:
>
> http://www.easysoft.com/products/2201/man/connection.html#808432
>
> "The server may be located either on a remote
> computer, or on the same computer as the client. The
> communication protocol used may be specified by the
> contents of the database string. To establish a
> connection using TCP/IP prefix the database with
> servername (where servername resolves via normal IP
> name lookup to a machine on the network). It may be
> possible to use a dotted quad IP address instead of a
> name, but this is dependent on the IP protocol stack
> used.
>
> For example, to connect via TCP/IP to a server on a
> Windows machine:
>
> DATABASE=servername:c:program
> files\borland\interbase\examples\
> database\employee.gdb"
>
> I thought that I had seen something like this
> somewhere in the examples that come with IBObjects. I
> decided to try this syntax in the Communication
> Diagnostics utility.
>
> Communication Diagnostics
> DB Connection Tab
>
> Server Information: Local Server: selected
>
> Database Information:
> Database : 0008c73a385c:c:\ib_db\w2\W2-TAX-1999.gdb
> User Name: W2READER1
> Password: **********
>
> Results:
> 0008c73a385c:c:\ib_db\w2\W2-TAX-1999.gdb
> Version : WI-V6.0.1.0
>
> Attaching ... Passed!
> Detaching ... Passed!
>
> InterBase Communication Test Passed!
>
> I now have connectivity to the database.
>
> My only remaining question is can I do following in
> Delphi Code.
>
> MachineName : String;
> DBPath : String;
> DBName : String;
>
> Read MachineName, DBPath and DBName from the Windows
> Registry. Then,
>
> With IB_Connection1 do
> begin
> DatabaseName := DBName;
> Path := DBPath;
> Server := MachineName;
> User := UserName;
> Password := strPassword;
> end;
> IB_Connection1.Open;
>
> Thanks in advance,
> rgds,
> David Husarik
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/