Skip to content

Instantly share code, notes, and snippets.

@Checksum
Created April 9, 2019 00:53
Show Gist options
  • Save Checksum/6675ef0dbeed9e63abe07e131a430cea to your computer and use it in GitHub Desktop.
Save Checksum/6675ef0dbeed9e63abe07e131a430cea to your computer and use it in GitHub Desktop.
sqlcmd cheat sheet
-- type 'go' to execute the block
-- List all tables
1> select * from information_schema.tables;
-- Describe table
1> exec sp_columns table_name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment