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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 DateTime Problem

Author  Topic 

RecursiveLogic
Starting Member

3 Posts

Posted - 2000-12-06 : 12:22:11
I have a stored procedure that runs once a day to delete records out of certain tables. The records that need to be deleted have increased and I want to run it two hours before the current date.
The dateoflastactivity field is a datetime field and I can't get the
Hour out and subtract two hours and then use that some how to delete the records I need too.

I would appreciate any help on this problem!!
   

- Advertisement -