Recently, there has been a problem using DateTime in a T-SQL INSERT INTO statement. Work fine on one machine, but you cannot work on another, and I assume this is due to locale settings.
So, if I have a DateTime variable, then what is the safe way to use it in the SqlStatement line, which will always work regardless of the local system settings?
thanks
source share