Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Re: criteria for a datetime field
[forwarding to the relational database newsgroups]


"SAC" <sac@sac.com> wrote in message
news:%23vbhjtHVGHA.1868@TK2MSFTNGP09.phx.gbl...
> I'm trying to set the criteria for a datetime field for all dates not
> older
> than 60 days from the current system date.
>
> GetDate() -60 doesn't work.
>
> How do I do this?
>
> Thanks.
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Raman Iyer [MS]
03-31-06 08:23 AM


Re: criteria for a datetime field
Look up DATEDIFF and DATEADD in Books Online.

http://msdn.microsoft.com/library/d...br />
5vxi.asp

http://msdn.microsoft.com/library/d...br />
3vtw.asp


ML

---
http://milambda.blogspot.com/

Report this thread to moderator Post Follow-up to this message
Old Post
ML
03-31-06 08:23 AM


Re: criteria for a datetime field
Thanks!

"ML" <ML@discussions.microsoft.com> wrote in message
news:5F2490C9-6863-4B56-9A29- DAF8DB0782E5@microso
ft.com...
> Look up DATEDIFF and DATEADD in Books Online.
>
>
http://msdn.microsoft.com/library/d..._da-db_5vxi.asp[
color=darkred]
>
>[/color]
http://msdn.microsoft.com/library/d..._da-db_3vtw.asp[
color=darkred]
>
>
> ML
>
> ---
> http://milambda.blogspot.com/[/color]



Report this thread to moderator Post Follow-up to this message
Old Post
SAC
03-31-06 02:23 PM


Re: criteria for a datetime field
NP :)
Just remember this newsgroup.


ML

---
http://milambda.blogspot.com/

Report this thread to moderator Post Follow-up to this message
Old Post
ML
03-31-06 02:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:16 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006