Skip to content

Instantly share code, notes, and snippets.

@MartinMiles
Last active April 1, 2019 17:51
Show Gist options
  • Save MartinMiles/6a98d63d8adacec4e7cd5cb30ee06508 to your computer and use it in GitHub Desktop.
Save MartinMiles/6a98d63d8adacec4e7cd5cb30ee06508 to your computer and use it in GitHub Desktop.
PowerShell
Invoke-Sqlcmd -ServerInstance "." `
-Username "sa" `
-Password "SA_PASSWORD" `
-Query "SELECT GETDATE() AS TimeOfQuery"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment