title: How can I use MS SQL Server from the Mac OS X Terminal?
body: <p>I use a Mac to develop web apps. Our runtime is Java, our web server is Jetty, and our IDE is Eclipse. So our whole stack can be used from Mac and Windows natively … with the exception of our database, which is MS SQL Server (ranging from 2000 to 2008 depending on the application). I want a Unix command-line client for MS SQL Server.</p>
  
  <p>I don't like any of the <a href="https://stackoverflow.com/questions/3452/sql-client-for-mac-os-x-that-works-with-ms-sql-server">OS X GUI clients for SQL Server</a> – I find them tedious and not very Mac-like – so for the time being I use SQL Server 2008 Management Studio, on Windows XP, via VMWare Fusion. But it's still a huge pain to launch and quit, it eats up my RAM while it's running, and it poisons my Time Machine backups by altering several 2GB files on disk every time I use it.</p>
  
  <p>I like how MySQL can be used from the command line, so that seems like a great way to quickly get to my database and investigate a bug or add some test data. If only I could use SQL Server that way! Short of implementing a command line client myself using straight JDBC, there anything out there that makes this possible?</p>