Re: [sqlite] Sqlite error code 14 when using 3.31.0+

2020-03-11 Thread Daniel Polski
Den 2020-03-10 kl. 12:31, skrev Daniel Polski: Den 2020-03-10 kl. 02:33, skrev Rowan Worth: On Mon, 9 Mar 2020 at 23:22, Daniel Polski wrote: Updated to 3.31.1 but my application started spitting out an error when opening the database, so I tested some earlier sqlite versions to figure ou

Re: [sqlite] Sqlite error code 14 when using 3.31.0+

2020-03-10 Thread Daniel Polski
Den 2020-03-10 kl. 02:33, skrev Rowan Worth: On Mon, 9 Mar 2020 at 23:22, Daniel Polski wrote: Updated to 3.31.1 but my application started spitting out an error when opening the database, so I tested some earlier sqlite versions to figure out when the problem starts. I don't get the message i

Re: [sqlite] Sqlite error code 14 when using 3.31.0+

2020-03-10 Thread Graham Holden
Tuesday, March 10, 2020, 1:33:13 AM, Rowan Worth wrote: > On Mon, 9 Mar 2020 at 23:22, Daniel Polski wrote: >> Updated to 3.31.1 but my application started spitting out an error when >> opening the database, so I tested some earlier sqlite versions to figure >> out when the problem starts. >> I

Re: [sqlite] Sqlite error code 14 when using 3.31.0+

2020-03-09 Thread Rowan Worth
On Mon, 9 Mar 2020 at 23:22, Daniel Polski wrote: > Updated to 3.31.1 but my application started spitting out an error when > opening the database, so I tested some earlier sqlite versions to figure > out when the problem starts. > I don't get the message in versions <= 3.30.1. > > (from the appl

Re: [sqlite] SQLite error while fetching the data from a table

2019-04-22 Thread Tommy Lane
Hi All, Hi Ananta Need quick help to resolve one issue i am getting now. I am a new user of SQLite. my code: connection = DriverManager.getConnection("jdbc:sqlite:C:\\sqllite\\sqlite-tools-win32-x86-328\\Stories.db"); Statement st = connection.createStatement(); ResultSet b = st.exec

Re: [sqlite] SQLite error while fetching the data from a table

2019-04-22 Thread Luuk
On 22-4-2019 14:03, Ananta Jena wrote: Hi All, Need quick help to resolve one issue i am getting now. I am a new user of SQLite. my code: connection = DriverManager.getConnection("jdbc:sqlite:C:\\sqllite\\sqlite-tools-win32-x86-328\\Stories.db"); Statement st = connection.createStatement

Re: [sqlite] SQLite error (5): database is locked

2019-02-04 Thread Simon Slavin
On 4 Feb 2019, at 3:15pm, Urs Wagner wrote: > SQLite error (5): database is locked occurs? Can't answer your question, but … If you're getting unexpected locks, have you set a timeout on every connection to that database ? That gets rid of most locks. Simon. _

Re: [sqlite] SQLite error (5): database is locked

2019-01-21 Thread Rowan Worth
On Tue, 15 Jan 2019 at 02:54, Simon Slavin wrote: > The "just-in-time" idea mentioned in your question doesn't work in real > life, since constantly checking mutex status keeps one core completely > busy, using lots of power and generating lots of heat. > Technically "just-in-time" could be impl

Re: [sqlite] SQLite error (5): database is locked

2019-01-14 Thread Simon Slavin
On 14 Jan 2019, at 7:04pm, Tim Streater wrote: > Hmm, from my attempt at interpreting the source code I gained the impression > that the handler used exponential backoff for the first few attempts, but > then used a constant period for the rest (up to the set limit). Is this not > the case? I

Re: [sqlite] SQLite error (5): database is locked

2019-01-14 Thread Tim Streater
On 14 Jan 2019, at 18:54, Simon Slavin wrote: > SQLite's own busy_timeout routine (the one you get if you don't supply your > own) uses exponential backoff. It first sleeps for a very small amount of > time, then checks the lock. If access is still prevented it sleeps longer, > then checks again.

Re: [sqlite] SQLite error (5): database is locked

2019-01-14 Thread Simon Slavin
On 14 Jan 2019, at 6:34pm, Thomas Kurz wrote: >> pragma_busy_timeout > > Does setting the busy_timeout retry periodically (e.g. every x milliseconds), > or is there some automatism that ensures that the requested operation is done > just-in-time as soon as the previous/blocking operation is fi

Re: [sqlite] SQLite error (5): database is locked

2019-01-14 Thread Thomas Kurz
> pragma_busy_timeout Does setting the busy_timeout retry periodically (e.g. every x milliseconds), or is there some automatism that ensures that the requested operation is done just-in-time as soon as the previous/blocking operation is finished? ___

Re: [sqlite] SQLite error (5): database is locked

2019-01-14 Thread Keith Medcalf
Are you getting as OS ERROR 5 or the SQLITE Return Code 5 (SQLITE_BUSY). The former means that the OS is indicating that the USERID you are using to run the task cannot open the file or the directory or the temporary files or the journal files required because it has not been granted the nece

Re: [sqlite] SQLite error (5): database is locked

2019-01-14 Thread Simon Slavin
On 14 Jan 2019, at 9:23am, Urs Wagner wrote: > I use several tasks in C# to call Sqlite queries. > No I get the error SQLite error (5): database is locked. > Is it not possible to use more than one tasks with Sqlite? Please set a timeout for all connections to your database:

Re: [sqlite] SQLite Error while trying to BackupDatabase

2017-09-20 Thread Simon Slavin
On 20 Sep 2017, at 10:40am, Karthi M wrote: > This Occurs if .db file is accessed from network path. any way to avoid > this warning?? The networking system you’re using is not correctly supporting locking. Without a working locking system there’s a chance your database will be corrupted.

Re: [sqlite] SQLite Error while trying to BackupDatabase

2017-09-20 Thread Karthi M
This Occurs if .db file is accessed from network path. any way to avoid this warning?? On Tue, Sep 19, 2017 at 6:45 PM, Clemens Ladisch wrote: > Karthi M wrote: > > SQLite notice (27): delayed 1375ms for lock/sharing conflict at line > 42155 > > SQLite error (14): os_win.c:42162: (5) winOpen(\

Re: [sqlite] SQLite Error while trying to BackupDatabase

2017-09-19 Thread Clemens Ladisch
Karthi M wrote: > SQLite notice (27): delayed 1375ms for lock/sharing conflict at line 42155 > SQLite error (14): os_win.c:42162: (5) winOpen(\\Server6166\2.0\testdb.db) > - Access is denied. Somebody else was accessing the file at the same time. This was probably another database connection, o

Re: [sqlite] sqlite error

2014-01-21 Thread d b
I didn't set any timeout value. It was fine with delete/insert/update/select queries. Suddenly, started giving sqlite error with error code 1. On Tue, Jan 21, 2014 at 9:03 AM, d b wrote: > Hi all, > > sqlite throws error code 1 while sqlite busy with read/write operations. > what could be th

Re: [sqlite] sqlite error

2014-01-21 Thread Simon Slavin
On 21 Jan 2014, at 5:03am, d b wrote: > sqlite throws error code 1 while sqlite busy with read/write operations. > what could be the reason. But, I could not reproduce this with test > program. what is the best way to handle sqlite error. Is it like sqlite > abort case? I don't think SQLite ca

Re: [sqlite] SQLite Error VB 2012 .net Build Error 4.5.1/4.0

2014-01-16 Thread Joe Mistachkin
mmbsuc...@charter.net wrote: > > Any ideas how to get this to work? > Download the version for Visual Studio 2012 and the .NET Framework 4.5 instead. In this case, the file name would be: https://system.data.sqlite.org/downloads/1.0.90.0/sqlite-netFx45-binary-x64- 2012-1.0.90.0.zip -- Joe Mist

Re: [sqlite] SQLite error near "16": syntax error

2013-04-12 Thread Darren Duncan
On 2013.02.19 5:15 AM, mikkelzuuu wrote: 1-2-2013 16:58|H2|NL-Radio 2|2013-01-03T00:00:00.000Z|172806528 An example of the output that I have to do. I see the 16 s on the first cell and the time, but I wouldn't know why its giving me an error there. Would I have to change the setup of th

Re: [sqlite] SQLite error near "16": syntax error

2013-02-20 Thread Michael Black
qlite-users@sqlite.org Subject: Re: [sqlite] SQLite error near "16": syntax error 1-2-2013 16:58|H2|NL-Radio 2|2013-01-03T00:00:00.000Z|172806528 An example of the output that I have to do. I see the 16 s on the first cell and the time, but I wouldn't know why its giving me a

Re: [sqlite] SQLite error near "16": syntax error

2013-02-20 Thread Michael Lindemans
Well the database isn't going online, its a local database for myself to keep track of recordings etc. But I'll look into that so I can maybe fix it by using a different query. -- View this message in context: http://sqlite.1065341.n5.nabble.com/SQLite-error-near-16-syntax-error-tp67086p67129.h

Re: [sqlite] SQLite error near "16": syntax error

2013-02-20 Thread mikkelzuuu
1-2-2013 16:58|H2|NL-Radio 2|2013-01-03T00:00:00.000Z|172806528 An example of the output that I have to do. I see the 16 s on the first cell and the time, but I wouldn't know why its giving me an error there. Would I have to change the setup of the Cell in my SQLite Database? -- View th

Re: [sqlite] SQLite error near "16": syntax error

2013-02-19 Thread Pavel Ivanov
On Tue, Feb 19, 2013 at 1:39 AM, mikkelzuuu wrote: > Hey guys, I'm getting this error (see title) > I'm using C# by the way. > > string StrQuery = @"INSERT INTO Test VALUES (" + > dataGridView1.Rows[i].Cells["Column1"].Value + ", " + > dataGridView1.Rows[i].Cells["Column2"].Value + ", " + > dataGr

Re: [sqlite] SQLite error near "16": syntax error

2013-02-19 Thread Michael Black
What does the built StrQuery actually look like? That should 'splain things. I imagine the 16 is in your dataGridView values. And are those values numbers or strings? -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of mikkelzuuu

Re: [sqlite] SQLite error near "16": syntax error

2013-02-19 Thread Clemens Ladisch
mikkelzuuu wrote: > string StrQuery = @"INSERT INTO Test VALUES (" + > dataGridView1.Rows[i].Cells["Column1"].Value + ", " + > dataGridView1.Rows[i].Cells["Column2"].Value + ", " + > dataGridView1.Rows[i].Cells["Column3"].Value + ", " + > dataGridView1.Rows[i].Cells["Column4"].Value + ", " + > data

Re: [sqlite] sqlite error: file is encrypted or is not a database

2012-09-03 Thread Richard Hipp
On Mon, Sep 3, 2012 at 5:43 PM, Tal Tabakman wrote: > Hi, > my SQLite based app is writing an database(single thread, no concurrency, > on top of NFS , network is involved) > when opening the database for read we get the following error "file is > encrypted or is not a database" when executing a

Re: [sqlite] Sqlite error message

2012-03-23 Thread Rob Richardson
sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Simon Slavin Sent: Friday, March 23, 2012 2:32 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] Sqlite error message On 23 Mar 2012, at 5:46pm, Waltênio de Bessa Mendes wrote: > I got a error message "could not pr

Re: [sqlite] Sqlite error message

2012-03-23 Thread Simon Slavin
On 23 Mar 2012, at 5:46pm, Waltênio de Bessa Mendes wrote: > I got a error message "could not prepare statement (1 no such table: > LivroDaBiblia) (Code 5)" Make sure you're opening the correct database file. Try specifying the full path to the file. Simon. _

Re: [sqlite] Sqlite error message

2012-03-16 Thread Waltênio de Bessa Mendes
Thanks! works fine! 2012/3/16 Simon Slavin > > On 16 Mar 2012, at 2:08pm, Waltênio de Bessa Mendes < > walteniobe...@gmail.com> wrote: > > > I am trying other ways. To learn about command line shell I created the > > following example: > > * > > SQLite version 3.7.10 2012-01-16 13:28:40 > > Ente

Re: [sqlite] Sqlite error message

2012-03-16 Thread Simon Slavin
On 16 Mar 2012, at 2:08pm, Waltênio de Bessa Mendes wrote: > I am trying other ways. To learn about command line shell I created the > following example: > * > SQLite version 3.7.10 2012-01-16 13:28:40 > Enter ".help" for instructions > Enter SQL statements terminated with a ";" > sqlite> sqlit

Re: [sqlite] Sqlite error message

2012-03-16 Thread Waltênio de Bessa Mendes
Dear Simon, I am trying other ways. To learn about command line shell I created the following example: * SQLite version 3.7.10 2012-01-16 13:28:40 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> sqlite3 alphaDB ...> create table contact(name TEXT, city TEXT); E

Re: [sqlite] Sqlite error message

2012-03-16 Thread Waltênio de Bessa Mendes
Dear Simon, Thanks for help. I created a database named "Biblia" with a table named "LivroDaBiblia". I tried the shell tool and get the following. 2012/3/15 Simon Slavin > > On 15 Mar 2012, at 6:48pm, Waltênio de Bessa Mendes < > walteniobe...@gmail.com> wrote: > > > I need help when receive

Re: [sqlite] Sqlite error message

2012-03-15 Thread Simon Slavin
On 15 Mar 2012, at 7:11pm, Waltênio de Bessa Mendes wrote: >> *SQLite version 3.7.10 2012-01-16 13:28:40 >> Enter ".help" for instructions >> Enter SQL statements terminated with a ";" >> sqlite> $ sqlite3 Biblia >> ...> ; >> Error: unrecognized token: "$" >> sqlite> .tables >> sqlite> select

Re: [sqlite] Sqlite error message

2012-03-15 Thread Waltênio de Bessa Mendes
2012/3/15 Waltênio de Bessa Mendes > Dear Simon, > > Thanks for help. > > I created a database named "Biblia" with a table named "LivroDaBiblia". > I tried the shell tool and get the following. > > *SQLite version 3.7.10 2012-01-16 13:28:40 > Enter ".help" for instructions > Enter SQL statement

Re: [sqlite] Sqlite error message

2012-03-15 Thread Simon Slavin
On 15 Mar 2012, at 6:48pm, Waltênio de Bessa Mendes wrote: > I need help when receive a message error *"could not prepare statement no > such table..." * when try > execute "*select*" in the code: Open the database in the shell tool and use '.tables'. http://www.sqlite.org/sqlite.html Does

Re: [sqlite] sqlite error: database is locked

2010-03-17 Thread imin imup
> Thanks for clarification. I assumed the error message of error code > > SQLITE_BUSY is something like "databased is busy". > > http://www.sqlite.org/c3ref/c_abort.html > Also in sqlite3.h file - comments on the right are almost exactly > reflect the corresponding error message. > You are totall

Re: [sqlite] sqlite error: database is locked

2010-03-17 Thread Pavel Ivanov
> Thanks for clarification. I assumed the error message of error code > SQLITE_BUSY is something like "databased is busy". http://www.sqlite.org/c3ref/c_abort.html Also in sqlite3.h file - comments on the right are almost exactly reflect the corresponding error message. > Another newbie question.

Re: [sqlite] sqlite error: database is locked

2010-03-17 Thread imin imup
> According to documents, sqlite_busy will happen if new reader cannot get > > shared_lock or new writer cannot get reserved_lock. > > I didn't see sqlite_busy error from my application. > > I didn't understand this. "database is locked" is SQLITE_BUSY. > Thanks for clarification. I assumed the er

Re: [sqlite] sqlite error: database is locked

2010-03-17 Thread Pavel Ivanov
> According to documents, sqlite_busy will happen if new reader cannot get > shared_lock or new writer cannot get reserved_lock. > I didn't see sqlite_busy error from my application. I didn't understand this. "database is locked" is SQLITE_BUSY. > Does this mean I need to close the current databa

Re: [sqlite] sqlite error: database is locked

2010-03-17 Thread imin imup
Thanks for help. As a novel sqlite user, it seems I need more. According to documents, sqlite_busy will happen if new reader cannot get shared_lock or new writer cannot get reserved_lock. I didn't see sqlite_busy error from my application. My usage is that: single process, multi-thread, multi-dat

Re: [sqlite] sqlite error: database is locked

2010-03-17 Thread Pavel Ivanov
http://www.sqlite.org/faq.html#q5 http://www.sqlite.org/lockingv3.html Pavel On Wed, Mar 17, 2010 at 11:46 AM, imin imup wrote: > Hello users, > > I'm using sqlite 3.6.12 in muti-threaded application. I'm getting sqlite > errors occasionally. > The error message is > > *sqlite error: database is

Re: [sqlite] SQLite error: cannot commit transaction - SQL statements in progress

2009-06-26 Thread Igor Tandetnik
Manasi Save wrote: > I am working on an application. In my code nowhere I am explicitly > setting AutoCommit = False after any statement. You set AutoCommit = False by executing BEGIN statement. You set it back to True by executing COMMIT, END or ROLLBACK. > But i am getting "SQLite error: canno

Re: [sqlite] SQLite error near "INTEGER": syntax error

2008-12-16 Thread David Frischknect
It's funny how after looking at lines of code for several hours, you miss one little character. On Tue, Dec 16, 2008 at 2:08 PM, D. Richard Hipp wrote: > > On Dec 16, 2008, at 2:04 PM, David Frischknect wrote: > > > Hello, > > > > I'm having trouble with an SQL script file I'm using in my C# > >

Re: [sqlite] SQLite error near "INTEGER": syntax error

2008-12-16 Thread Igor Tandetnik
David Frischknect wrote: > CREATE TABLE Album ( >Album_ID INTEGER PRIMARY KEY, >Album_Title TEXT NOT NULL, >Album_Year NUMERIC, >Artist_ID INTEGER NOT NULL REFERENCES Artist(Artist_ID), >Genre_ID INTEGER NOT NULL REFERENCES Genre(Genre_ID, Missing closing parenthesis. Igor Ta

Re: [sqlite] SQLite error near "INTEGER": syntax error

2008-12-16 Thread D. Richard Hipp
On Dec 16, 2008, at 2:04 PM, David Frischknect wrote: > Hello, > > I'm having trouble with an SQL script file I'm using in my C# > application. > I'm trying to use the script file to create the database if the > database > does not exist when the program starts. As far as I can tell, there

RE: [sqlite] SQLite error: Database is locked

2006-11-22 Thread Denis Povshedny
al Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 6:43 PM To: sqlite-users@sqlite.org Subject: RE: [sqlite] SQLite error: Database is locked Hi Denis, Thanks to your reply. Iam using the Linux 2.6.9.34 EL and sqlite version 3.3.6. your solution is good ,

Re: [sqlite] sqlite error after upgrade to 3.3.5

2006-05-11 Thread Ralf Junker
Hello Preston & Chrystie, I can reproduce the error with SQLiteSpy. I think it you should create a bug report ticket on www.sqlite.org, if you have not already done so. Regards, Ralf >Hi all, >I recently upgraded my project from 3.2.2 to 3.3.5 (or if you look at >my last post 3.4.5 ;) and hav

Re: [sqlite] sqlite error after upgrade to 3.3.5

2006-05-11 Thread drh
Ticket #1807 has been entered for this problem. "Preston & Chrystie" <[EMAIL PROTECTED]> wrote: > Hi all, > I recently upgraded my project from 3.2.2 to 3.3.5 (or if you look at > my last post 3.4.5 ;) and have found a situation where sqlite tries to > access an invalid memory location in file vd

Re: [sqlite] sqlite error output

2005-09-08 Thread Jay Sprenkle
On 9/7/05, Alexander van der Merwe <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a huge (> 40 000 lines) insert-script I want to run. > > Some of the lines may have something wrong with them, and I want to > check if there are are any errors on importing the data. > > Is there a way to tell SQL