Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Random run duration for a SQL job

Random run duration for a SQL job

Random run duration for a SQL job


I have an issue that I cannot understand anymore...

I have a server A (Windows Server 2003) hosting a database.

I have developed a DTS to save in this database some data for other databases from other servers.

This DTS is runned each morning with MS SQL Server (automatic execution).

I don't understand why every day, the run duration is random. Sometimes, the job spends 15 minutes to be done, sometimes, it spends 30 minutes...

I think that locks can be the issue. I want to trace them with SQL Profiler but the matter is that I want to start tracing at 5am. I'm not at work at that time so how can I make start the trace automatically?

If you don't think that the locks are the problem, do you know please how I can begin me research to solve this problem?

Thans you in advance,


RE: Random run duration for a SQL job

Firstly for your trace - start it via cmdline.

Create a batch file using this as a guide:

Then schedule it to run using scheduled tasks.

What i would say is issues like this are VERY hard to find.  It could be a backup on SQL running late, or even on a seemingly unconnected server (backup running on a different server causing network traffic on a switch\cable to be high -  causing a delay).



Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close