I'm developing a ASP.NET web application that displays some SSRS reports. My application's database is located in a different server from my report's database, considering that reports consume data from both servers there's a linked server in report database server to application's server.
In one of dataset reports I have a query as bellow:
SELECT T.column1, T1.column2
FROM localTable T
JOIN [linkedServer].[databasename].tablename T1 ON T.id = T1.id
There's only 3 reports, so it was ok to replicate [linkedServer].[databasename] when i changed the application to another environment.
My question is: what's the best way to parameterize [linkedServer].[databasename] in order not to need replace all occurrences every time the server and/or database names change?
ssrs
parameters and if query then you can directly incorporatessrs
parameters in that query