Re: enterprise manager and query analyzer
From: Arnel (arnelsin_at_hotmail.com)
Date: 08/22/03
- Next message: A.M: "Linked Server And Remote Servers"
- Previous message: Arnel Sinchongco: "Re: enterprise manager and query analyzer"
- In reply to: Kevin Brooks: "Re: enterprise manager and query analyzer"
- Next in thread: Kevin: "Re: enterprise manager and query analyzer"
- Reply: Kevin: "Re: enterprise manager and query analyzer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 22 Aug 2003 07:58:23 -0700
I am writing the code to check against sysprocesses and am running into
a
little trouble. Can you please point me in right direction?
My coding is weak and the error message i'm getting is a syntax error.
Can
I perform the following command in a cursor?
=======================================================
DECLARE @spid varchar(10)
DECLARE kill_spid CURSOR FOR
select spid from #spid
open kill_spid
fetch next from kill_spid
into @spid
while @@fetch_status = 0
begin
kill @spid =====getting syntax error on this line. how can I kill
spids from within this stored proc?========
fetch next from kill_spid
into @spid
end
close kill_spid
deallocate kill_spid
====================================================
Arnel Sinchongco
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: A.M: "Linked Server And Remote Servers"
- Previous message: Arnel Sinchongco: "Re: enterprise manager and query analyzer"
- In reply to: Kevin Brooks: "Re: enterprise manager and query analyzer"
- Next in thread: Kevin: "Re: enterprise manager and query analyzer"
- Reply: Kevin: "Re: enterprise manager and query analyzer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|