Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Type for Time Interval
Message
From
18/04/2006 12:12:36
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Data Type for Time Interval
Miscellaneous
Thread ID:
01114300
Message ID:
01114300
Views:
56
Hello,
I am looking into making a scheduling table for an application server. I want to store the last time ran in a datetime field, and the time interval in another field (like 1 hour, or 6 months). I will then compare those two fields to see if it is time to run it again.

What would be the best way to store a time interval? I'm sure I could do it with a datetime field, but is there a better way?

Thanks,
Mike
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform