I have a unexpected problem.
I create a database on Sql Server 2012. I want to connect this database using Entity Framework on Visual Studio 2012. But Entity framework wizard can't find Servers.
The steps that I followed;
I clicked to "add New İtem ->Add Ado.Net Entity Data Model.
On this page, I have to choose Server Name. Unfortunately, there is no Server Name on server name combobox. I refreshed the list of servers. Still, the list is empty. But, I know I have a server. I worked on this. But the Entity Framework wizard can't find it.
Do you have any idea to overcome this problem ?
Thanks!
I dont know how relevant it is now but just thought to put this details so that it could be helpful for someone who come across the same problem.
As user3508580 rightly pointed out the VS Entity Data Model Wizard may not list the local db in that case we need to add the Server name manually.
In Visual Studio 2012 the Server Name is:
(localdb)\v11.0
In Visual Studio 2015/2017 the Server Name is:
(localdb)\MSSQLLocalDB
To know the details of localDb running in your system you can use SqlLocalDB.exe info
command in Windows command prompt. It will list the DB's running in the machine.
This issue occurs when "SQL Server Browser" Service is not running.
To resolve this follow the following steps:
Now head on to Visual Studio and click on refresh next to server name. voila ! your server name is there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With