Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 17309 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > SQL Server Interview Questions > Write a Query in SQL Server to get the ...

Write a Query in SQL Server to get the Parameter list of given Store Procedure.

Interview question and answer by: Lakhangarg | Posted on: 11/19/2009 | Category: SQL Server Interview questions | Views: 1961 |
Ads
Ads


Answer:

Suppose we want to get the name of the parameter for the Store Procedure
Course_Insert_sp then folllowing needs to be executed.

SELECT * FROM sys.parameters D INNER JOIN Sys.Objects O ON O.object_id=D.object_id WHERE O.name='Course_Insert_sp'


Thanks & Regards
Lakhan Pal Garg

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Easwaran | Posted on: 31 Aug 2012 03:27:37 AM | Points: 10 | Alert Moderator 

SPs that don't have parameter are returning some values as well. Please do provide correct query.

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Lakhangarg

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/19/2013 8:06:27 PM