If you need to find the difference between two dates then use the DateDiff command in sql. That will allow you to compare two dates and give you the difference.
ie.
SELECT * FROM table WHERE DateDiff("n", DateTimeField, Now()) > 15;
Will result in records that have a time older than 15 minutes. Lookup the DateDiff syntax for more information on the switches you can use to produce different time, such as months, days, minutes, hours, etc.
Section 37
Main Topics
Browse All Topics





by: Section37Posted on 2004-09-17 at 10:18:12ID: 12086595
My best thought for you is to setup a DTS package and then schedule it on the hour with the Server Agent.
I am not too sure what you mean though, but if you needed the information inserted, then all you would have to do is setup a DTS package the executes the SQL Insert statment that you want. Then with the Server Agent you can schedule it to run hourly every day.
Hope that helps!
Section37