title: Replace isql with sqsh in emacs (Ubuntu)
body: <p>Using emacs on Ubuntu 11.10. I want to connect to a SQL Server database using sqsh instead of isql. I added the following to my initi.el</p>
  
  <pre><code>(set 'sql-sybase-program "sqsh")
  (set 'sql-ms-program "sqsh")
  </code></pre>
  
  <p>It recompiles and loads successfully. However, when I use sql-ms and try to connect to the database, I am getting errors because emacs is using lower-case command parameters when it should be using upper-case command parameters. Furthermore, I can successfully connect to the database server using sqsh from the command line. When I try to run things within emacs, I get the following error:</p>
  
  <pre><code>sqsh: -d: Invalid integer expression
  
  Process SQL exited abnormally with code 255
  </code></pre>
  
  <p>I did a pretty extensive Google search and I can't find much on how to do this (which makes me think it may not be possible). Obviously, I can run sqsh from within a shell, but then I lose the SQL mode integration. I'm not sure what I can / need to do to my init.el file to make this possible. </p>
  
  <p>I think all I really need to do is figure out how to get emacs to send a -D not a -d to sqsh. Apparently isql doesn't care, but sqsh cares deeply about the difference.</p>