Created
July 19, 2017 15:50
-
-
Save shaneis/a11bb36bdf762fa260e9b189517b9478 to your computer and use it in GitHub Desktop.
New Lines Copy Out Basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$NewLineQuery = 'SELECT Notes FROM dbo.NewLineNotes' | |
$InvSQLParams = @{ | |
ServerInstance = 'localhost\SQLSERVER2K16' | |
Database = 'Pantheon' | |
Query = $NewLineQuery | |
} | |
Invoke-Sqlcmd @InvSQLParams | | |
Select-Object -ExpandProperty Notes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment