Exception when using Length(8000)
Hi,
I have recently updated to the latest NH trunk and recompiled FNH to work with it.
I noticed a new error that I never got previously.
I have a column in a DB set to varchar(8000). If I don't use a Length call in my mapping everything is fine.
But if I use:
Map(x => x.Body)
.Length(8000);
Then I get this exception:
The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 4 ("@p1"): Data type 0xE7 has an invalid data length or metadata length.
2 Posted by Nicolas on 09 Jun, 2010 07:37 PM
Got another one. This time it was on a field set as varchar(5000) and I was using Length(5000). When removing this call, it works well. Note that in the same entity I have another field set to varchar(100) and the call to Length(100) works well.
Btw, the error happens when I try to insert a new row in the DB.