`
shinfocom
  • 浏览: 1189961 次
文章分类
社区版块
存档分类
最新评论

ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题

 
阅读更多

问题:

在使用excel文件作为数据库是,出现一个问题:当更新或者增加的时候,就会出现Cannot modify the design of table 'xxxx'. It is in a read-only database

解决方案:

这是因为excel的driver的默认是excel文件是只读的。所以,在连接串里,要特别写上"ReadOnly=False;" 才可以。

例如: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=fifa_ng_db.xls;Mode=ReadWrite;ReadOnly=false;Extended Properties=/"Excel 8.0;HDR=Yes;IMEX=1/";

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics