简体   繁体   English

Northwind.sdf的连接字符串

[英]Connection string for the Northwind.sdf

I am making a small Windows application using Visual Studio 2010 and SQL server compact edition 3.5. 我正在使用Visual Studio 2010和SQL Server精简版3.5制作一个小型Windows应用程序。 I want to access Northwind.sdf database in my application but I am unable to make the connection string. 我想在我的应用程序中访问Northwind.sdf数据库,但无法建立连接字符串。

I have copied the database in my application as well as in the debug folder as I am trying to run application in debug mode. 我试图在调试模式下运行应用程序时,已在应用程序以及调试文件夹中复制了数据库。

Well you have got to give us a bit more than that. 好吧,您必须给我们更多。 First of all are you trying to connect to the database using SqlConnetion or SqlCeConnection? 首先,您是否尝试使用SqlConnetion或SqlCeConnection连接到数据库? Secondly, are you sure that path or you database is correct? 其次,您确定路径或数据库正确吗? You may also referre to the links below for more info. 您也可以参考下面的链接以获取更多信息。

Sql Compact 2008 Connection string Problem SQL Compact 2008连接字符串问题

Sql Compact Connection String SQL Compact连接字符串

If you want any further help try to post the code you have done so far. 如果您需要其他帮助,请尝试发布到目前为止已完成的代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM