SQL Server Connection Error (Win32Exception: Unknown error (0x89c5010a))

Haleniuk Maksum 10 Reputation points
2024-10-04T07:48:13.05+00:00

I am encountering an issue while attempting to establish a connection to SQL Server. The following error message is displayed:

Win32Exception: Unknown error (0x89c5010a)
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Error occurred during LocalDB instance startup: SQL Server process failed to start.)

I have verified the instance name and checked the configuration for remote connections, but I am still unable to resolve the issue.

Could you please provide guidance on how to troubleshoot this error? Any assistance you can offer would be greatly appreciated.

Thank you for your help!

Ответ

 

SQL Server Other
0 comments No comments
{count} vote

4 answers

Sort by: Most helpful
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2024-10-09T20:49:47.4366667+00:00

    There have been 256 misaligned log IOs which required falling back to synchronous IO. The current IO is on file C:\Users\galen\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\mssqllocaldb\master.mdf.

    There we have it. You are running into a known issue where Windows 11 reports a disc-sector size that SQL Server cannot cope with. Microsoft has published an article with workarounds for the problem.

    1 person found this answer helpful.
    0 comments No comments

  2. Olaf Helper 47,436 Reputation points
    2024-10-04T08:21:28.6866667+00:00

    Error occurred during LocalDB instance startup: SQL Server process failed to start.

    Lookup Windows EventLog and SQL Server ErrorLog file for more details about the failure.


  3. ZoeHui-MSFT 41,491 Reputation points
    2024-10-07T06:52:38.5933333+00:00

    Hi @Haleniuk Maksum,

    You can recreate the MSSQLLocalDB instance and registry entries by running these commands from a command prompt:

    sqllocaldb delete MSSQLLocalDB

    sqllocaldb create MSSQLLocalDB -s

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.


  4. Julie Campbell 0 Reputation points
    2024-10-19T11:49:31.21+00:00

    Haleniuk,

    I was having the exact same problem you were. The error log was very long, very full of success messages, with no useful troubleshooting. After much internet search activity, I gave up on SQLLocalDB and went back to trying a SQLExpress installation. The help link Microsoft provides has nothing at all to do with the problem, it is to a Azure Arc page which is seems related but is not. There are two actions I took to get this working:

    1. There is a known issue with Windows 11 and large hard drive sector sizes. The section Cause on this page fixes this.
      https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/database-file-operations/troubleshoot-os-4kb-disk-sector-size
    2. There is a problem with the account validation. Using a fresh installation, try using NT AUTHORITY\NETWORK SERVICE.

    Both issues are discussed here: https://stackoverflow.com/questions/19538089/wait-on-the-database-engine-recovery-handle-failed-check-the-sql-server-error-l

    0 comments No comments

Your answer

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