#PSTip Validate if a SQL login exists using PowerShell
Note: This tip requires PowerShell 3.0 or above. Before performing tasks like adding roles to a SQL login, it is desired to validate the existence of SQL login.
Read MoreNote: This tip requires PowerShell 3.0 or above. Before performing tasks like adding roles to a SQL login, it is desired to validate the existence of SQL login.
Read MoreNote: This tip requires PowerShell 2.0 or above. We can use SQL Server SMO object to add a SQL login to the database roles.
Read MoreI was looking at way to retrieve the SQL instance names on a remote computer without using SQL SMO. This is essential for me as I don’t always expect to have the SQL SMO DLLs on the computer where I run my scripts.
Read MoreNote: This tip requires PowerShell 2.0 or above. In an earlier tip, we looked at how we can retrieve the active connection count for a SQL database.
Read MoreNote: This tip requires PowerShell 2.0 or above. Database mirroring requires that the database be in Full recovery model as a prerequisite to configure mirroring.
Read MoreNote: This tip requires PowerShell 2.0 or above. In earlier tips, we looked at how we can get all SQL endpoints, check if a SQL endpoint exists or not, and creating SQL mirroring endpoints.
Read More