I have a simply query but want it to run across all databases without having to union all. I would like a column that also shows the Database Name as well, so i know which company the query results came from
Here is the query:
select vendor_id, U_EXPDATE
from vendor
where u_expdate >= convert(varchar(10), getdate() - 60, 121)
order by vendor_id