﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Duncan Pryde  / Dating for DBAs / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 20:22:36 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>This was an excellent question. Got it wrong but sure learned something.</description><pubDate>Tue, 27 Dec 2011 11:02:21 GMT</pubDate><dc:creator>SqlMel</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>"MUST READ THE WHOLE QUESTION... MUST READ THE WHOLE QUESTION... MUST READ THE WHOLE QUESTION... MUST READ THE WHOLE QUESTION... MUST READ THE WHOLE QUESTION... "Of course I answered all of them.. dang</description><pubDate>Thu, 10 Nov 2011 11:25:15 GMT</pubDate><dc:creator>John Esraelo-498130</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Great question!</description><pubDate>Mon, 06 Jun 2011 08:06:09 GMT</pubDate><dc:creator>Rafael Krisller</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Date questions are fun</description><pubDate>Thu, 14 Apr 2011 18:17:55 GMT</pubDate><dc:creator>Jamie Longstreet-481950</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Nice question, thanks.</description><pubDate>Sun, 10 Apr 2011 23:37:00 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]shivani_aggarwal09 (4/8/2011)[/b][hr]all the formts are correct their is no error. firstly among the 4 we can not seclect any 2 bcoz of the all 4 are right. i was schoked when my answer goes wrong when i chose all then i chech all the formets in the sql 2005 their is no error. plz clear me how my answer is wrong.[/quote]All four will work with some language settings.  Reread the explanation and discussion thread for more information on this.</description><pubDate>Fri, 08 Apr 2011 05:40:20 GMT</pubDate><dc:creator>Rose Bud</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>all the formts are correct their is no error. firstly among the 4 we can not seclect any 2 bcoz of the all 4 are right. i was schoked when my answer goes wrong when i chose all then i chech all the formets in the sql 2005 their is no error. plz clear me how my answer is wrong.</description><pubDate>Fri, 08 Apr 2011 00:05:42 GMT</pubDate><dc:creator>shivani aggarwal</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]rmechaber (4/6/2011)[/b][hr][quote][b]Duncan Pryde (4/6/2011)[/b][hr]I'm glad people are liking the question - thanks for the positive comments everyone.I was motivated to come up with the question after following a discussion relating to a QotD from a few weeks ago. There was some (at times quite heated!) debate around language-independent date formats, so I thought it would be good material for a question, and hopefully some more discussion.Incidentally, there's a "second date" scheduled to be published next week, so anything you read in those links could be handy... :cool:[/quote]OK, Duncan, I got this wrong, and [u]I'm[/u] the one who posted the link last week to Tibor Karaszi's excellent write-up!:ermm:I don't use the {} ODBC escape format, so I missed that one.  Guess I learned something, so thanks.Rich[/quote]Hi Rich - I couldn't remember who it was who'd posted the link, but after dipping into it a few times and reading the BOL page, a couple of questions came to mind - so thanks for sowing the seed!</description><pubDate>Thu, 07 Apr 2011 01:24:26 GMT</pubDate><dc:creator>Duncan Pryde</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]Duncan Pryde (4/6/2011)[/b][hr]I'm glad people are liking the question - thanks for the positive comments everyone.I was motivated to come up with the question after following a discussion relating to a QotD from a few weeks ago. There was some (at times quite heated!) debate around language-independent date formats, so I thought it would be good material for a question, and hopefully some more discussion.Incidentally, there's a "second date" scheduled to be published next week, so anything you read in those links could be handy... :cool:[/quote]I remembered that discussion and got the answer correct as a result!  (I knew enough to test these possibilities out in SSMS with language set to British and then to French because I knew they would probably all work with my current setting of US English.)  Two points is a good reward for reading, retaining, and applying information introduced in QOTD discussions.</description><pubDate>Wed, 06 Apr 2011 12:19:36 GMT</pubDate><dc:creator>Rose Bud</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Terrific question.  For some reason dates are not my best topic.</description><pubDate>Wed, 06 Apr 2011 09:30:58 GMT</pubDate><dc:creator>mtillman-921105</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]Duncan Pryde (4/6/2011)[/b][hr]I'm glad people are liking the question - thanks for the positive comments everyone.I was motivated to come up with the question after following a discussion relating to a QotD from a few weeks ago. There was some (at times quite heated!) debate around language-independent date formats, so I thought it would be good material for a question, and hopefully some more discussion.Incidentally, there's a "second date" scheduled to be published next week, so anything you read in those links could be handy... :cool:[/quote]OK, Duncan, I got this wrong, and [u]I'm[/u] the one who posted the link last week to Tibor Karaszi's excellent write-up!:ermm:I don't use the {} ODBC escape format, so I missed that one.  Guess I learned something, so thanks.Rich</description><pubDate>Wed, 06 Apr 2011 09:28:18 GMT</pubDate><dc:creator>rmechaber</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Excellent question. Got it wrong though, but learned something new today. Thanks,Suresh</description><pubDate>Wed, 06 Apr 2011 09:19:25 GMT</pubDate><dc:creator>Surii</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]paul.knibbs (4/6/2011)[/b][hr]Pity you can't split the results by nationality--I wonder how many British or European DBAs would get this one wrong? :-)[/quote]I would bet it is a greater percentage than US dba's.Many US dba's and database developers have worked on at least one project with Canadian customers.  They use the dd-mm-yyyy data format. :smooth:It is my understanding the all of Great Briton uses the same date format.</description><pubDate>Wed, 06 Apr 2011 08:31:37 GMT</pubDate><dc:creator>SanDroid</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Great question.  Love the title.</description><pubDate>Wed, 06 Apr 2011 08:31:13 GMT</pubDate><dc:creator>Cliff Jones</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]UMG Developer (4/5/2011)[/b][hr][quote][b]CirquedeSQLeil (4/5/2011)[/b][hr][quote][b]UMG Developer (4/5/2011)[/b][hr]How many people actually use the ODBC date literals?[/quote]I think very few in comparison.[/quote]Yeah, I think the number of people answering correctly shows that. (Currently 33% of the 24 people that have answered.)[/quote]I would have to agree that using the ODBC date literals is "Old School" in a bad way.I had a project back in the late 90's that had to show dates in Cannadian and US format.We used the second format to transfer the dates as strings from the UI to SQL and back.This yyyyddmm string format tested on SQL 7 and SQL 2000 as being 50% faster during a load.I tested today when I saw the question and it still round trip faster to format the date as string in the yyyyddmm format and pass to SQL for Multilaguage and Multiformat support.  Formating as string YYYY-dd-mm and doing a cast using ODBC date literals just takes longer.</description><pubDate>Wed, 06 Apr 2011 08:26:10 GMT</pubDate><dc:creator>SanDroid</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]cdiebolt (4/6/2011)[/b][hr]Add one more european developer! ;-)I didn't know that the 2nd answer is dateformat dependent. :Whistling:[/quote]Me either... I was pretty sure 2011-04-28 was a dateformat neutral date... :(Just a silly ANSI standard, but not dateformat neutral... :/Of course I missed the hint (select 2)... which might have helped.</description><pubDate>Wed, 06 Apr 2011 07:22:07 GMT</pubDate><dc:creator>mtassin</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>This was a great question. I got it wrong but appreciate the information. Thanks!- webrunner</description><pubDate>Wed, 06 Apr 2011 07:15:40 GMT</pubDate><dc:creator>webrunner</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]paul.knibbs (4/6/2011)[/b][hr]Pity you can't split the results by nationality--I wonder how many British or European DBAs would get this one wrong? :-)[/quote]I'll admit that I deliberately chose '04-28-2011' as a potential answer rather than '28-04-2011', but this was more because I reckoned there might be more people using the first format in their daily lives, rather than being a deliberate attempt to target our friends across the pond. Honest.</description><pubDate>Wed, 06 Apr 2011 07:08:17 GMT</pubDate><dc:creator>Duncan Pryde</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>I'm glad people are liking the question - thanks for the positive comments everyone.I was motivated to come up with the question after following a discussion relating to a QotD from a few weeks ago. There was some (at times quite heated!) debate around language-independent date formats, so I thought it would be good material for a question, and hopefully some more discussion.Incidentally, there's a "second date" scheduled to be published next week, so anything you read in those links could be handy... :cool:</description><pubDate>Wed, 06 Apr 2011 06:39:12 GMT</pubDate><dc:creator>Duncan Pryde</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Excellent question. Got it wrong - but learned a lot.:-)</description><pubDate>Wed, 06 Apr 2011 06:09:50 GMT</pubDate><dc:creator>sjimmo</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]Hugo Kornelis (4/6/2011)[/b][hr]Few, I would hope ;-)[/quote]Actually, the ODBC format can be quite useful when you are developing a system fetching data in may different data sources, as you can unify the way you write you dates in your queries. But beside that type of usage, I agree it's probably best to use another syntax.</description><pubDate>Wed, 06 Apr 2011 03:32:39 GMT</pubDate><dc:creator>cdiebolt</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Good question. Being in London (where we speak a 'foreign' version of English) helped to get it right.:-)</description><pubDate>Wed, 06 Apr 2011 03:31:19 GMT</pubDate><dc:creator>Richard Warr</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Nice question! And I just love the punny title.[quote][b]UMG Developer (4/5/2011)[/b][hr]Nice question, thanks!How many people actually use the ODBC date literals?[/quote]Few, I would hope ;-)Luckily I have seen them before, and I knew which two answers are not correct, so from that I deduced that ODBC dates using yyyy-mm-dd must be language independent.</description><pubDate>Wed, 06 Apr 2011 02:57:29 GMT</pubDate><dc:creator>Hugo Kornelis</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Good question, I lost 2 points but learned something.</description><pubDate>Wed, 06 Apr 2011 02:40:42 GMT</pubDate><dc:creator>cengland0</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Add one more european developer! ;-)I didn't know that the 2nd answer is dateformat dependent. :Whistling:</description><pubDate>Wed, 06 Apr 2011 02:24:21 GMT</pubDate><dc:creator>cdiebolt</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]paul.knibbs (4/6/2011)[/b][hr]Pity you can't split the results by nationality--[b]I wonder how many British or European DBAs would get this one wrong[/b]? :-)[/quote]At least one ;-)</description><pubDate>Wed, 06 Apr 2011 02:17:35 GMT</pubDate><dc:creator>Chris Houghton</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Nice question - the links are particularly useful.</description><pubDate>Wed, 06 Apr 2011 01:47:03 GMT</pubDate><dc:creator>BrainDonor</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Pity you can't split the results by nationality--I wonder how many British or European DBAs would get this one wrong? :-)</description><pubDate>Wed, 06 Apr 2011 01:38:51 GMT</pubDate><dc:creator>paul.knibbs</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Good question. If the hint for choosing 2 options was not there, I would have got this wrong. :-)</description><pubDate>Wed, 06 Apr 2011 00:36:56 GMT</pubDate><dc:creator>mohammed moinudheen</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>same here, I overlooked the "regardless of any language" piece, so selected all 4 too...Learned something though... "Read carefully"</description><pubDate>Wed, 06 Apr 2011 00:34:07 GMT</pubDate><dc:creator>jurgen.asselman</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]UMG Developer (4/5/2011)[/b][hr]Nice question, thanks!How many people actually use the ODBC date literals?[/quote]Talking of Dating...I do ;-)Seriously, our product does use ODBC date literals, and hence this one was an easy one for me.However, generally speaking, this is a fantastic question because it teaches a lot about how to generalize our code.And, the subject is great as well.Thank-you!</description><pubDate>Wed, 06 Apr 2011 00:33:28 GMT</pubDate><dc:creator>Nakul Vachhrajani</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Thanks for the question.I tried all 4 select statements in 2005 as well as in 2008 without changing LANGUATE 7 DATEFORMAT.  All the 4 statements worked.  So selected all of them.I overlooked "regardless of any LANGUAGE or DATEFORMAT settings? (select 2)".  Lost the point.  It was a learning for me.</description><pubDate>Wed, 06 Apr 2011 00:30:36 GMT</pubDate><dc:creator>tejaswini.patil</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]CirquedeSQLeil (4/5/2011)[/b][hr][quote][b]UMG Developer (4/5/2011)[/b][hr]How many people actually use the ODBC date literals?[/quote]I think very few in comparison.[/quote]Yeah, I think the number of people answering correctly shows that. (Currently 33% of the 24 people that have answered.)</description><pubDate>Tue, 05 Apr 2011 23:06:03 GMT</pubDate><dc:creator>UMG Developer</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>I think this was a great question and quite useful</description><pubDate>Tue, 05 Apr 2011 22:18:57 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>[quote][b]UMG Developer (4/5/2011)[/b][hr]Nice question, thanks!How many people actually use the ODBC date literals?[/quote]I think very few in comparison.</description><pubDate>Tue, 05 Apr 2011 22:18:35 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Nice question, thanks!How many people actually use the ODBC date literals?</description><pubDate>Tue, 05 Apr 2011 20:55:32 GMT</pubDate><dc:creator>UMG Developer</dc:creator></item><item><title>Dating for DBAs</title><link>http://www.sqlservercentral.com/Forums/Topic1088994-2901-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/T-SQL/72816/"&gt;Dating for DBAs&lt;/A&gt;[/B]</description><pubDate>Tue, 05 Apr 2011 20:54:50 GMT</pubDate><dc:creator>Duncan Pryde</dc:creator></item></channel></rss>