c# + sqlite ³ö´í£¡£¡£¡ - .NET¼¼Êõ / C#
c# + sqlite ³ö´í£¡£¡£¡
File opened that is not a database file
file is encrypted or is not a database
ºÍÒÔÇ°Ò»ÑùµÄд£¬ÔõôÕâ´Î¾ÍÊDz»Ðа¡£¡£¡£¡
ÎÒ¿ì²»ÐÐÁË£¬´ó¼Ò°ï°ïÎÒ°¡£¡£¡£¡
¼û¹ýһƪÎÄÕÂÊÇ˵Õâ¸ö
´íÎóºÃÏñÊÇ°ÑÃÜÂëÈ¥µôµÄÔÒò£¬½â¾ö·½°¸ÈçÏ£º
1. ¿ÉÒÔʹÓÃSQLiteConnectionStringBuilderÀ๹½¨Á´½Ó×Ö·û´®£¬È»ºóת»»Îªstring¸³¸øSQLiteConnectionµÄConnectionStringÊôÐÔ£¬ÃÜÂëûÓоͱðд³É¡±¡±ÁË¡£
2. ÔÚ¹¹ÔìSQLiteConnectionʱֱ½ÓÓÃÁ¬½Ó×Ö·û´®£¬¸ñʽΪ¡±Data Source=xxx;Password=xxx¡±;ÆäÖÐÃÜÂ벿·Ö¿ÉÒÔÔÚsetPassword·½·¨ÖÐÉèÖá£
3. ÐÞ¸ÄÃÜÂëʹÓÃSQLiteConnectionµÄchangePassword·½·¨£¬ÐèÔÚÊý¾Ý¿â´ò¿ªÖ®ºó¡£
ÕûÎÄÈçÏ£º
Á¬½Ó²¿·ÖÉîÈë²âÊÔ
ÏÖÔÚÀ´µã×Ô¼ºµÄ²âÊÔ¡£Õâ´Î¾Í²»ÄÜÔÙ´´½¨Êý¾Ý¿âÁË°É£¬±ð°Ñ¸Õ²ÅµÄ¸ø¸ÇÁË¡£ºÃµÄ£¬¿ªÊ¼£¬°Ñ´´½¨Êý¾Ý¿âÎļþºÍÌí¼Ó±íÄÇÒ»²¿·Öɾ³ý¡£ÏÈÖ±½ÓÔËÐУ¬ÓÐËÄÌõ¼Ç¼ÁË¡£ËµÃ÷ÎļþÁ¬½ÓÕý³££¬ÒѾÆðµ½´æ´¢µÄ×÷ÓÃÁË¡£
Ñо¿Ò»ÏÂSQLiteConnectionµÄÏà¹ØÄÚÈÝ¡£
Ê×ÏÈÊÇËüÄǼ¸¸ö¹¹Ô캯Êý¡£¸´ÖÆÁ¬½ÓÄǸö¾Í²»¹ÜÁË£¬¿´ËüʣϵÄÄǸö¹¹Ô캯Êý°É£¬¿´¿´ÊÇʲô¸ñʽ¡£¿ñÊÔ×ÔÈ»²»ÐУ¬µ¥²½µ÷ÊÔ°É£¬²»ÊÇÓÐÒ»²½ÊÇ°Ñconnsb£¨SQLiteConnectionStringBuilder£©µÄֵת»»Îªstringºó¸³Öµ¸øconn£¨SQLiteConnection£©Â𣬿´¿´connsbµÄÖµ£¬·¢ÏÖÁË£¬ÊÇ¡±Data Source=sqlitetest.db;Password=acen¡±,Ó¦¸Ã¾ÍÊÇÕâ¸öÁË£¬ÊÔÊÔ¡£²âÊÔͨ¹ý£¬ÄÇô°ÑÃÜÂëÈ¥µôÊÔÊÔ¡£¡±File opened that is not a database file .file is encrypted or is not a database¡±£¬²»³öËùÁÏ£¬³ö´íÁË¡£¸Õ²Å²é¿´SQLiteConnectionÊôÐÔµÄʱºò£¬¿´µ½ÓÐDataSourceÏ
Ïà¹ØÎÊ´ð£º
ÇëÎÊVFPÖÐÈçºÎµ÷ÓÃC/C++º¯Êý£¿
ÄãÒªµ÷ÓÃʲô¹¦Äܵĺ¯Êý£¿Òª¿´¿´VFPÖÐÓÐûÓжÔÓ¦µÄº¯Êý£¬Èç¹ûÓоÍÊ¡×ÅÔÙµ÷ÓÃÁË¡£Èç¹ûûÓУ¬¿ÉÒÔ½«C/C++º¯Êýд¸öDLL»òFLL£¬È»ºóÔÚVFPµ÷Óü´¿É¡£
Ê®¶¹Èý ÀÏʦ£¬Ôõô²ÅÄÜÐÞ¸Ä×Ô¼ºµÄ ......
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
SHIFT¼ÓF10ÓëÄǸö¼üÓÒctrl±ßÉϵÄÄǸö¼ü¹¦ÄÜÒ»Ñù£¬ÏëÆÁÕâ¸ö
µ«²»ÖªÒªÔõôдÄǸö×éºÏ¼ü£¡
ÓÐûÄĸö´óÏÀ·ÅÒ»¶ÎÕâ¸öµÄ´úÂë»òдһ¶Î
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
ÊäÈë10ѧÉúµÄ³É¼¨£¬¹²4¿Æ£¬°´ÕÕÒªÇó±àдʵÏÖÏÂÁй¦ÄܵijÌÐò£¨ÓÃ×Óº¯ÊýʵÏÖ£©
1 Çó³öÿ¿ÆµÄƽ¾ù³É¼¨ ½«Æ½¾ù·Ö¡µ90µÄͬѧµÄÅÅÐò
×÷ÒµÌù~£¡
àÅ ÎÒͬѧ¸øÎÒ·¢µÄ×÷Òµ ÎÒ×òÌì×öÁË µ«Êǽá¹ûÔËÐв»¶Ô ×òÌìÓкö ......