Solved

Get the SP name from inside the SP?

Posted on 2010-09-22
2
330 Views
Last Modified: 2012-05-10
From a stored procedure's TSQL ... is it possible to get the NAME of the stored procedure being executed?

Fred
0
Comment
Question by:volking
2 Comments
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 total points
ID: 33737912
use

select object_name(@@procid)
0
 
LVL 5

Author Closing Comment

by:volking
ID: 33738947
Works perfectly!
Thank you!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question