Login failed for user 'sa'. in connection string
<p>i m getting error of "Login failed for user 'sa' " while i try to connect server by setting value through string variable </p>

<pre><code>private SqlConnection getDbConnection = new SqlConnection("Data Source="+dbname+";Initial Catalog="+catname+";User Id=sa;Password=sa;Integrated Security=false");
</code></pre>

<p>and then i use normal connection string with no string variable its work well like below. </p>

<pre><code>private SqlConnection getDbConnection = new SqlConnection("Data Source=Ali-pc\\;Initial Catalog=master;User Id=sa;Password=sa;Integrated Security=false");
</code></pre>
