SQL Server Compact 3.5数据库 [英] SQL Server Compact 3.5 Database

查看:145
本文介绍了SQL Server Compact 3.5数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在编写要求我使用数据库的代码.我决定使用sql server compact 3.5数据库,但是无法将其与我的应用程序链接起来.
请,有人可以帮助我第一如何以及如何输入连接字符串(对于Windows窗体应用程序)以及如何与数据库连接.

在此先感谢.

Hi All,

I''m writing a code that requires me to use a database. I decided to use sql server compact 3.5 database but can''t link it up with my application.
Please, can someone help me with 1st how to and were to input the connection string(for a windows form application) and how to connect with the database.

Thanks in Advance.

推荐答案

尝试:
SqlCEConnection con = new SqlCEConnection(myConnectionString);
con.Open();
SqlCECommand com = new SqlCECOmmand("INSERT INTO myTable (myColumn1, myColumn2) VALUES (myColumn1Value, myColumn2Value)", con);
...


这篇关于SQL Server Compact 3.5数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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