I have a system with multiple databases. All databases are at one SQL Server instance. I am trying to find a table (like) some name, but don't know the exact name and where it exists in all databases. Code below is what I am currently using but I have to be changing the database name in each instance. any way i can have it step through all, and if I could provide a specific table name
USE your_database
SELECT name FROM sys.tables