Does anyone know if there is an add-in or is there a place where you can save frequently used SQL queries besides keyboard shortcuts? I would like to save a query like this to my Favorites so that I can refer to it when I need it. I would like to change the Where criteria for c.name LIKE '%%'
. That is why keyboard shortcuts will not work.
PS: I do not have SA or administrator rights in my database.
SELECT t.name AS table_name, SCHEMA_NAME(schema_id) AS schema_name, c.name AS column_name FROM sys.tables AS t INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID WHERE c.name LIKE '%%' ORDER BY schema_name, table_name;
source share