通过ODBC连接连接到SQL Server CE连接到、ODBC、SQL、CE

由网友(要么爱要么滚)分享简介:我有一个使用OdbcConnection类连接到Oracle和SQL Server的应用程序。伟大工程。但我writng一些测试,并希望连接到SQL即成CE,它内置在VS2010。使用连接字符串是什么?这种失败:数据源= Testing.sdf解决方案 没有ODBC提供了SQL CE所以没有那种连接字符串会为你工作。要...

我有一个使用OdbcConnection类连接到Oracle和SQL Server的应用程序。伟大工程。但我writng一些测试,并希望连接到SQL即成CE,它内置在VS2010。使用连接字符串是什么?这种失败:

 数据源= Testing.sdf
 

解决方案

没有ODBC提供了SQL CE所以没有那种连接字符串会为你工作。要连接到SQL CE,你需要为使用 OLE DB 或管理界面

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
SQL SERVER 无法连接ODBC数据库

解决方案

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.

阅读全文

相关推荐

最新文章