August 23, 2007 at 8:58 am
August 23, 2007 at 9:59 am
Your servers probably have different national language setting. Probably one is US English and the other is British English. You can look at the value of @@language.
To prevent these types of errors, always send character date strings to SQL Server in format YYYYMMDD. This format is the only unambiguous format for SQL Server.
Example for date only: 20070823
Example for date and time: 20070823 23:44:55.997
August 23, 2007 at 10:56 am
Thanks a lot. Will try and update.
August 23, 2007 at 10:56 pm
Thanks for your suggestion Michael,
For the current issue, I have checked both the servers, @@language yields 'us-english' in both.
Any thoughts please ?
August 23, 2007 at 11:58 pm
Yes... Stop passing the date as a VARCHAR and pass it as a date/time data type or a date serial number.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply