I try to connect to the database using MS SQL Server as subd. I downloaded and installed the driver, added it to the project. Set the url:
jdbc: sqlserver: // localhost \ SQLEXPRESS; databaseName = ApartmentsSystem; integratedSecurity = true;
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); connection = DriverManager.getConnection(URL); When trying to connect writes:
Login failed. The login belongs to an untrusted domain and cannot be used in Windows authentication. ClientConnectionId: f9544554-eba8-4405-81e2-3194aa72295f
Can anyone tell me what the problem is? Maybe something else you need to configure in the driver for the subd?