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 |
etravels
Starting Member
1 Post |
Posted - 2007-08-15 : 11:24:28
|
delete from document where datediff(d, created, GETDATE()) > 60I am trying to create a scheduler job so that the table deletes items older than 60 days. when I run this within Sql Analyzer it works but when i do it via JOB all the rows get deleted? why is this happening?ThanksEE |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2007-08-15 : 11:50:26
|
Because you've commented out the where clause?Don't see why it should run differently in a job.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|