question

HemanthB-9452 avatar image
0 Votes"
HemanthB-9452 asked SeeyaXi-msft commented

SQL Server Exception

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connection.(Provider: SQL Network Interfaces, Error:52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)

I created an app which uses the SQL Server Database tables. When I run it on an external PC without any SQL Server Express tools, I am getting the above error. How can I make every PC install SQL Server Express tools?

sql-server-general
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @HemanthB-9452,

We have not received a response from you. Did the reply could help you? If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. By doing so, it will benefit all community members who are having this similar issue. Your contribution is highly appreciated.

Best regards,
Seeya

0 Votes 0 ·

Hi @SeeyaXi-msft, I need some time to make everything work out.

0 Votes 0 ·

Hi @HemanthB-9452,

Hope everything goes well. I'm concerned about how you're progressing. Have you encountered any new problems or problems solved. If there are new questions you can post them. If you have solved your issue, in order to benefit all community members who are having this similar issue, please choose an answer to accept or vote for the answer you think is useful to you. Your contribution is highly appreciated.

0 Votes 0 ·
OlafHelper-2800 avatar image
0 Votes"
OlafHelper-2800 answered

When I run it on an external PC without any SQL Server Express

If your app utilize a SQL Server database, then it is mandatory to have a running SQL Server instance.

How can I make every PC install SQL Server Express tools?

Not "tools" = SSMS, the database engine is required. If no installation exists, then download the free Express Edition and install it on the client machine.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SeeyaXi-msft avatar image
0 Votes"
SeeyaXi-msft answered

Hi @HemanthB-9452,

Welcome to Microsoft Q&A!

Provider: SQL Network Interfaces, Error:52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.

You need check if LocalDB feature is installed.
199111-image.png
What is more, you can refer to this cocument about connect to LocalDB: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb?view=sql-server-ver15#start-localdb-and-connect-to-localdb

Best regards,
Seeya

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


image.png (53.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SeeyaXi-msft avatar image
0 Votes"
SeeyaXi-msft answered

Hi @HemanthB-9452,

Hope everything goes well.
Here is a related article which contains steps you can refer to: https://www.mssqltips.com/sqlservertip/5612/getting-started-with-sql-server-2017-express-localdb/

Best regards,
Seeya

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.