For the CHAR/VARCHAR columns we need to make sure to use IsUnicode(false) in the configuration files. I profiled the current query and I see that the parameter is passed as nvarchar(4000) for char(10) columns. The size problem is a EF problem, but nvarchar can be avoided by this enhancement.
Comments: I'll try, Simon. I am currently very busy at work, but hopefully I'll find some time to do it before your return.
Comments: I'll try, Simon. I am currently very busy at work, but hopefully I'll find some time to do it before your return.