My database has several thousand records with date values formatted as dd/mm/yy. Unfortunately SQL Server 7 refuses to recognize these as dates, as it apparently insists on the format mm/dd/yy for both datetime and smalldatetime data types.
I've fixed the problem temporarily by setting the date fields to varchar, but this causes problems when attempting to order the data by these fields - they are sorted as text rather than chronologically.
I'd like to convince SQL Server to accept dd/mm/yy as a valid way to store dates. I'd prefer not to convert to mm/dd/yy if at all possible. How could I accomplish this? I've tried using SET DATAFORMAT as advised by Books Online but I've been unable to get any results with that so far.
Thanks in advance!
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)
I've fixed the problem temporarily by setting the date fields to varchar, but this causes problems when attempting to order the data by these fields - they are sorted as text rather than chronologically.
I'd like to convince SQL Server to accept dd/mm/yy as a valid way to store dates. I'd prefer not to convert to mm/dd/yy if at all possible. How could I accomplish this? I've tried using SET DATAFORMAT as advised by Books Online but I've been unable to get any results with that so far.
Thanks in advance!
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)