?
Solved

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

Posted on 2004-03-30
5
Medium Priority
?
312 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 500 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 500 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Suggested Courses

752 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