数据库锁定错误 [英] Database Locked Error

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

问题描述


当我上传数据时,出现了类似的错误 "数据库文件已锁定
数据库已锁定".
.我正在使用SQLite数据库.我无法上传数据.但是在Windows XP中,它可以正常工作.在Windows 7中,它显示出这样的错误

问候
K.Karthick

Hi
While I am Upload Data I Got Error like that"The database file is locked
database is locked"
.I''m using SQLite database.I''m not able to upload the data . But in Windows XP it working fine . In Windows 7 it showing error like that

Regards
K.Karthick

推荐答案

在此处了解有关错误的详细信息: ^ ]

这里讨论类似的问题:
http://www.mojoportal. com/Forums/Thread.aspx?pageid = 5& mid = 34& ItemID = 2& thread = 7676& pagenumber = 1 [ http://stackoverflow.com/questions/151026/how-do-i- unlock-a-sqlite-database [ ^ ]

根据我阅读的内容,您似乎需要确保不再需要打开的每个连接都需要关闭.调试并查看流程,并根据需要打开/关闭连接.
Read about the details of the error here: Documentation: Error Code SQLITE_LOCKED (6): Database Is Locked[^]

Similar issues discussed here:
http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&mid=34&ItemID=2&thread=7676&pagenumber=1[^]
http://stackoverflow.com/questions/151026/how-do-i-unlock-a-sqlite-database[^]

Based on what I read, it looks like you need to make sure that every connection opened needs to be closed as soon they are no more needed. Debug and see the flow, and open/close connection based on need.


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

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