Unix Technical Forum

Re: English dates

This is a discussion on Re: English dates within the SQL Server forums, part of the Microsoft SQL Server category; --> On Wed, 2 Jul 2003 22:28:58 +0100 in comp.databases.ms-sqlserver, "Peter L.S. Trevor" <ptrevor.trisen@zetnet.co.uk> wrote: >Hi > >We have MS ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:01 PM
Trevor Best
 
Posts: n/a
Default Re: English dates

On Wed, 2 Jul 2003 22:28:58 +0100 in comp.databases.ms-sqlserver,
"Peter L.S. Trevor" <ptrevor.trisen@zetnet.co.uk> wrote:

>Hi
>
>We have MS SQL 2000 installed at work (an English local
>government office). We've changed the regional settings so that
>dates are displayed as dd/mm/yy ... but when entering dates in
>SQL queries we still have to use mm/dd/yy. Is there a setting
>which changes SQL command parsing (as opposed to just results
>display)?


This sort of thing should be done in your front end, literal dates in
SQL are always American format, that way the same bit of SQL can work
regardless of country it's executed in.

--
If you try to fail, and succeed, which have you done?

(replace sithlord with trevor for email)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com