System.Data.SqlClient.SqlException was thrown

Tevon2.0 1,106 Reputation points
2022-12-08T15:35:19.847+00:00

Greetings,

While trying to run sharepoint configuration wizard I received this error below. What does it mean and how can I fix it?

"An error has occurred while validating the configuration settings. An exception of type System.Data.SqlClient.SqlException was thrown. Additional information: Login Failed for user Lingualistek\tking'."

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Xuyan Ding - MSFT 7,601 Reputation points
    2022-12-09T06:16:45.84+00:00

    Hi @Tevon2.0 ,

    Generally speaking, the firewall does not authorize the SQL server may cause problems when running the sharepoint configuration wizard. Turn it off and make sure you run with a Farm Account(the login failure prompts that the account used when running the configuration wizard does not have the corresponding permissions).Then run the sharepoint configuration wizard again. After ensuring these two points, if other SqlException-like database configuration problems still occur,you can follow the solution in this article and go to SQL Server Configuration Manager to enable TCP/IP.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Wendy Li 1,711 Reputation points Moderator
    2022-12-22T08:14:36.54+00:00

    @Tevon2.0 Is it first time that you run SharePoint Configuration Wizard after installing SharePoint? If not, please check and make sure the user has the following permissions on the SQL Server and database as the article.

    273116-image.png

    Then, make sure the following SQL services are running normally:
    273148-image.png

    If they are stopped, please start them.

    After the above, please try to run SharePoint Configuration Wizard again and let's know the result.

    -----
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.