Hi All;
I have worked with a couple of SQL Server 2000 databases and have run into problems when copying the database to a server on another continent or country. It seems that the local settings have an effect on how SQL Server interprets incoming dates. For e.g. Country A's server may see dates in the format MM/DD/YYYY while country B may see it as DD/MM/YYYY by default. This causes problems as a date and month with values lower than 12 most often results in mixed up dates.
I have used the 'set dateformat' function in a couple of stored procedure to combat this situation, but I was wondering if there was a way I could change the config of the database so that it always used a format of my choice (I am leaning towards (yyyy/mm/dd). If there isn't such an available configuration I would appreciate any tips on how I should format my date so that it won't run into the localization issues I have described above.
Thank you for any and all help!
Sean.![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
I have worked with a couple of SQL Server 2000 databases and have run into problems when copying the database to a server on another continent or country. It seems that the local settings have an effect on how SQL Server interprets incoming dates. For e.g. Country A's server may see dates in the format MM/DD/YYYY while country B may see it as DD/MM/YYYY by default. This causes problems as a date and month with values lower than 12 most often results in mixed up dates.
I have used the 'set dateformat' function in a couple of stored procedure to combat this situation, but I was wondering if there was a way I could change the config of the database so that it always used a format of my choice (I am leaning towards (yyyy/mm/dd). If there isn't such an available configuration I would appreciate any tips on how I should format my date so that it won't run into the localization issues I have described above.
Thank you for any and all help!
Sean.
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)