Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
direrayne
Starting Member
30 Posts |
Posted - 2010-09-14 : 17:29:50
|
I have tried Google but i cannot find a command for " previous Month "i know it exist. i need a command the will locate the previous month no matter what when it is ran.example: i want to schedule a job to run every month on the 2nd to pull data from the month before. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
rohitkumar
Constraint Violating Yak Guru
472 Posts |
Posted - 2010-09-14 : 17:39:23
|
read about DATEADD() functionhttp://msdn.microsoft.com/en-us/library/ms186819.aspx |
|
|
direrayne
Starting Member
30 Posts |
Posted - 2010-09-14 : 17:44:18
|
Thanks guys :) |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|