Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For a task such as updating the SQL Database, what are the performance and re-usability trade-offs between the two approaches mentioned below?

1. WCF Service for "update the SQL tables" task. And then calling it from ASP.Net Web Application.
2. "Updating the SQL" table using ADO.Net from ASP.Net Web Application code-behind.

I'm looking for an analysis on user and implementation point of view.
Please note that the activity is one time per user. Also, we are looking for a solution which can be re-used.

I know this is more of a debate than asking for a solution, but appreciate the responses.

Cheers,
Naman
Posted

1 solution

Quote:
Database, what are the performance and re-usability trade-offs between the two approaches mentioned below?

1. WCF Service for "update the SQL tables" task. And then calling it from ASP.Net Web Application.
2. "Updating the SQL" table using ADO.Net from ASP.Net Web Application code-behind.
Go with 1st option.
0) By using Webservice(WCF), you could reuse the same things when end-user/you want to go with other targets(like Winform, WPF/Silverlight, etc.,). There's no need to rewrite things. All you have to do is call the service, that's it.
1) Easy deployment things
2) You could optimize your services too[^]
3) Consider you have written some code in your code-behind, what'll you do if you want to call the samething from multiple pages/projects? Copy-paste on multiple places?X| Here Webservice rocks, just call the service URL.
4) And you could secure things(restrict-others to use methods) by implementing authentication +/ authorization at service level.
5) There're more .... just Google for webservice/wcf advantages.
 
Share this answer
 

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