Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

This question appears to be off-topic. The users who voted to close gave this specific reason:

"Shopping list question - questions about which tool, library, product or resource you should use are off-topic here because they quickly become obsolete and often are just about the preferences of the answerer. If you have an issue with or a question about a specific tool, please revise your question to conform to that scope." – dezso, Max Vernon, Paul White, Colin 't Hart, RolandoMySQLDBA

I found tsql and while its main purpose may lie elsewhere it covers my needs.

It is included in the EPEL package. I installed it with this:rpm -Uvh http://ftp.df.lth.se/pub/fedora-epel/6/x86_64/epel-release-6-7.noarch.rpm

FreeTDS(May 14, 2011) FreeTDS(May 14, 2011)
NAME
tsql - utility to test FreeTDS connections and queries
SYNOPSIS
tsql { -S servername [-I interface] | -H hostname -p port }
-U username [-P password] [-o options]
tsql -C
DESCRIPTION
tsql is a diagnostic tool provided as part of FreeTDS. It uses the TDS protocol directly to con-
nect to Sybase or Microsoft SQL Servers, and allows the user to issue queries that test the capa-
bilities of FreeTDS.
tsql is *not* a replacement for a complete isql, such as sqsh (www.sqsh.org). It is designed to
rely on the lowest level FreeTDS library, tdslib, as a way to isolate potential bugs in the proto-
col implementation.

Microsoft make a SQL Server ODBC driver for Linux, although it's binary only and only runs on certain 64 bit RHEL builds.1 Anything that can consumbe ODBC (through the unixODBC driver suite) can use it. For scripting, you could use python, perl, or anything that plays with unixODBC to automate tasks.

The package also comes with versions of bcp and sqlcmd. Sqlcmd will support interactive querying or allow queries to be embedded in shell scripts.

Although you can bring it up on other builds by installing the relevant libraries - a process well known to people bringing Oracle up on Linux.