Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey, guys.

I'm working on reports locally, pointing to one Sql Server database. However, when I deploy the reports, they need to point to a different db.

With a .net website, I can specify a ConnectionStrings.config file in web.config, which is an easy way to point to different databases. I'd love to find a similar method for report data sources, or any other solution to the problem.

Currently, when I deploy, the guy on the other end has to remember that he must go into the datasource and change it to point to his db (and this doesn't always happen).

Any suggestions on how to solve this problem?

Thanks,

Chris
Posted

Well, use a shared datasource that will be configured on the report server.

This way it would be something equivalent to the .NET website config connectionstring scenario.

One would just need to go ahead and change the connection property of the shared datasource hosted on reportserver. Use the shared datasource in all the report. Thus no change would be required in your reports. One change and it will work.
 
Share this answer
 
Comments
Christopher Duncan 14-Jul-10 11:04am    
Reason for my vote of 1
Databases are not in common environment, but thanks!
Sandeep Mewara 14-Jul-10 14:48pm    
Thanks for the 1 vote. But I think, based on what you said my point/direction was not wrong. If you forget/neglect to mention certain things then how we are suppose to know them?
But thanks!
Thanks for the help, but I neglected to mention that my dev database and the production database are not in the same environment. Mine is on the Internet via my ISP, the production db is inside a corporate intranet not accessible to the outside world.
 
Share this answer
 
Comments
Sandeep Mewara 14-Jul-10 14:47pm    
Reason for my vote of 1
Well, this is not an answer! You should use 'Improve Question' link to edit/update your question with more details.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900