title: SQL Anywhere connection error: The driver doesn't support the version of ODBC behavior that the application requested
body: <p>I'm trying to connect to a SQL Anywhere 5 database (I know it's olllld!) with a .NET 3.5 app in WinXP and it works fine from a stand alone console app. But when I run the exact code in a plugin ,running off a separate AppDomain, (the only difference I can tell between the two) with the following code, I get the errors further below.</p>
  
  <p>BTW Both are executed as the SAME user.</p>
  
  <pre><code>           using (OdbcConnection connection =
                  new OdbcConnection(strConnect))
              {
                  OdbcCommand command = new OdbcCommand(query, connection);
                  command.CommandType = CommandType.Text;
                  DataTable posRecordsTable = new DataTable();
                  connection.Open();
  </code></pre>
  
  <p>OdbcException Exception returns the following errors:</p>
  
  <p>Index #0
  Message: [Sybase][ODBC Driver]Unable to connect to database server: database engine not running</p>
  
  <p>Index #1
  Message: [Sybase][ODBC Driver]Invalid connection string attribute</p>
  
  <p>Index #2
  Message: [Sybase][ODBC Driver]Invalid connection string attribute</p>
  
  <p>Index #3
  Message: [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).</p>