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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking runtime within script

Status
Not open for further replies.

sshafe

Programmer
Oct 18, 2002
71
US
I've been researching without any success, and I don't know if this can even be done, but here it goes:

I am trying to write a script that will kick off defrags against multiple SQL server drives. My issue, is that I need to check the status of the different defrags that are running and to make sure they do not run too long.

Is there a way to check within a script, say every 30 minutes, the elasped runtime of the script?

Thanks in advance :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top