Sybase SQL Anywhere 16 SAConnection.Close() 异常
Sybase SQL Anywhere 16 SAConnection.Close() exception
我已经 运行 这个应用程序一百万次...
今天我在一台新 PC 上测试我的应用程序,每次代码 运行s SAConnection.Close() 命令时都会出现异常错误。
这就是我正在做的...
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();
不是火箭科学。错误出现在最后一行。谁能帮我解决这个问题?
我得到的错误是:
SQL Anywhere .NET data provider: Run time SQL
error -- ??? (-300)
错误代码 -300 表明您执行了一些 SQL 并且 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.
我已经 运行 这个应用程序一百万次...
今天我在一台新 PC 上测试我的应用程序,每次代码 运行s SAConnection.Close() 命令时都会出现异常错误。
这就是我正在做的...
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();
不是火箭科学。错误出现在最后一行。谁能帮我解决这个问题?
我得到的错误是:
SQL Anywhere .NET data provider: Run time SQL error -- ??? (-300)
错误代码 -300 表明您执行了一些 SQL 并且 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.