# sqlcmd # list databases select name from sys.databases # list tables select * from INFORMATION_SCHEMA.TABLES; # describe table exec sp_columns {table}