title: How to connect to SQL server via TCP/IP which is server site using C#?
body: <p>Everyone. 
  I've got some questions here..
  I'm using C# and trying to connect the other computer which is server site.
  The server site has been built a large database and it can be accessed by SQL server manager 2012.
  All I'm trying is to read the data in that database then convert to the other file.
  The other project test in my computer works(self-connection), but 
  Here's my sqlconnection string:</p>
  
  <pre><code>string sqlstring = @"Data Source=XXX.XXX.XXX.XXX\SQLEXPRESS,1433;Network Library=DBMSSOCN;Initial Catalog=Database; Integrated Security=False; Connect Timeout=30;User ID=sa;Password=XXXXXXX";
  </code></pre>
  
  <p>Do I need to add "AttachDbFilename" into there?</p>
  
  <p>or even database path?</p>
  
  <pre><code>AttachDbFilename=""C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\Databasename.mdf"
  </code></pre>
  
  <p>Because the results are "sa log in failed" or "it couldn't find the database file"..
  Is there any good advice? thank you guys!</p>