Hi @Sudhir Singare,
To rename the SharePoint databases, you can follow these general steps:
- Stop the Service Applications: Before renaming the databases, you need to stop the respective service applications associated with the databases you wish to rename.
- Detach the Databases: Use SQL Server Management Studio to detach the databases that you want to rename.
- Rename the Databases: After detaching, you can rename the databases using SQL Server Management Studio.
- Reattach the Databases: Once renamed, reattach the databases to the SQL Server instance.
- Point the Service Applications to the Renamed Databases: Use either Central Administration or PowerShell to point the service applications to the newly renamed databases.
Use
Get-SPDatabase | where {$_.Type -notcontains "Content Database" -and $_.Type -notcontains "Configuration Database"} | sort Type | format-table –autosize
to get service application databases.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.