0

I am getting the following exception while executing queries through enterprise library v5.

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

Code:

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

This code block was running fine till yesterday. Suddenly this error is showing up in the logs.

nilobarp
  • 3,806
  • 2
  • 29
  • 37

0 Answers0