I have an issue with my first attempt at Linq to SQL: setting DateTime parameters is causing the SQL to fail with :
'Msg 241, Level 16, State 1, Line 3
Conversion failed when converting date and/or time from character string.'
Because the parameter passed out by Linq to SQL is in the format '2008-10-30 12:09:48.0800000' and my SQL Server 2008 choked on that many decimal places for the time. Changing the time (manually) to '2008-10-30 12:09:48.080' works.
So: how is the formatting controlled (on SQL Server 2008 and in Linq to SQL in C#)?
Herbie