title: Programmatically get SSRS Database Name
body: <p>I need a way to programmatically get the Report Server Database name.
  I can open the Object Explorer in Server Management Studio, and see the database in there, however, ideally I need to get this via code and have it returned to a variable so I can use it later on in my query to grab data from a view within that database, in case the report server database name ever changes, thanks.</p>