IS there a way when i run procedure to know from which database i run it?
on server there is @@servername and for users there is SUSER_SNAME()
is there is something like this for the current database?
See the topics in Books Online:
Meta Data Functions
Configuration Functions
System Functions
System Statistical Functions
--
Aaron Bertrand
SQL Server MVP
http://www.sqlblog.com/
http://www.aspfaq.com/5006
"Roy Goldhammer" <r...@hotmail.com> wrote in message
news:uYBWkkbs...@TK2MSFTNGP06.phx.gbl...