which database is SSRS database?

  • I am writing a generic T-SQL script that needs to have sql server tell it what database(s) are configured as Reporting Services databases.

    This database is going to be mirrored, so I need the database name/id so I can use that with sys.database_mirroring to tell me if it is running as the principal or mirror role.

    Is there a DMV, system view, etc. that holds that information?

    Thanks,

    Alan.

  • Could you use the DATABASE_NAME() function and the Database_id column from the sys.database_mirroring table to get the name?

  • Sorry DB_NAME(). My brain said one thing my fingers typed another.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply