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. (p

Aamin Vahora 0 Reputation points
2024-04-23T06:43:10.8833333+00:00

i have completely installed visual studio community 2022 with data processing tools but when i want to add services based database and sql based database in my Asp.net and Window form project it does not allowed to create mdf file it gives the following message.

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. )

how to solve this issue. And also i deleted visual studio and reinstall so many times but the problem was not solved and i checked the sql server is also running.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,754 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CosmogHong-MSFT 23,321 Reputation points Microsoft Vendor
    2024-04-24T01:53:19.48+00:00

    Hi @Aamin Vahora

    Regarding this error, see this doc: A network-related or instance-specific error occurred while establishing a connection to SQL Server.

    This article provides some steps to help you troubleshoot these errors, which are provided in order of the issues from simple to complex.

    It is recommended that you gather the information before proceeding with the actual steps to troubleshoot the error.

    Best regards,

    Cosmog Hong


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

    0 comments No comments