AnalogX SQLCMD is a simple way to run SQL queries from a batch file, or have a command line based SQL query tool. It allows you to specify a database, username and password (if necessary), and a SQL query you wish to perform. The results are either output to the screen, or alternatively output into a log file that you specify.