PowerShell – Outputting a SQL Server Query result from the Message Tab

Quick interesting one today, it’s come about as i was writing a script to export all the results from sp_help_revlogin, if you’ve used this before you know that it doesn’t write anything to a table. it writes everything to a PRINT statement. like below:

Read More