views:

82

answers:

2

I have a dilemma. Here is my set-up: ASP.NET/NET 3.5 web application build using standards(DB layers, BL layers, etc...)

I need to generate some reports. Standard way of doing that is to have reporting service query database directly OR I can have reporting services query web services(which I will create).

I like web services approach because if underlying schema changes, I only need to make sure that my web services return correct data. Reporting services are not affected.

If using direct query to the database, reporting services need to be updated.

Should I use web services(http://msdn.microsoft.com/en-us/library/aa964129(SQL.90).aspx) or direct queries?

A: 

I think a better approach would be (if possible) to use services as your API for both (application and reporting services). That would keep the code/logic in a central spot as well as accomplish your goals on the reporting services.

Cody C
+2  A: 

Using a web service makes maintenance easier. The performance will suffer some but to what extent is relative to your hardware, database design, queries, etc... I would use the web service as this is the way Adobe Flex applications are suppose to do it and Microsoft WCF seems to be pointing DotNet developers in the direction of web service data sources.

Another benefit is that you can use multiple clients with the same service.

Todd Moses