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

how to disconnect a connection to a hostname from sql server 1

Status
Not open for further replies.

shresthaal

Programmer
Joined
Jun 8, 2005
Messages
62
Location
US
I have a bunch of processes that are sleeping and waiting for command from a computer that is connected to the sql server through a java program. The program runs queries on the server and most of the time the SPID associated with this program is blocked or locked. I do not have access to the computer but if I wanted to block these processes from this computer how would I do it.
 
There is the Kill statement.

Permissions needed are sysadmin
Parameter = spid

kill 9877

HTH

Rob
 
well i know how to kill the spid id but how do i block a specific connection from a hostname
 
scan the sysprocesses table for host_name = X then kill the spid
 
well i know how to kill the spid id but how

What am i supposed to be a fng mind reader?

Sorry, I will ignore any more posts from you.

NOCOOL!
 
my bad just looking for help amateur at work would appreciate further help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top