Please help me in this….
There are few databases DB1,DB2,DB3,DB4,DB5….
each database has same tables T1,T2,T3…..Tn. (each table has same columns C1, C2, C3……Cn… but data in those tables are different)
Requirement: query: select C1, C2, C3 from T1 inner join T2 on T1.C4 = T2.C4
the query will be same for all databases.
First step is to create drop down menu for Databases DB1, DB2, DB3, DB4, DB5
Then select one or more databases after that the query should run for selected database or databeses.
What source should I select and how to create dataset for them?
Your datasource could be ANY of the databases, the master db, or a newly created database called say “DBA”. Then after you have the source you’d create a stored procedure that would fill up your drop down list with database names:
select name from master..sysdatabasesA dataset in reporting services is simply either table direct or stored procedure. In your case, you should make that a stored procedure that pulls the names of all the databases.
A datasource in RS means where you are going to pull the data, in reality this doesnt matter because you can access any data from any database including linked servers. In the case of another database simply use the database name.owner.table name.