0

通过企业库 v5 执行查询时出现以下异常。

SqlCommand.DeriveParameters failed because the SqlCommand.CommandText property value is an invalid multipart name "SELECT QUERY", the current limit of "4" is insufficient.

代码:

Try
   Dim db As Database = DatabaseFactory.CreateDatabase("DatabaseName")
   reader = db.ExecuteReader(CommandType.Text, query)
Catch ex As Exception
   Throw ex
End Try

该代码块运行良好,直到昨天。突然,这个错误出现在日志中。

4

0 回答 0