title: The right connection string for Remote SQL server for C#
body: <p>I just want to know the right sql connection string for a remote sql server express edition.</p>
  
  <p>This is what I got but I got some problems</p>
  
  <pre><code> SqlConnection cs = new SqlConnection(@"Data Source=(IP Address)\PC-NAME\SQLEXPRESS,1433;Network Library=DBMSSOCN;Initial Catalog=dbase;User ID=sa;Password=password");
  </code></pre>
  
  <p>I got this error in my C# debugger:</p>
  
  <pre><code>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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
  </code></pre>
  
  <p>Thanks in advance!</p>