Friday, March 9, 2012

How do I find the db name from a stored procedure in the db

Hi
I need to know the name of the database from a stored procedure in that
database.
How can I do that?
Regards
Kjell Arne Johansen
Kjell Arne Johansen wrote:
> Hi
> I need to know the name of the database from a stored procedure in that
> database.
> How can I do that?
> Regards
> Kjell Arne Johansen
DB_NAME()
Tracy McKibben
MCDBA
http://www.realsqlguy.com
|||Hi
Thank You, thats what i needed!
kaj
"Tracy McKibben" wrote:

> Kjell Arne Johansen wrote:
> DB_NAME()
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com
>

No comments:

Post a Comment