Yes, definitely i will modify the code for to open the file at initialization.
I have not added any such software which could lock the file. I am using ESET NOD32 antivirus software and is running from past 3 years. I am not getting any error while writing the same file and i am using same file from past 3 months to store the database records. The example codes provided with sqlite toolkit also runs without any error.
I am getting errors while opening the file only. To try the locking possibility, i created several files with the same name. The labview code (as given in previous attachment) worked sucessfully on first 2-3 attempts and later started reporting the same error. am i missing something to add in the code? or can you please check the database file, wheather it is locked. Please refer the attachment for database file as well as my previous attachments)