{"id":18,"date":"2014-11-10T15:23:00","date_gmt":"2014-11-10T15:23:00","guid":{"rendered":""},"modified":"2016-01-30T23:23:00","modified_gmt":"2016-01-30T23:23:00","slug":"fixing-empty-sql-server-list-in-entity-data-model-wizard","status":"publish","type":"post","link":"https:\/\/tpodolak.com\/blog\/2014\/11\/10\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/","title":{"rendered":"Fixing empty SQL server list in &#8220;Entity Data Model Wizard&#8221;"},"content":{"rendered":"<p>I consider myself as a quite experienced user of Nhibernate, that is why I decided to check what is going on on the other side of barricade and started playing with Entity Framework. I followed the steps of some tutorial and I stuck at the very beginning of it. I was about to generate model classes using &#8220;Entity Data Model Wizard&#8221; but it turned out that the wizard could not find my SQL server (despite the fact that server itself was up and running).<br \/>\n<a href=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/EmptyServerList.png\" rel=\"attachment wp-att-286\"><img decoding=\"async\" src=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/EmptyServerList.png\" alt=\"empty SQL server list\" width=\"450\" class=\"aligncenter size-medium wp-image-286\" srcset=\"https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/EmptyServerList.png 466w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/EmptyServerList-104x150.png 104w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/EmptyServerList-208x300.png 208w\" sizes=\"(max-width: 466px) 100vw, 466px\" \/><\/a><br \/>\nI remember having similar issue a while back, but at that time I wasn&#8217;t able to solve it (I ended up creating connections string manually). This time I wanted to give this issue a closer look. After a bit of digging I found the problem &#8211; the SQL server wasn&#8217;t broadcasting information about itself. In order to fix it and make the server visible to other computers and applications it is necessary to start <i>SQL Server Browser<\/i> service. To do that go to <i>Start -> Run<\/i> and type <i>Services.msc<\/i><br \/>\n<a href=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/runservices.png\" rel=\"attachment wp-att-288\"><img decoding=\"async\" src=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/runservices.png\" alt=\"runservices\" width=\"450\" class=\"aligncenter size-medium wp-image-288\" srcset=\"https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/runservices.png 443w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/runservices-150x76.png 150w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/runservices-300x151.png 300w\" sizes=\"(max-width: 443px) 100vw, 443px\" \/><\/a><br \/>\nThen in newly opened window find <i>SQL Server Browser<\/i> service<br \/>\n<a href=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/SqlServerBrowser.png\" rel=\"attachment wp-att-289\"><img decoding=\"async\" src=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/SqlServerBrowser.png\" alt=\"SqlServerBrowser\" width=\"800\" class=\"aligncenter size-full wp-image-289\" srcset=\"https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/SqlServerBrowser.png 973w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/SqlServerBrowser-150x42.png 150w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/SqlServerBrowser-300x84.png 300w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/a><br \/>\nDouble click it and set up startup type to <i>Automatic<\/i>. You can also click <i>Start<\/i> button to make sure that service starts immediately<br \/>\n<a href=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/automaticserverbrowser.png\" rel=\"attachment wp-att-285\"><img decoding=\"async\" src=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/automaticserverbrowser.png\" alt=\"automaticserverbrowser\" width=\"450\" class=\"aligncenter size-full wp-image-285\" srcset=\"https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/automaticserverbrowser.png 450w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/automaticserverbrowser-137x150.png 137w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/automaticserverbrowser-275x300.png 275w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/a><br \/>\nFrom now on SQL servers should be visible in &#8220;Entity Data Model Wizard&#8221;<br \/>\n<a href=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/filledserverlist.png\" rel=\"attachment wp-att-287\"><img decoding=\"async\" src=\"http:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/filledserverlist.png\" alt=\"filledserverlist\" width=\"450\" class=\"aligncenter size-full wp-image-287\" srcset=\"https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/filledserverlist.png 502w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/filledserverlist-150x120.png 150w, https:\/\/tpodolak.com\/blog\/wp-content\/uploads\/2014\/11\/fixing-empty-sql-server-list-in-entity-data-model-wizard\/filledserverlist-300x240.png 300w\" sizes=\"(max-width: 502px) 100vw, 502px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I consider myself as a quite experienced user of Nhibernate, that is why I decided to check what is going on on the other side of barricade and started playing with Entity Framework. I followed the steps of some tutorial and I stuck at the very beginning of it. I was about to generate model [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,39,36,37,38],"tags":[182,183,184,185,186],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-ef","category-entity-framework","category-mssql","category-sql","category-visual-studio","tag-ef","tag-entity-framework","tag-mssql","tag-sql","tag-visual-studio"],"_links":{"self":[{"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":4,"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":530,"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions\/530"}],"wp:attachment":[{"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tpodolak.com\/blog\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}