[Solved] Get the users associated with Database
function SQL-Get-Logins { <# .SYNOPSIS Returns a list of SQL Server logins defined on the specified server/instance. .DESCRIPTION This function returns a complete list of all logins defined for the specified server/instance, including the login type, the default database, and the server role. .PARAMETER server The computer hosting SQL Server. .PARAMETER instance The instance to … Read more