#
msssqlclient.py
Great for enumerating/attacking SQL server. This article was very helpful in putting together this cheat sheet.
#
Basic command to connect to a SQL server
mssqlclient.py user@host -port 123
#
Enum logins
enum_logins
#
Enumerate impersonation values
enum_impersonate
#
Enumerate linked SQL servers
enum_links