|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a number of Stored Procedures that call to a function.
The function expects a parameter which is the Stored Procedures name. Currently it is hard coded into every Stored Procedure. Is there a way to retrieve the current executing Stored Procedures name to pass to the function so I do not have to hard code it in every time I call the function? Thanks, Joshua |
|
#2
|
||||
|
||||
|
@@PROCID seems to return this:
Code:
CREATE PROC MK AS SELECT OBJECT_NAME(@@PROCID) GO EXEC MK MK |
|
#3
|
|||
|
|||
|
Thanks,
Just what I needed. |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > How to get a SP Name within that SP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|