|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
stored procedure -> this.getName()hi, ist there a way to retreive the name of the procedure
i am actually in, to send an email with error/name of the procedure? CREATE PROCEDURE xyz as begin if @error<0 sp_sendMessage @error ??@getName -> xyz?? end thanks, mike OBJECT_NAME(@@PROCID)
<peppi***@hotmail.com> wrote in message Show quote news:1135186754.875428.109500@g44g2000cwa.googlegroups.com... > > hi, ist there a way to retreive the name of the procedure > i am actually in, to send an email with error/name of the procedure? > > CREATE PROCEDURE xyz > as > > begin > > if @error<0 > sp_sendMessage @error ??@getName -> xyz?? > > end > > thanks, mike > |
|||||||||||||||||||||||