vpnsol123
asked on
SQL Query against multiple databases
I need to write a query, that will be used as a view to select all columns from the same named table in each of my databases into a single result panel.
ASKER
Thank you for the above. What I am looking to do is to write a single query the will read the database names out of the sys_databases table and run the query against each of them. Sorry, that was not clear at all in my initial post.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
See this link for more info... https://docs.microsoft.com/en-us/sql/t-sql/language-elements/transact-sql-syntax-conventions-transact-sql