title: Dynamically create a database connection for SQL Server
body: <p>Is there a way of inputting username, password &amp; data source name from user instead of hardcoding them?</p>
  
  <p>Right now I have hardcoded in app.config like this</p>
  
  <pre><code>&lt;connectionStrings&gt;
  &lt;add name="SQLConnectionString" connectionString="Data Source=db01\instance01;Initial Catalog=testdb; MultipleActiveResultSets=true;User ID=testuser;Password=readonly; Connection Timeout=60;" providerName="System.Data.SqlClient"/&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>When I run the console app, I want it to print how to enter the parameters and then accept parameters.
  How can I do this?</p>
  
  <p>Thanks
  Rashmi</p>