mardi 4 août 2015

How to run single select statement across all the databases in the same schema

I need to run a simple select statement across all the databases in the schema(SQL Server). I have around 30-40 databases. This table has same structure in all the databases.

select * from table1 where condition

Can you please let me know how to get the records from all databases??



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire