如何将 sql server 2008 R2 与 windows store 应用程序连接 [英] how to connect sql server 2008 R2 with windows store application

查看:34
本文介绍了如何将 sql server 2008 R2 与 windows store 应用程序连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个 windows store 应用程序,我需要将我的应用程序与 sql server 2008 R2 Db 连接,一些 sql 类在 WinRT API 中不起作用,请任何人建议我并告诉我我可以使用哪个 RDBMS用于连接.

I am currently developing a windows store application, I need to connect my app with sql server 2008 R2 Db, some sql classes are not working in the WinRT API, please any one suggest me on this and tell me which RDBMS I can use to connect with.

谢谢

推荐答案

你不能.原因是你不能对商店应用设置这种限制,你不应该依赖可用的外部数据库.

You can't. The reason being that you can't put that kind of restriction on a store app, you should have no dependancy on an external database being available.

但是您可以使用 sqlite,这里有一个指南:http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx

You can use sqlite however, and here is a guide: http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx

如果您想连接到数据库以从中提取数据(例如作为企业应用),那么您可以使用网络服务作为数据库的包装器.

If you are wanting to connect to a database to pull data from it (as an enterprise app for example) then you can use web services as a wrapper around the database.

这篇关于如何将 sql server 2008 R2 与 windows store 应用程序连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆