Site collection and content database details

The script collects the list of site collection details in each content database in the sharepoint farm and SQL instance details under which the content database is located.

Output file(DBDetails.csv) will be generated under the same location where the script is placed. The output file contains the following details,

  1. SiteCollectionURL
  2. ContentDatabase Name
  3. Respective SQL instance