Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

Deleted service application databases, now can't remove service application

$
0
0

I deleted the search service databases directly from SQL in our development environment.   When I try to delete the service application from Central Admin, it doesn't let me do it.   It either says the account doesn't have access or that the search database cannot be opened.   How can I clean this mess up?  thanks

Here's what I get when I try to delete with Powershell:

PS C:\Users\spadmin> $spapp = Get-SPServiceApplication -Name "Search Service
 Application 1"
PS C:\Users\spadmin> Remove-SPServiceApplication $spapp

Confirm
Are you sure you want to perform this action?
Performing operation "Remove-SPServiceApplication" on Target
"SearchServiceApplication Name=Search Service Application 1".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):Y
Remove-SPServiceApplication : Cannot open database
"Search_Service_Application_1_DB_5b6c4c6f42874c17a56ff94a51c97249" requested
by the login. The login failed.
Login failed for user 'domain\spadmin'.
At line:1 char:1
+ Remove-SPServiceApplication $spapp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...viceApplication:
   SPCmdletRemoveServiceApplication) [Remove-SPServiceApplication], SqlExcept
  ion
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveSe
   rviceApplication


Viewing all articles
Browse latest Browse all 21070

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>