0

for a couple of days or weeks I am finding a solution to my problem on google but still, I don't get any solution so that's why am here to ask you to help me. Actually I am getting an error by connecting SQL server with java in Netbeans here is the error

Cannot establish a connection to JDBC:sqlserver://localhost:1433;databaseName=newdb 
using com.Microsoft.SQL server.JDBC.SQLServerDriver 
(Login failed for user ''. ClientConnectionId:7294b793-6d79-487a-be85-04cf286555a4)

I have done all settings in the SQL server which can cause to create this problem but there is no issue I really don't know why it's not connecting please guy help me with this issue I post below the screenshot of my SQL server configuration

  1. Screenshot 1
  2. Screenshot 2
  3. Screenshot 3
  4. Screenshot 4
  5. Screenshot 5
7
  • the login of your user failed. have you verified your username and password? Commented Jun 21, 2021 at 12:31
  • which user in SQL server there is an option for verification? am not using username and password in SQL server just using windows authentication Commented Jun 21, 2021 at 12:49
  • this one Login failed for user '' Commented Jun 21, 2021 at 12:54
  • yea this user login failed but i don't know why and what is the solution of this issue kindly guide me how can I resolve it and if there is any issue by authentication so can you please tell me how can i do this to solve this issue Commented Jun 21, 2021 at 13:04
  • the solution is to provide proper authentication Commented Jun 21, 2021 at 13:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.