Home Forums SQL Server 7,2000 In The Enterprise Is There A Way To List Current Activity, Such As Primary Key? RE: Is There A Way To List Current Activity, Such As Primary Key?

  • Just a wild idea, which I hope will stimulate your creative juices.

    Have you considered running sp_who, at least it will tell if some one is using the database, if no one, can you then do your fix up task with an exclusive lock on the table in question?

    My wild idea, schedule a job to run sp_who say every 30 minutes and insert the results into a temp table, query the temp table, if the database name is not found, then do the fixing up.

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]