Subject | Re: [IBO] Login Params |
---|---|
Author | Helen Borrie |
Post date | 2001-02-27T21:20:21Z |
At 12:35 PM 27-02-01 -0800, you wrote:
object IB_Connection1: TIB_Connection
LoginPrompt = True
Params.Strings = (
'SERVER=BIGBOY'
'PATH=E:\IBO\TESTDB\IBDEMOS.GDB'
'PROTOCOL=TCP/IP'
'USER NAME=SYSDBA'
'PASSWORD=masterkey')
Cheers,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>This is my login procedure :To see the params you need, inspect the form in text mode and look at the params that get assigned at creation. Here's a sample from a Paradox to IB conversion program I'm working on:
>
>procedure Tdm.MyLogin(const USERNAME, PASSWORD, SQLROLE: WideString);
>var
> myList : TStringlist;
>begin
>try
>mylist := TStringList.Create;
>myList.Add('user_name=' + USERNAME);
>mylist.Add('password=' + PASSWORD);
>mylist.Add('sql_role_name=' + SQLROLE);
>try
> begin
> If db.Connected then db.Disconnect;
> db.Params.Clear; <--- this clears out ALL params, including the database connection ones!
object IB_Connection1: TIB_Connection
LoginPrompt = True
Params.Strings = (
'SERVER=BIGBOY'
'PATH=E:\IBO\TESTDB\IBDEMOS.GDB'
'PROTOCOL=TCP/IP'
'USER NAME=SYSDBA'
'PASSWORD=masterkey')
Cheers,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________