FreeTDS?

Have a hard time getting applescript to send commands to FreeTDS for a MS SQL connection. I can get the connection established but can’t seem to send a SQL statement within the same do shell script.