title: Xamarin forms connect to local MSSQL database
body: <p>I would like to read data from MSSQL database in my Xamarin forms app. Eventhough I have followed many tutorials on youtube , stackoverflow etc. I am not able to read the data from database because an error appears every time I try to run the app. Error example:</p>
  <blockquote>
  <p>&quot;System.Exception: 'Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started.'&quot;</p>
  </blockquote>
  <p>All I am using is <code>System.Data.SqlClient</code>, then I define in MainPage.xaml.cs connection string (to local DB), create new <code>SqlConnection</code> and then open the <code>SqlConnection</code>:</p>
  <p>I have already tried to restart server, modify settings of TCP/IP and even turn off the firewall, as I found in internet tutorials, but nothing helped so far.. In my opinion the connection string should be correct, since I am able to connect to the database in Windows forms using the same procedure.</p>
  <pre><code>string connectionString = @&quot;Data Source=LAPTOP-....\SQLEXPRESS;Initial Catalog=EFDB;User ID=MyUserID; Password =*******&quot;;
  
  SqlConnection connection = new SqlConnection(connectionString);
  
  connection.Open();
  </code></pre>