mssql union

If it’s MSSQL USE [DBNAME]; SELECT * FROM sys.Tables; I think. You might be able to do DBNAME.sys.Tables but I haven’t tested it so can’t say for sure.