If I want to know the server, I can use:
@@SERVERNAME
Is there an equivalent function to get the database / directory name.
I know that we can install it in a script using a statement USE, but what if it was not installed, and I wanted to request in sproc what db I used.
source
share