Skip to content

Instantly share code, notes, and snippets.

@warrenbuckley
Last active February 14, 2017 14:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warrenbuckley/a486d50d39024415001d to your computer and use it in GitHub Desktop.
Save warrenbuckley/a486d50d39024415001d to your computer and use it in GitHub Desktop.
/*
SQL CMD
-S Server Name
-U Username
-P MyPassword
-d Datbase file to excute SQL script against
-i SQL file to excute
-x Super magic switch that managed to get SQL to run when it bombed first time
*/
sqlcmd -S "200.200.200.200" -U "fooBar" -P MyPassword" -d "databaseToExcuteSQLAgainst" -i c:\some\path\to-SQL-file.sql -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment