Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.06.02;
Скачать: CL | DM;

Вниз

Interbase   Найти похожие ветки 

 
pdobrev ©   (2003-05-13 19:59) [0]

See the procedure:
procedure TForm1.Button1Click(Sender: TObject);
begin
Label1.Caption:=IBDatabase1.Params.Values["user_name"];
Label2.Caption:=SQLConnection1.Params.Values["user_name"];
end;

I have to get the usernames of the connected users to my database.
At the present I am using the dbExpress component: SQLConnection

When I use the Interbase component: IBDatabase I can see the value of the "user_name" (Label1) -the name of the connected user

When I use the dbExpress component: SQLConnection is inpossible to get the value of the "user_name"(Label2) the name of the connected user

Can you help me to use the dbExpress component- SQLConnection to get the name of the connected users?


 
Johnmen ©   (2003-05-13 21:09) [1]

Params names of SQLConnection depends on connection type.
In this case (above) you need to know param name of <UserName>.
May be the "user_name" isn"t valid name...:)


 
kaif ©   (2003-05-14 02:18) [2]

If SQLConnection1.Params is of type TStrings,
You can try to see all items using

procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage(SQLConnection1.Params.Text);
end;

Then if You cannot find strings like

user_name=
password=

or something similar, may be TSQLConnection especially hides (clear) this information after connection to database for further security purposes (I don"t know).




 
Alexandr ©   (2003-05-14 07:02) [3]

о, форум превращается в международный...



Страницы: 1 вся ветка

Текущий архив: 2003.06.02;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.019 c
4-3222
maxi
2003-04-02 16:43
2003.06.02
Как заставить ListView показывать полосы прокрутки всегда ?


3-2738
АлексейТ
2003-05-13 00:07
2003.06.02
Работа с BDE


14-3145
Hermit
2003-05-14 21:58
2003.06.02
Нужны идеи


14-3064
lia
2003-05-16 08:39
2003.06.02
Пример реализации SMTP, POP клиента на паскале...


1-2874
Valeris
2003-05-20 16:57
2003.06.02
Reg.RootKey:=HKEY_LOCAL_MACHINE