Killing a process through a stroed proc

  • Hi all,

    Can someone help me with this.

    I have the following stored proc which takes a parameter of the process to kill, but it won't compile. If I take out the parameter and hardcode a value it will work. What am I doing wrong.

    Thanks

    CCB

    CREATE PROCEDURE [dbo].[prc004KillProcess]

    (@intSPID smallint)

    AS

    Kill @intSPID

    GO

  • What do you need this for? Can u tell me the background?

    Cheers!


    Arvind

  • Please avoid cross postings. They make it hard to follow. We should leave it here

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply