With Linq To SQL, I debug by registering the context, for example. Context.Log = Console.Out Then scanned SQL to check for obvious errors, there were two:
-- @p46: Input Char (Size = -1; Prec = 0; Scale = 0) [some long text value1] -- @p8: Input Char (Size = -1; Prec = 0; Scale = 0) [some long text value2]
the last one I found while scanning the table schema for values, the field was nvarchar (20), but the value was 22 characters
-- @p41: Input NVarChar (Size = 4000; Prec = 0; Scale = 0) [1234567890123456789012]
sdjfhueryeiur May 22 '13 at 18:09 2013-05-22 18:09
source share