I want to connect to my mssql server using the windows login.
For now i have a code that read all data to the connections component from a ini file like this:
SQLDBLibraryLoader1.Enabled := True;
MSSQLConnection1.HostName := INI.ReadString('DB', 'Host', '');
MSSQLConnection1.DatabaseName := INI.ReadString('DB', 'Databasename', '');
MSSQLConnection1.UserName := INI.ReadString('DB', 'Database user name', '') ; //Need win user
MSSQLConnection1.Password := INI.ReadString('DB', 'Database password', '') ; //Need win password
This works fine BUT i want to use the windows login username and password.
Do any have a solutions for this?