To show the database name:
SELECT DB_NAME() AS DataBaseName
This also proves useful in Crystal Report development where 'test' and 'live' databases in use. Simply add the above code to a Command in Database Expert and show the DatabaseName field in the report header.
No comments:
Post a Comment