title: Connection String in C# windows application
body: <p>I am developing C# windows application first time. </p>
  
  <p>Que 1 - ) I have developed my windows application which uses SQL server 2008 using below connection string..</p>
  
  <pre><code>Data Source=myMachineName;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
  </code></pre>
  
  <p>But When I created setup of my application and installed it to another computer then it is throwing error of could not establish connection with SQL server.. </p>
  
  <p>I guess this error is because of my connection string as it is specific to my computer and installing it to another computer will not work.. </p>
  
  <p>Hence How can I make my connection string which will work with any computer..</p>
  
  <p>Que 2 - Do I need to attach schema file with my setup as How my database will be created into   the other computers??</p>
  
  <p>This might be silly qustion but as I am doing this first time , i dont know about this all. </p>
  
  <p><img src="https://i.stack.imgur.com/DP3AE.png" alt="enter image description here"></p>
  
  <p>Regards,
  Mahesh</p>