Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could any one tell me the advantages of using WCF Service or web service to pull data from data base.

Any examples would be really great.
Posted

1 solution

When the server running the WCF service has access to the database and the client doesn't.

Generally it's safer to put a layer between the unwashed masses of clients and the ivory tower of your database. Putting a web service between them gives you more options for controlling access and controlling what gets passed between the client and the database (for example, you can make sure the client never gets to send a SQL query directly to the database).

Also it can be easier if you need to change stuff on the database without changing the client.

Not to say you can achieve a lot of the same goals with just the database alone, but your mileage may vary.
 
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