Guys I’ve created a win forms app in visual studio 2022 and for it to work I’ve copied the mdf file of my database (receipts) and pasted in the directory of the project but when I’m trying to connect to ssms using (LocalDB)MSSQLLocalDB I’m getting this error =>
Cannot connect to (LocalDB)MSSQLLocalDB.
Additional information:
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. Cannot create an automatic instance. See the Windows Application event log for error details.
) (Microsoft SQL Server)
but when I connect using (local) it gets connected.
Please Suggest the solution for this.
I’ve tried to uninstall ssms and updated the visual studio 2022 but it has not helped.
The Unique 1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.