Answered by:
Windows Store App Login

Question
-
loginQuery = "SELECT count(*) FROM Accounts WHERE username = '" + txtUsername.Text + "' AND passcode = '" + pboxPasscode.Password + "';";
Hey guys,
I have a Windows Store App and it throws an exception on:
count = dbConnect.Execute(loginRecordsCount);
The table definitions are fine and everything else appears to work, any suggestions?
Saturday, November 23, 2013 10:12 AM
Answers
-
Hi,
The Sql database contain in your local computer or cloud?
If the Sql database contain in your local computer, you do not have access to it
in windows store app.I recommend you can use SQLite instead of it or consider Windows Azure Mobile
Services to access to remote data.See the link below:
http://msdn.microsoft.com/en-us/library/windows/apps/dn263252.aspx
Best Wishes!
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. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.Monday, November 25, 2013 3:45 AM -
If it a Sql server data base in the cloud "your own server"
you have to provide the sql query through web services and make the windows store application read from this service.
thanks
Amr
- Marked as answer by Anne Jing Thursday, November 28, 2013 7:39 AM
Monday, November 25, 2013 7:01 AM
All replies
-
Hi DGrasso,
I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C#. I will move your question to windows store app forum(http://social.msdn.microsoft.com/Forums/en-US/home?forum=winappswithcsharp). Thanks for your understanding.
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.Monday, November 25, 2013 2:26 AM -
Hi,
The Sql database contain in your local computer or cloud?
If the Sql database contain in your local computer, you do not have access to it
in windows store app.I recommend you can use SQLite instead of it or consider Windows Azure Mobile
Services to access to remote data.See the link below:
http://msdn.microsoft.com/en-us/library/windows/apps/dn263252.aspx
Best Wishes!
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. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.Monday, November 25, 2013 3:45 AM -
If it a Sql server data base in the cloud "your own server"
you have to provide the sql query through web services and make the windows store application read from this service.
thanks
Amr
- Marked as answer by Anne Jing Thursday, November 28, 2013 7:39 AM
Monday, November 25, 2013 7:01 AM