#PSTip Multiple variable assignments
In the previous tip I showed how we can use multiple assignments to swap the value of two or more variable values.
Read MoreIn the previous tip I showed how we can use multiple assignments to swap the value of two or more variable values.
Read MoreIn most programming languages the conventional way to swap the value of two variable is to use a third variable.
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. I have scripts that work with multiple versions of the same third-party .
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. As a part of SQL SMO automation, when we want to detach or delete databases, we might want to first drop all active database connections.
Read More