Answered by:
[W8.1]How to connect WCF Service to windows store app (windows 8.1)

Question
-
how I connect my windows store app to WCF service and how to retrieve data from
Sql Server Database
C#
Plz help
- Edited by Amy PengMicrosoft employee, Owner Tuesday, November 17, 2015 3:11 AM add tag
Answers
-
Hi PrathameshShende,
Welcome to the Developing Universal Windows apps forum!
As a friendly reminder please make sure to add the appropriate tags to the title of your post as per Guide to posting: subject line tags
The following code sample is also a good sample that has showed us the detailed information about how to access data from SQL Server database in Windows Store app using the WCF, it's worth a look:
https://code.msdn.microsoft.com/windowsapps/How-to-access-data-from-f11ef8df .
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Edited by Amy PengMicrosoft employee, Owner Tuesday, November 17, 2015 3:11 AM
- Proposed as answer by Mortene Nielsen Tuesday, November 17, 2015 3:16 AM
- Marked as answer by Amy PengMicrosoft employee, Owner Wednesday, November 25, 2015 11:25 AM
-
I think this sample can help you.
https://code.msdn.microsoft.com/windowsapps/Connect-Windows-8-Store-f9652c36
More details about accessing WCF Service with a Windows Store client app.
https://msdn.microsoft.com/en-us/library/hh556233(v=vs.110).aspx
Windows Mobile Developer & Tester
- Proposed as answer by Amy PengMicrosoft employee, Owner Tuesday, November 17, 2015 3:11 AM
- Marked as answer by Amy PengMicrosoft employee, Owner Wednesday, November 25, 2015 11:25 AM
All replies
-
I think this sample can help you.
https://code.msdn.microsoft.com/windowsapps/Connect-Windows-8-Store-f9652c36
More details about accessing WCF Service with a Windows Store client app.
https://msdn.microsoft.com/en-us/library/hh556233(v=vs.110).aspx
Windows Mobile Developer & Tester
- Proposed as answer by Amy PengMicrosoft employee, Owner Tuesday, November 17, 2015 3:11 AM
- Marked as answer by Amy PengMicrosoft employee, Owner Wednesday, November 25, 2015 11:25 AM
-
Hi PrathameshShende,
Welcome to the Developing Universal Windows apps forum!
As a friendly reminder please make sure to add the appropriate tags to the title of your post as per Guide to posting: subject line tags
The following code sample is also a good sample that has showed us the detailed information about how to access data from SQL Server database in Windows Store app using the WCF, it's worth a look:
https://code.msdn.microsoft.com/windowsapps/How-to-access-data-from-f11ef8df .
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Edited by Amy PengMicrosoft employee, Owner Tuesday, November 17, 2015 3:11 AM
- Proposed as answer by Mortene Nielsen Tuesday, November 17, 2015 3:16 AM
- Marked as answer by Amy PengMicrosoft employee, Owner Wednesday, November 25, 2015 11:25 AM
-
okay thank you sir that helps me. But the query that I write in the WCF so how can I change it and add where clause that can work on any string or interger so that I can access data means a particular row . I don't want to give input like this "select * from table where id=3"
I want to give input like this "select * from table where id='"+UserID+"'"
it is possible ....???