HaveTrouble
Programmer
Each customer has one database in my system. Customer can login from a front-end ASP site to view data in their database. Now I want to setup a "super login" who can view the data in all databases. Some of the reports will need to pull the data from multiple databases. What's the best way to achieve this ? All I can think of is construct the query like:
select * from mydb1.dbo.mytable
union
select * from mydb2.dbo.mytable
union
select * from mydb3.dbo.mytable
Is there any better way to do it ? In addition to pulling report, the "super login" user needs to update data too. Please help.
select * from mydb1.dbo.mytable
union
select * from mydb2.dbo.mytable
union
select * from mydb3.dbo.mytable
Is there any better way to do it ? In addition to pulling report, the "super login" user needs to update data too. Please help.