Re: SQL 6.5 migrating to SQL 2000 -
04-07-2005
, 01:50 AM
MSSQL stores data internally as binary values - it's entirely up to the
client to decide how to display them. It's not really clear from the
above where you're seeing that date format (Query Analyzer? your own
application?), but you should be using a 'neutral' format which MSSQL
will interpret correctly. In particular, YYYYMMDD will always work
(assuming you don't need the time part), but the two formats you
mentioned may not, depending on the MSSQL installation language, client
regional settings etc.
The information here should help to clarify how MSSQL handles dates:
http://www.karaszi.com/sqlserver/info_datetime.asp
If this doesn't help, I suggest you post some more details of exactly
how you call your stored procedures, how you're passing the datetime to
them, and some sample code to illustrate your problem. It would also be
useful to know what "do not work" means - do you get an error, no error
but unexpected results, silent failure etc.
Simon |