Click here to Skip to main content
13,292,913 members (89,683 online)
Click here to Skip to main content
Add your own
alternative version


25 bookmarked
Posted 26 Jul 2009

Get List of Extended storedProcedures that are Allowed to you for Common Use

, 26 Jul 2009
Rate this:
Please Sign up or sign in to vote.
An easy way to get a list of extended storedProcedure allowed to you for common use


For how many extended storedProcedures do you have the permission to use as public in your own SQL queries / storedProcedure as well? This simple article will show you all the extended storedProcedures allowed to you for common use.


A couple of months ago, I needed to work with SQL server extended storedProcedure, where I found some extended storedProcedures which are not allowing properly to perform some task.

That’s why I tried to get a list of all extended storedProcedures which are available to you for common use.

Using the Code 

It’s a very simple method. I just use the sysobjects and syspermissions system tables from the master database. The table definitions are as follows:


Contains one row for each object (constraint, default, log, rule, stored procedure, and so on) created within a database. In tempdb only, this table includes a row for each temporary object.

More details will be available from this link


Contains information about permissions granted and denied to users, groups, and roles in the database. This table is stored in each database.

More details will be available from this link.

Example script is given below: 

-- ================================================
-- Template generated from Template Explorer using:
-- Create Procedure (New Menu).SQL
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
-- This block of comments will not be included in
-- the definition of the procedure.
-- ================================================
-- =============================================
-- Author:        <Author,,Md. Marufuzzaman>
-- Create date: <Create Date,,02/01/2009>
-- Description:    <Description,,>
-- =============================================
--EXEC spGetPUBLIC_EXProcedure


    SELECT     TOP (100) PERCENT AS [Extended storedProcedure]
             , USER_NAME(SystemPermissionObject.grantee) AS [Granted to]

    FROM    master.dbo.sysobjects AS SystemObject
            INNER JOIN master.dbo.syspermissions AS SystemPermissionObject
            ON =

    WHERE   (SystemObject.type = 'X')




I hope that this article might be helpful to you. Enjoy!


  • 26th July, 2009 : Initial post


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Md. Marufuzzaman
Bangladesh Bangladesh
A well experienced leader with successful track record of software development, product innovations, brand management and corporate communication etc. Some successful product innovations have also achieved and awards “Most Valuable Professional” (MVP) at 2010 and 2011 by and also selected as a mentor of Published over 100 technical articles in various software development resource sites (i.e.,, Microsoft MSDN, and IEEE & IBM (In progress)) and various IT Forums, Blogs etc.

Over twelve years of professional experiences in ICT field having extensive experience in formulating corporate vision and long term strategy. Leading development related functions including design, development, services, data management and analytics, customer experience management, content services, digital analytics and optimization.I have also more than two years’ of strong experience in mobile-VAS (platform development).

An individual with results-driven approach and relentless in pursuit of excellence from a business and organizational standpoint.Honest, believes in transparency, commitment and teamwork.

Expertise: Software/Solution Architect, Research, MIS, Data Analytics, Data Mining, BI, SaaS platform base application development, Large scale Win32 Form/Web based business software solutions, Security, Enterprise applications development, integration, etc.

Technologies/Tools: Microsoft.Net version 05/08/10/12, Microsoft SQL Server version 7/2K/05/08/12/14 , Oracle version 10/11, MySql version 5.1, 5.5, 5.7, Visual C#, VB.NET, ASP.NET, API, MVC, WebAPI , WPF, WCF, PHP, Microsoft Power BI, SPSS, PS2, R, Add-In, Visual Basic etc.

.Net UI component: Telerik, DevExpress, Ext.Net.
Scripting language: JavaScript, AngularJS, node.JS.
Source control / Subversion: Git,SVN.
Development methodologies: Agile,RAD.
Project Management / Issues Tracking Tools: JIRA, ClockingIt.

You may also be interested in...


Comments and Discussions

GeneralMy vote of 5 Pin
Rashed_11-Feb-12 0:18
memberRashed_11-Feb-12 0:18 
QuestionIs this possible to ceate a dynamic storedProc? Pin
kisukortechai27-Jul-09 6:40
memberkisukortechai27-Jul-09 6:40 
AnswerRe: Is this possible to ceate a dynamic storedProc? Pin
Md. Marufuzzaman27-Jul-09 7:29
groupMd. Marufuzzaman27-Jul-09 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 26 Jul 2009
Article Copyright 2009 by Md. Marufuzzaman
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid