You are here: Re: datetime « MsSQL Server « IT news, forums, messages
Re: datetime

Posted by Dave Owen on 12/08/05 21:33

Just in case: In Books on Line for SQL 2000, look for the article 'CAST and
CONVERT' to decode the mysterious 120 value Jens suggested.

"Jens" <Jens@sqlserver2005.de> wrote in message
news:1134068477.634857.133000@g47g2000cwa.googlegroups.com...
> Due the the unprecision of the datetime column, which is only in a 3 ms
> precision range (dependend on the way SQl Server evaluates the time
> based on ticks) a row could not be fetch which
> is apparently equals to your given expression, so converting it to the
> same format (with chopping the ms) would evaluate the right rows:
>
> CONVERT(VARCHAR(50),ColumnName,120) = CONVERT(VARCHAR(50),'10/12/2004
> 7:28:02 AM' ,120)
>
> HTH, Jens Suessmeyer.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация