echo off
cls
sqlcmd.exe -S "your server name" -U "sql user name" -P "sql password" -d "name of databse" -Q "here you may write your query/stored procedure"
Batch files like these can be used to automate tasks, for example to make backups of ...