Sqlite打开错误:无法打开数据库 [英] Sqlite Opening Error : Unable to open database

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

问题描述

在我的应用程式中,我使用日历控制项以日期方式储存资讯。



日历控制的链接 http://blog.webscale.co.in/?p=244



问题: p>

例如,当前选择的月份是2010年10月。现在,如果我切换回2010年4月,试图回到Ocober 2010年,访问我在10月份存储的日历数据,然后我得到的错误说: Sqlite打开错误:无法打开数据库文件。



基本的疑难解答和检查我已经做的是:



1)我已经更改了数据库文件的权限,包含目录的权限,但它没有帮助我。 >

2)数据库文件路径也正确,数据库不为空。



可能会出错? >

我该怎么办?



请帮助并提出建议。



解决方案

得到答案我打开了数据库,但没有关闭它和数据库的多个实例冲突并导致数据库被锁定。



希望这将有助于某人。



谢谢Anyways !!


In my app, I use a calendar control to store the information date-wise.

Calendar Control's Link : http://blog.webscale.co.in/?p=244

Problem :

For example, the current selected month is October 2010. Now if I switch back to April 2010 and try to comeback to Ocober 2010 & access data from calendar that I stored in the month of October then I get the Error that says : "Sqlite opening Error : unable to open database file".

It works fine without switching between months.

The basic troubleshooting and checks which i have already done are:

1) I have made changes to database file permission and containing directory's permission but it didn't help me.

2) Database file path is also proper and database is not empty.

What could be going wrong?

what should I do?

Please Help and Give your Suggestions.

Thanks in Advance!

解决方案

Got the answer I opened the database but wasnt closing it and multiple instances of database were conflicting and causing the database to be locked.

Hope this would help someone.

Thanks Anyways!!

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

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