Solved

How do you interrupt a job (or clear a connection) that is hung?

Posted on 2004-03-30
5
306 Views
Last Modified: 2008-03-17
I'm running a DTS package on SQL 2000 that I scheduled to run under Agent.  It still has a connection open but it isn't progressing.  
0
Comment
Question by:FatalErr
  • 2
  • 2
5 Comments
 
LVL 50

Accepted Solution

by:
Lowfatspread earned 125 total points
ID: 10717838
find out whats blocking it... under jobs...

eventually you may want to KILL the offending PID(s)

SP_WHO
0
 
LVL 34

Expert Comment

by:arbert
ID: 10718082
If it's hung in SQLAgent, you may not be able to do anything until you stop/restart agent (even with a kill).  Take a look in the SQL Logs and see if there are any messages about non-yielding processes.

Brett
0
 
LVL 1

Author Comment

by:FatalErr
ID: 10718096
If I right click the job, what would I choose to see why it's being blocked?
0
 
LVL 34

Assisted Solution

by:arbert
arbert earned 125 total points
ID: 10718289
you run sp_who from query analyzer to see the block.....
0
 
LVL 1

Author Comment

by:FatalErr
ID: 10718707
I'm going to split the points on this one.  The first answer had the magic word "kill" in it.  I looked this up in books on-line and found out how to kill a process.  But, I didn't know what the hold-up was until I knew what I was looking at with the sp_who.  Incidentally, I had been using sp_who to see the job but I didn't know about the block thing.  Thanks,
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now