SDM: Grloader not connecting to SQL Server database
book
Article ID: 116041
calendar_today
Updated On:
Products
SUPPORT AUTOMATION- SERVERCA Service Desk Manager - Unified Self ServiceCA Service Desk ManagerCA Service Management - Asset Portfolio ManagementCA Service Management - Service Desk Manager
Issue/Introduction
Users may be attempting to use grloader to connect to a backend SQL Server database, using a command such as this
01/01 08:00:00.000 INFO GRLoader 494 GRLoader Started - load from jdbc database(jdbc:sqlserver://SQLSERVER1:1433;databaseName=DATABASE1; ) - to TWA 08/28 08:03:20.368 INFO GRLoader 510 =============================================================================== 08/28 08:03:21.790 INFO grDataMgr 200 Multi-tenancy is not enabled 08/28 08:03:22.119 INFO GRLoader 304 grJDBCrdr1500 Unable to access database url(jdbc:sqlserver://SQLSERVER1:1433;databaseName=DATABASE1;) userid(TESTUSER) reason(Login failed for user 'TESTUSER'. ClientConnectionId:4c634cc0-09a1-45ae-bb68-1f7fc9b77405) 08/28 08:03:22.119 INFO GRLoader 304 08/28 08:03:22.119 INFO GRLoader 304 Results: 08/28 08:03:22.119 INFO GRLoader 304 Read Skipped Inserts Updates Errors Warnings 08/28 08:03:22.119 INFO GRLoader 304 TWA CI 0 0 0 0 0 0 08/28 08:03:22.119 INFO GRLoader 304 TWA Rel 0 0 0 0 0 0 08/28 08:03:22.119 INFO GRLoader 304 08/28 08:03:22.119 INFO GRLoader 857 =============================================================================== 08/28 08:03:22.119 INFO GRLoader 304 GRLoader completed, no data processed. 08/28 08:03:22.119 INFO GRLoader 859 =============================================================================== . . GRLoader 304 grJDBCrdr1500 Unable to access database url(jdbc:sqlserver://SQLSERVER1:1433;databaseName=DATABASE1;) userid(TESTUSER) reason(Login failed for user 'TESTUSER'. ClientConnectionId:4c634cc0-09a1-45ae-bb68-1f7fc9b77405)
Environment
Service Desk 14.1, 17.1, SQL Server 2012 and higher
Cause
Trying to connect to the SQL database using SQL Server authentication, but NT Authority was what should be used.
Resolution
The URL in the grloader config file (sqlServer.cfg in the above example) should include this line:
One then needs to add the SQL Server JDBC driver to the SDM Server and also include the sqljdbc_auth.dll in the bin folder of the Service Desk Manager install location.
This should correct any problems connecting to the given SQL Server via JDBC with a user over NT Authority.