Alternative Stored Procedures

I have collected many customized System stored procedures from a multitude of sources. In all cases I've tried to preserve the author's name where due. If you see a missing reference where credit is due, please don't hesitate to email me.


Click here for the full list of all Custom Stored procs I have right now. The ones I believe are most useful are described in detail below.


These stored procedures are typically sa-role type procedures, meant as tools to assist in detecting blocking, performance problems, etc. Some will not run correctly when executed by a normal user. All are formatted to be self installing: i.e. they exist within code like this:

dump tran sybsystemprocs with truncate_only
go
use sybsystemprocs
go
if exists (select * from sysobjects where name = "sp_name" and type = 'P')
   drop proc sp_name
go
create procedure sp_name
as
...(sql statements)
go

if object_id('sp_name') is not null
begin
    print '<<< Created procedure dbo.sp_name >>>'
    grant execute on dbo.sp_name to public
end
else
begin
    print '<<< Failed creating proc dbo.sp_name >>>'
end
go                                 


Each is deployed by calling a line like this:
isql -Usa -S[server] -P[sa password] -i [sp_name.sql]



Caution: having too many stored procedures can fill up sybsystemprocs and cause problems. I don't have all these installed in my sites..just the ones i find most useful. This is the collection I typically install