Home All Groups Group Topic Archive Search About

List of running stored procedures



Author
16 Nov 2006 6:39 PM
Jim
Is there any way of generating a list of running stored procedures?
--
Thanks, Jim

Author
16 Nov 2006 8:11 PM
John Bell
Hi Jim

I assume you mean currently being run, or do you mean are accessed by an
application? You could get a list by running profiler for a (long) time but
this may not be a complete one.

John

Show quoteHide quote
"Jim" wrote:

> Is there any way of generating a list of running stored procedures?
> --
> Thanks, Jim
Are all your drivers up to date? click for free checkup

Author
21 Nov 2006 12:10 PM
Jim
John,

We have a lot of procedures that run in batch and some tend to run over 8
hours. I am trying to get a list of what is still running so we can monotor
it.
--
Thanks, Jim


Show quoteHide quote
"John Bell" wrote:

> Hi Jim
>
> I assume you mean currently being run, or do you mean are accessed by an
> application? You could get a list by running profiler for a (long) time but
> this may not be a complete one.
>
> John
>
> "Jim" wrote:
>
> > Is there any way of generating a list of running stored procedures?
> > --
> > Thanks, Jim
Author
21 Nov 2006 1:01 PM
John Bell
Hi

Profiler would show you the SQL being sent to your server and DBCC
INPUTBUFFER may give you the last command for a given SPID.

John

Show quoteHide quote
"Jim" wrote:

> John,
>
> We have a lot of procedures that run in batch and some tend to run over 8
> hours. I am trying to get a list of what is still running so we can monotor
> it.
> --
> Thanks, Jim
>
>
> "John Bell" wrote:
>
> > Hi Jim
> >
> > I assume you mean currently being run, or do you mean are accessed by an
> > application? You could get a list by running profiler for a (long) time but
> > this may not be a complete one.
> >
> > John
> >
> > "Jim" wrote:
> >
> > > Is there any way of generating a list of running stored procedures?
> > > --
> > > Thanks, Jim
Author
21 Nov 2006 4:05 PM
Jim
thanks, I'll check it out.
--
Thanks, Jim


Show quoteHide quote
"John Bell" wrote:

> Hi
>
> Profiler would show you the SQL being sent to your server and DBCC
> INPUTBUFFER may give you the last command for a given SPID.
>
> John
>
> "Jim" wrote:
>
> > John,
> >
> > We have a lot of procedures that run in batch and some tend to run over 8
> > hours. I am trying to get a list of what is still running so we can monotor
> > it.
> > --
> > Thanks, Jim
> >
> >
> > "John Bell" wrote:
> >
> > > Hi Jim
> > >
> > > I assume you mean currently being run, or do you mean are accessed by an
> > > application? You could get a list by running profiler for a (long) time but
> > > this may not be a complete one.
> > >
> > > John
> > >
> > > "Jim" wrote:
> > >
> > > > Is there any way of generating a list of running stored procedures?
> > > > --
> > > > Thanks, Jim
Author
21 Nov 2006 4:15 PM
Tracy McKibben
Jim wrote:
> John,
>
> We have a lot of procedures that run in batch and some tend to run over 8
> hours. I am trying to get a list of what is still running so we can monotor
> it.

Can you get what you need by querying the sysprocesses table?


--
Tracy McKibben
MCDBA
http://www.realsqlguy.com
Author
21 Nov 2006 4:44 PM
John Bell
Hi Tracy

sysprocesses only returns nchar(16) for the cmd, DBCC INPUTBUFFER returns
nvarchar(255) for eventinfo.

John


Show quoteHide quote
"Tracy McKibben" wrote:

> Jim wrote:
> > John,
> >
> > We have a lot of procedures that run in batch and some tend to run over 8
> > hours. I am trying to get a list of what is still running so we can monotor
> > it.
>
> Can you get what you need by querying the sysprocesses table?
>
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com
>
Author
21 Nov 2006 4:51 PM
Tracy McKibben
John Bell wrote:
> Hi Tracy
>
> sysprocesses only returns nchar(16) for the cmd, DBCC INPUTBUFFER returns
> nvarchar(255) for eventinfo.
>

Yes, I know, I was asking the OP if he could get his SPIDs from
sysprocesses as opposed to Profiler...


--
Tracy McKibben
MCDBA
http://www.realsqlguy.com

Bookmark and Share