You are here: Re: WHAT DO I USE TO MAKE A TODAY DATE QUERY? « MsSQL Server « IT news, forums, messages
Re: WHAT DO I USE TO MAKE A TODAY DATE QUERY?

Posted by Erland Sommarskog on 07/22/05 18:52

Fernand St-Georges (fernand.st-georges@videotron.ca) writes:
> I got the value I needed using this type of query
> WHERE (dbo.Membre.Date_MAJ > GETDATE() - 1) AND (dbo.Membre.Date_MAJ <
> GETDATE() + 1)
> I only thought this would do
> where date_MAJ = GETDATE()
>
> while in Access I only need
> where date_MAJ =DATE()
>
> kind of amazing isn't it

No, it's not all amazing. Access and SQL Server are two very different
products, and if you try to use SQL Server as if it was Access you
are in for a hard time.



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

 

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

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