Prepare method

InvalidOperationException
The command is in an invalid state. Either the ULCommand.Connection value is missing or closed, the ULCommand.Transaction
value does not match the current transaction state of the connection, or the ULCommand.CommandText value is invalid.