How can I find all database objects in a given database using an object name? We prefix all site specific tables, views, indexes, functions, constraints etc. with a constant string. I need to find all objects with names starting with that string.
+4
A:
Assuming you have the right permissions:
SELECT *
FROM database.sys.all_objects
WHERE upper(name) like upper('my prefix%') --use UPPER for case-INsensitivity
JosephStyons
2009-03-12 18:29:55
Perfect. Thanks!
ProfK
2009-03-12 19:04:59