Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
New Lines Copy Out Basic
$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