Created
June 7, 2019 14:03
-
-
Save caveatlector/9de6fe96d711c10f7d69788ce8c6543b to your computer and use it in GitHub Desktop.
sqlcmd: test connection via getdate()
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
#!/usr/bin/env bash | |
# Requires: sqlcmd | |
IP= | |
sqlcmd -S tcp:${IP},1433 -Q "select getdate()" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment