Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining Current database 1

Status
Not open for further replies.

Persmd

Programmer
May 21, 2003
38
0
0
US
Is there a stored procedure or system function that returns the name of the database that an object is in?

In other words, if I implicitly call a stored procedure that only exists in [mytest]..[mysp], can [mysp] determine that it belongs to the database [mytest]?

Thanks,
Michael
 
Thanks NoCoolHandle. That's exacxtly what I wanted, just too tired to remember, or find it.

Michael

I feel a lot more like I do now...
than I did when I first got here!

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top