# sqsh

# References

The problem can be to find a SQL client compatible with old versions of MS SQL on Linux. Lot of SQL clients that are compatible with MS SQL are in fact compatible with MS SQL Server 2005+ but not 2003/2000. Here sqsh comes to the rescue.

# Example of execution

Connect to shell (one time)

$ sqsh -U sa -P password -S -D mydb
sqsh- Copyright (C) 1995-2001 Scott C. Gray
Portions Copyright (C) 2004-2014 Michael Peppler and Martin Wesdorp
This is free software with ABSOLUTELY NO WARRANTY
For more information type '\warranty'

Pretty output go -m pretty.

Alternatively it is possible to not use any option and configure freetds.conf and ~/.sqshrc but is far less handy/versatile: https://www.adampalmer.me/iodigitalsec/2013/08/10/accessing-and-hacking-mssql-from-backtrack-linux/