Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
i want example code for connection sql server in silverlight application.
Posted
Comments
CodeHawkz 22-Mar-11 3:05am    
All out of jokes. No one here will 'give' what you 'want'. I believe all you have to do is Google :) CodeProject helps developers those who are stuck, not who are lazy.

Do some work. Get back to us with your problem. Show us what you have tried and failed. Am sure everyone here will be more than happy to help you

Silverlight does not connect to the database directly. It uses WCF to talk to the database.

Read about basics of Silverlight here: An Introduction to Silverlight[^]

For examples and samples look here: Google result for Silverlight[^]

Try!
 
Share this answer
 
Silverlight includes a WCF Data Services client library that enables you to access data from any service that exposes an Open Data Protocol (OData) feed.
Reference Link :- MSDN-[WCF Data Services (Silverlight)][^]
You can also take a look at this-[Database Operation with Silverlight][^] article
 
Share this answer
 
first go and check this link. you have elaborate description for each steps with

source code to download.check it out here.

http://swayingtheworld.blogspot.com/2011/08/accessing-databases-in-silverlight.html[^]
 
Share this answer
 
v2
Comments
RaviRanjanKr 4-Aug-11 8:14am    
Always Convert "url" to "hyperlink" with optional New Window link. its give user to more readability and accessibility. and Never use any short form words as "U" instead of "you". in your answer.
aslanshiva 8-Aug-11 4:10am    
thanks...
you will need to make use of WCF service for database connection in silverlight

google for Silverlight + WCF Service Sample

-Sagar Solanki
 
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