Solved

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

Posted on 2004-03-30
5
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how the fundamental information of how to create a table.

726 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