Additional
dbCAP
AnyDAC
ThinDAC
NCOCI8
Topic: MSSQL login
MSSQL login
Posted: 2008/01/31 07:18
 
Hi Diman!

I wish to use a custom login form to connect mssql servers in my firm. How can I detect server name and database name, and how can i set authentication method?

thx in andvance
Re:MSSQL login
Posted: 2008/01/31 07:35
 
Hello

Why dont just use TADGUIxFormsLoginDialog ? Drop it on the form and set TADConnection.LoginDialog to the dropped component.

Regards,
Dmitry
Re:MSSQL login
Posted: 2008/01/31 11:34
 
Hi Diman!

Because my users are cubic headed. They can't remember anything and they wish to uses accustomed forms.

Regards
Re:MSSQL login
Posted: 2008/02/01 02:03
 
1) See daADPhysMSSQL unit, EnumerateServers function for details of how to get server list. Similar code may be used to get database list.
2) Set OSAuthen=Yes to use win authentification, and set to No or just avoid parameter to use DBMS authentification.
Re:MSSQL login
Posted: 2008/02/01 10:29
 
Thx Diman!

I will try it.

Regards Zapata