Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Silverlight
i want example code for connection sql server in silverlight application.
Posted 21-Mar-11 20:08pm
Comments
n1tehawkz at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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[^]
  Permalink  
v2
Comments
RaviRanjankr at 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 at 8-Aug-11 4:10am
   
thanks...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

you will need to make use of WCF service for database connection in silverlight
 
google for Silverlight + WCF Service Sample
 
-Sagar Solanki
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 520
1 Maciej Los 290
2 Richard MacCutchan 265
3 BillWoodruff 265
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,764
1 Sergey Alexandrovich Kryukov 7,437
2 DamithSL 5,639
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411028.1 | Last Updated 26 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100