I've run this application a million times...
Today I'm testing my application on a new PC and get an exception error everytime the code runs the SAConnection.Close() command.
This is what I'm doing...
SAConnection dbConn = new SAConnection(m_cnBuilder.ConnectionString);
dbConn.Open();
if (dbConn.State == ConnectionState.Open)
{
MessageBox.Show(this, "Connection successful", "Note", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
dbConn.Close();
Not rocket science. The error comes on the last line. Can anyone help me with this?
The error I get is:
SQL Anywhere .NET data provider: Run time SQL error -- ??? (-300)
Error code -300 suggests you executed some SQL and that there is an error in the SQL.
-300 Run time SQL error -- %1 An internal database error occurred. If it can be reproduced, it should be reported to iAnywhere. You may be able to work around this problem by modifying the associated query statement.