You are here: Re: Job to be run ever first for the previous calendar month « MsSQL Server « IT news, forums, messages
Re: Job to be run ever first for the previous calendar month

Posted by AlterEgo on 01/18/07 00:25

Roy,

Wya cool, did not know this!

-- Bill

"Roy Harvey" <roy_harvey@snet.net> wrote in message
news:vietq2l4344pq52plgrnael566amuu5pfb@4ax.com...
> WHERE create_date < DATEADD(month,DATEDIFF(month, 0,getdate()),0)
> AND create_date >= DATEADD(month,DATEDIFF(month, 0,getdate())-1,0)
>
> Roy Harvey
> Beacon Falls, CT
>
> On 17 Jan 2007 14:30:29 -0800, "tolcis" <nytollydba@gmail.com> wrote:
>
>>Hi!
>>
>>I have a query that has to return bunch of data based on the calendar
>>month. I have to make sure that it will return data to me for 28 days
>>if it is February and for 31 if it is August(for example). I need to
>>be able to execute it every first of every month for the past 30, 31 or
>>28 days based on the calendar month. Is there a function or a stored
>>procedure that I can use to do that?
>>
>>Thank you,
>>T.

 

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

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