Hi all,
I am unable to insert into a table, and I'm getting the following exception:
"Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services."
The query is:
Method Enter: CreateSingleTargetInsertDQ
Generated Sql query:
Query: INSERT INTO [MyDb].[sms].[MOMessages] ([MessageID], [SMSClientID], [ID], [Message], [IP], [ReceiveTime], [EntryTime], [MessageTypeID]) VALUES (@MessageID, @SMSClientID, @ID, @Message, @IP, @ReceiveTime, @EntryTime, @MessageTypeId);SELECT @MOMessageID=SCOPE_IDENTITY()
Parameter: @MOMessageID : Int32. Length: 0. Precision: 10. Scale: 0. Direction: Output. Value: <undefined value>.
Parameter: @MessageID : Guid. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: b2fb8ca8-387b-4c33-9848-4d02395b950e.
Parameter: @SMSClientID : Int32. Length: 0. Precision: 10. Scale: 0. Direction: Input. Value: 1044.
Parameter: @ID : AnsiString. Length: 50. Precision: 0. Scale: 0. Direction: Input. Value: "0001".
Parameter: @Message : AnsiString. Length: 2147483647. Precision: 0. Scale: 0. Direction: Input. Value: "Hello World!".
Parameter: @IP : AnsiString. Length: 15. Precision: 0. Scale: 0. Direction: Input. Value: "127.0.0.1".
Parameter: @ReceiveTime : DateTime. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: 9/29/2009 3:42:50 PM.
Parameter: @EntryTime : DateTime. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: 9/29/2009 3:42:54 PM.
Parameter: @MessageTypeId : Int32. Length: 0. Precision: 10. Scale: 0. Direction: Input. Value: 1.
Method Exit: CreateSingleTargetInsertDQ
Method Exit: CreateInsertDQ
Method Enter: DaoBase.ExecuteActionQuery
A first chance exception of type 'SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryExecutionException' occurred in SD.LLBLGen.Pro.ORMSupportClasses.NET20.DLL
Has anyone seen this error before?
This is occuring with SQL Server 2005 w/ Service Pack 3.
If I run the query in Enterprise Manager without parameters it works OK:
INSERT INTO [myDB].[sms].[MOMessages] ([MessageID], [SMSClientID], [ID], [Message], [IP], [ReceiveTime], [EntryTime], [MessageTypeID])
VALUES ('{51529E4D-29B0-4e73-AA00-EF39095A5B8C}', '1044', '12345', 'HELLO WORLD!', '127.0.0.1', '9/29/2009 3:48:42 PM', '9/29/2009 3:48:49 PM', '1');
SELECT SCOPE_IDENTITY()