How can I see all site collections associated in a specific Content db in SharePoint 2010?
Any advice or suggestion is highly appreciated.
How can I see all site collections associated in a specific Content db in SharePoint 2010?
Any advice or suggestion is highly appreciated.
Get-SPSite -Limit All -ContentDatabase contentdbname | select url, @{label="Size";Expression={$_.usage.storage}}
This can also be achieved by
get-spsite -limit all | select url,contentdatabase
The output gets you all of your content databases and the site collections contained within. The -limit all would help if you have more than 100 site collections.
It's easy, just look in the documentation and here it goes: SPContentDatabase.Sites.