How do you find the SQL Server used for a SharePoint Farm?

Open SharePoint Management Shell Console and paste the following Powershell Script

SharePoint_Management_Shell

 

For finding the database server

$db = (Get-SPDatabase)[0]
$db.Server
For getting SharePoint connection string
$db.DatabaseConnectionString

			

Add Comment