我在通过企业库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
此代码块运行正常,直到昨天。突然,这个错误出现在日志中。