通过ODBC连接连接到SQL Server CE [英] Connecting to Sql Server CE via ODBC Connection

查看:141
本文介绍了通过ODBC连接连接到SQL Server 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

解决方案

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.

这篇关于通过ODBC连接连接到SQL Server CE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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