c#连接Sqlite数据库问题
我用sqliteadmin建了一个数据库test.sdb,可是怎么也打不开提示如下错误:File opened that is not a database file
file is encrypted or is not a database。
我的连接字符串如下楼上的可不可以帮我看看
System.Data.SQLite.SQLiteConnection conn =new System.Data.SQLite.SQLiteConnection();
System.Data.SQLite.SQLiteConnectionStringBuilder connstr
= new System.Data.SQLite.SQLiteConnectionStringBuilder();
connstr.DataSource = datasource;
connstr.Password = "admin";//设置密码,SQLite ADO.NET实现了数据库密码保护
conn.ConnectionString = connstr.ToString();
conn.Open();
string datasource = @"e:\data\test.sdb";
有没有人啊,我现在可以在程序中建一个.sdb的数据库也可以向里写东西。可是用Sqlite Administrator却打不开出现提示:qAdmin:cannot perfrom this operation on a closed data test ,有没有高手知道是什么问题吗
相关问答:
如题
只有100分给了。。。
哪个行业?
我想网上的源码肯定不能完全满足个人想法
最后还得自己整
推荐一款自助建站软件:风讯
C#+SQL
可以设计出比较灵活的网站
什么行业啊....
到51aspx.co ......
在数据库中有张表,有id,name两列,id 是主键,没有设置自增属性,在程序中取出这张表放入datatable,在这个datatable中插入一条记录,当更新数据库时提示id列不能为空,请问该怎么解决?
给它一个值!!主键不能为空 ......
如题:
C# code:
MySQLConnection con = new MySQLConnection( new MySQLConnectionString("localhost","beephpcms","root","root").AsString);
try
......
在C#中怎么把一个Excel保存成为一个Html文件?
如同在Excel中 文件——保存为——格式选为html 生成的文件 及文件夹(在多张sheet 时)
引用
excelapp.Workbooks[1].PublishObjects ......
急用。联系QQ:8775262,谢谢。
需要进行DllImport的地方直接写DLLImport.方法名。
如:DLLImport.GlobalAddAtom(……);
文件:UShare.pas
Delphi(Pascal) code:
unit UShare;
interface
uses Windows, Me ......