Connecting to Sql Server CE via ODBC Connection

杀马特。学长 韩版系。学妹 提交于 2020-01-15 15:14:27

问题


I have an app that uses the OdbcConnection classes to connect to Oracle and Sql Server. Works great. But I'm writng some tests and want to connect to Sql Serve CE, which is built into VS2010. What is the connection string to use? This fails:

Data Source=Testing.sdf

回答1:


There is no ODBC provider for SQL CE so no kind of connection string will work for you. To connect to SQL CE you'll need to use either OLE DB or the managed interface.



来源:https://stackoverflow.com/questions/7210870/connecting-to-sql-server-ce-via-odbc-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!