Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 24th, 2006, 06:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISO Date Problem

Hi All,

I'm hoping someone can help me with an odd problem that has just appeared on my dev client system - Query Analyser, EM and ADO have all stopped recognising 'yyyy-mm-dd' as a valid date format! 'yyyymmdd' works fine, as does 'yyy-MMM-dd'.

Does anyone know if there is some kind of swicth/option that might have been flipped to cause this? It's definately client related, the same queries run fine on my colleague's machine

Cheers,

Chris





There are two secrets to success in this world:
1. Never tell everything you know
__________________
There are two secrets to success in this world:
1. Never tell everything you know
 
Old May 30th, 2006, 12:25 PM
Authorized User
 
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One possible cause is the setting of the DATEFORMAT to ydm. Try putting the date format back to YMD and your problem should go away:

SET DATEFORMAY YMD

For related questions about date formats:
http://www.sql-server-helper.com/tips/date-formats.aspx

SQL Server Helper
http://www.sql-server-helper.com
 
Old May 30th, 2006, 12:52 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Or even Control Panel -> Regional Settings...






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL and ISO date problems CallumBeveridge SQL Server 2000 6 August 17th, 2007 02:14 PM
DATE PROBLEM ricespn Classic ASP Basics 3 October 20th, 2006 07:15 AM
Date Problem kuku SQL Server 2000 4 September 7th, 2005 08:38 PM
content="text/html; charset=iso-8859-1" crmpicco HTML Code Clinic 6 June 17th, 2005 05:09 AM
Date Problem tdaustin Classic ASP Basics 10 August 13th, 2004 01:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.