title: ADO _ConnectionPtr parameters
body: <p>I'm trying to connect to my SQL server from a c++ console app. and 
  this line of code drives me insane:</p>
  
  <pre><code>pConnection-&gt;Open("Server=PETERPAN\SQLEXPRESS;Database=WAWI;User ID=Test;   Password=Test;Trusted_Connection=False;","Test","Test",-1);
  </code></pre>
  
  <p>According to VS I'm supposed to provide the follwing information : (connectionstring,userID,pwd,longoption);
  The connection string I can find at eg <a href="http://www.connectionstrings.com/sql-server-2008" rel="nofollow">http://www.connectionstrings.com/sql-server-2008</a> and it should be possible to find the right one...but:</p>
  
  <p>If I for example use the string above and provide both username and pwd in the string, do I still have to provide it as the second and third parameter or can i leave them empty?
  And where can I find information about the last parameter "longoption"? What is it?</p>
  
  <p>Thank you for your help,</p>
  
  <p>Lumpi</p>