Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2003.06.02;
Скачать: [xml.tar.bz2];

Вниз

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;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.44 MB
Время: 0.007 c
1-3012
Вадим
2003-05-21 16:27
2003.06.02
Иконка пункта меню в run-time


1-3004
Top Gun
2003-05-11 14:32
2003.06.02
Передача указателя на функцию


1-2952
Tornado
2003-05-21 09:08
2003.06.02
Преобразование Pchar в String


1-2869
!--Andrews--!
2003-05-19 06:51
2003.06.02
Проверка орфографии с помощью MS WORD


7-3179
GRR
2003-03-27 08:22
2003.06.02
Убрать звук по закрытии





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский