monitoring a table in sqlserver

  • hi all,

    is there any way for sqlserver to monitor a table?

    i want to update some records in a table when the time is up.

    there is a table with some fields (xID,xState,xDeadLine)

    i want to update xState field with 1 value when the "GETDATE() >=xDeadline fields value" like this.

    s="UPDATE tableA SET xState=1 WHERE xDeadLine<=" GETDATE()

    i want sqlserver to act this query?

    i dont wanna write any dll or service cos sql server runs on a hosting firm.

    (sqlserver must run the query.)

    thanx,

  • schedule a job is one option.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply