Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to time out a record? Triggers??

Status
Not open for further replies.

suhash

Programmer
Joined
Aug 15, 2005
Messages
10
Location
GB
Hi All,

I need to time out a record in a DB. Can I do this via a trigger? Is there anyway to trigger a method every minute or for a give period?

Thanks in advance..

Mal.,
 
When you say 'time out' do you mean 'expire'? As in 'this record is valid until a certain datetime'?
 
Yep. that is what I mean. I have a datetime field in a record. I need to refresh the records every 2 minutes. Can this be done?

Mal.
 
You would need to do this via a job.

Triggers are only fired when data is inserted, update or deleted. The have something run after that requires that something start the script. This is why Jobs exist in the SQL Server Agent.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Hi again,

Thanks for the info. Could you direct me to any resources on the web to learn about this please?

Thanks.
 
Books OnLine has tons of info about Jobs. It's under Start > Programs > Microsoft SQL Server

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top