I have a site collection whose content database has been deleted with no backup. Now I want to delete the site collection and i get what seems to be a sql login error. I know the account I am using has enough access to the sql server (used this account to
install sharepoint). I am guessing it is complaining because it can't find the database.
Remove-SPSite : Cannot open database "WSS_Content_Database" requested by the lo
gin. The login failed.
Login failed for user 'DOMAIN\PowerfulAccount'.
At line:1 char:14
+ Remove-SPSite <<<<
+ CategoryInfo : InvalidData: (Microsoft.Share...mdletRemoveSite:
SPCmdletRemoveSite) [Remove-SPSite], SqlException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveSi
I used the Remove-SPSite <URL of site to delete> command.
View Complete Post