Hi @Hemanth B ,
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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
Hi @Hemanth B ,
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
Hi @Hemanth B ,
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.
What is more, you can refer to this cocument about connect to LocalDB: https://learn.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.
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.