Is there a command line interface where I can run a script that says, for example:
Connect to server a
Run query 1
Connect to server b
Run query 2
Run query 3
I tried searching online but couldnt find anything built into SQL Server Management Studio.
Thanks!
The sqlcmd Utility
http://msdn.microsoft.com/en-us/library/ms162773.aspx
It usually ships with the SQL Server installer and is located in the following directory by default: