I’d like to have a console window inside SSMS where I can run quickly a query to see what columns are in a specific table or test a query before writing it into a script and such things.
There are some addons for Visual Studio that provide cmd or powershell consoles where one can run commands. That’s what I need in SSMS for SQL.
It’d be nice if that console would understand sql directly but I’d also be glad to have a powershell window embedded in SSMS if there’s no other solution.
One trick that I like to use the default keyboard shortcut of Alt+F1 for sp_help. If you highlight a table name in a query window and hit that shortcut, it’ll run sp_help with the table name as a parameter. This will give you all sorts of information on the table (columns, indexes, constraints).