r/SQLServer • • Sep 29 '25

Question JDBC Connection error to SQL Server

I am getting the following message every minute on a restored VM running SQL.

"Login failed for ''. Reason: An attempt to login using SQL authentication failed. Server is configured for Windows Authentication only. [Client Localhost]

Nothing has changed in regards to allowed authentication methods. I can log in either way using Windows credentials or an sa account from SQL Management studio.

There are also weird issues during a restart of all of the associated services and one service not starting or staying running.

5 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/Rocknbob69 Sep 30 '25

database:

driverClass: com.microsoft.sqlserver.jdbc.SQLServerDriver

url: jdbc:sqlserver://127.0.0.1:1433;databaseName=database

user: username

password: password

# any properties specific to your JDBC driver:

properties:

charSet: UTF-8

sendStringParametersAsUnicode: false

I am not sure if adding anything will break it or not