ISPrincess
Programmer
I have the need to insert the name of the stored proc doing the insert into a table, but would like to make the code alittle more reusable. so rather than
Insert into mytable (ProcessName)
values('spThisStoredProcName')
I was hoping there was a way to get that from within the stored procedure (in case they change it or someone would like to copy some code from it). IE: does SQL have a command that can return that?
Insert into mytable (ProcessName)
values(@StoredProcName)
Any help would be greatly appreciated.
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
Insert into mytable (ProcessName)
values('spThisStoredProcName')
I was hoping there was a way to get that from within the stored procedure (in case they change it or someone would like to copy some code from it). IE: does SQL have a command that can return that?
Insert into mytable (ProcessName)
values(@StoredProcName)
Any help would be greatly appreciated.
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips