G
Guest
I'm calling a stored proc from C# and the call includes a datetime. The exe
can run on machine A or B but the database is on machine C. When I run on
machine A I need SET DATEFORMAT dmy in the proc or I get an 'out-of-range
datetime value' message. I need to comment this statement out when the call
is made from machine B.
It seems as though I have a UK locale on machine A and a US locale on
machine B and the swapping of days and months causes the error. Is this
locale setting per machine possible? If so then how to change it?
TIA, jeb.
can run on machine A or B but the database is on machine C. When I run on
machine A I need SET DATEFORMAT dmy in the proc or I get an 'out-of-range
datetime value' message. I need to comment this statement out when the call
is made from machine B.
It seems as though I have a UK locale on machine A and a US locale on
machine B and the swapping of days and months causes the error. Is this
locale setting per machine possible? If so then how to change it?
TIA, jeb.