Re: [sqlite] Error message "database disk image is malformed"

2008-11-17 Thread Ernany
Hello, Problem: Exception message: The database disk image is malformed. Is it possible recuver my database? I need to copy my tableto other table. With SQLite Expert Personal 1.7.49,I can not see a table. With SQLite Database Browser 1.3 , I can see all tables. Someone help me

[sqlite] Error message "database disk image is malformed"

2008-11-17 Thread Joanne Pham
Hi All, Suddenly on my server whenever I login to the database using the following command: sqlite3 myDB and run the .schema I got the error message return back: "Error: database disk image is malformed" What is this problem and how to fix it. Thanks in advance for your help. Thanks, Joanne  

Re: [sqlite] Recovery program

2008-11-17 Thread John Stanton
Since an Sqlite database is a single file taking a snapshot backup is very simple and rapid. You could maintain an almost current image at all times that way. Complete recovery could be possible by modifying Sqlite oryour application to keep a journal of SQL statements processed between

Re: [sqlite] Recovery program

2008-11-17 Thread raf
Roger Binns wrote: > raf wrote: > > i also needed the ability to restore an sqlite3 database > > after a corruption. > > What exactly are you doing that corrupts the database in the first > place? If the machine you are using is randomly corrupting data then > having your own journal won't help

[sqlite] request for enhancement - select vfs via syntax extension

2008-11-17 Thread Gifford Hesketh
I would like to be able to select which vfs to use with the ATTACH DATABASE command, similar to what is possible with sqlite3_open_v2(). A PRAGMA statement might be the easiest to implement, but extending the ATTACH DATABASE seems more elegant. I was thinking of either: ATTACH DATABASE

Re: [sqlite] Dropping and creating indexes

2008-11-17 Thread Igor Tandetnik
"Hugh Gibson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I see from the syntax of DROP INDEX that a table name is not > specified. Are there any plans for adding a way of specifying the > table? > > I note that SQLite prevents creation of indexes with the same name, > regardless

Re: [sqlite] Trigger commands don't update "new" record?

2008-11-17 Thread Chris Eich
[Apparently I don't get my own postings to this list?] Anyway, I have an improvement to my trigger that eliminates the SELECT's for event_id: two triggers! Comments welcome. -- First set the SET's correlation id when a CLR is inserted CREATE TRIGGER set_event_correlation_id_on_insert AFTER

Re: [sqlite] Escaped values throws error

2008-11-17 Thread John Stanton
It is particularly valuable to use bound values when you have WWW access so that you block the possibility of SQL injection attacks. Eric Minbiole wrote: >>This is my first foree into PDO-SQLite and I saw samples using binding, >>I am using prepare() though without binding. >> >>So you think

Re: [sqlite] OLE DB provider for SQLite

2008-11-17 Thread Brad Stiles
> The problem with performance is not caused directly by SQLite provider, but > by different > way of reading data from managed (ADO.NET) providers by Analysis Services. Ah. "Analysis Services". 'Nuff said. Missed that the first time around. :) ___

Re: [sqlite] OLE DB provider for SQLite

2008-11-17 Thread Marcin Walkowiak
-Original Message- Date: Mon, 17 Nov 2008 08:53:44 -0500 From: "Brad Stiles" <[EMAIL PROTECTED]> Subject: Re: [sqlite] OLE DB provider for SQLite To: "General Discussion of SQLite Database" Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain;

Re: [sqlite] Trigger commands don't update "new" record?

2008-11-17 Thread Chris Eich
[Sorry if you see this twice; I sent it yesterday and see it in the archives, but never got it in my inbox. --Chris] On Sun, Nov 16, 2008 at 12:59 PM, Chris Eich <[EMAIL PROTECTED]> wrote: > I have an events table where SET events for a given device_id and > event_code are followed by CLR

Re: [sqlite] OLE DB provider for SQLite

2008-11-17 Thread Robert Simpson
Agreed. There may be some scenarios in which the C interface or some C++/OLEDB interface to SQLite outperforms the ADO.NET provider significantly -- but in most cases there is only a negligible performance impact that can only be measured through thousands of iterations. -Original

Re: [sqlite] OLE DB provider for SQLite

2008-11-17 Thread Brad Stiles
> PS Managed (ADO.NET) providers do not satisfy requirements for > performance reasons. That's a pretty blanket statement. I've found Robert Simpson's ADO.NET provider to be very performant. He has a benchmarking suite he wrote to compare various DBs. It might still be available for download.

[sqlite] Dropping and creating indexes

2008-11-17 Thread Hugh Gibson
We implement automatic instructions to upgrade a database schema. These include modifying field values and adding/dropping fields, tables, indexes etc. I see from the syntax of DROP INDEX that a table name is not specified. Are there any plans for adding a way of specifying the table? There are

[sqlite] OLE DB provider for SQLite

2008-11-17 Thread Marcin Walkowiak (Work-Local Account)
Is there any OLE DB provider for SQLite other than provider from Cherry City Software: http://cherrycitysoftware.com/ccs/Providers/ProvSQLite.aspx Unfortunately this provider does not work well with one of my company's project (it must with Analysis Services and OLAP). Could You tell me, are

Re: [sqlite] Setbusytimeout(int nMillisec)

2008-11-17 Thread Igor Tandetnik
"Satish" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can anyone tell me what setbusytimout function will do. http://sqlite.org/c3ref/busy_timeout.html Igor Tandetnik ___ sqlite-users mailing list sqlite-users@sqlite.org

[sqlite] Setbusytimeout(int nMillisec)

2008-11-17 Thread Satish
Hi Can anyone tell me what setbusytimout function will do.if it locks database its not happening.i had opened the same database with two objects before opening the database with second object I set setime out value to 2000msec even though database is opened using the second object

Re: [sqlite] INTEGER PRIMARY KEY and triggers

2008-11-17 Thread Hugh Gibson
> I am addicted to using INTEGER PRIMARY KEY AUTOINCREMENT as the id > fields in my SQLite projects, yet I would like to try some triggers > as well. Of course, every time I add a trigger that accesses a > table with these types of id fields, all sorts of odd things > happen. Not to

Re: [sqlite] Comparing a field between two databases?

2008-11-17 Thread Gilles Ganault
On Mon, 17 Nov 2008 10:39:17 +0100, Gilles Ganault <[EMAIL PROTECTED]> wrote: >.attach db1.sqlite >.attach db2.sqlite Correction: attach "db1.sqlite" as db1 attach "db2.sqlite" as db2 ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] Comparing a field between two databases?

2008-11-17 Thread Gilles Ganault
On Sun, 16 Nov 2008 18:28:50 +0900, "Alexandre Courbot" <[EMAIL PROTECTED]> wrote: >attach is probably what you want: Thanks. For those interested, here's how to load two database files into the sqlite3.exe CLI, and retrieve rows that have a common "code" value in two tables: C:\> sqlite3.exe

[sqlite] Problem : "The database disk image is malformed"

2008-11-17 Thread Ernany
Hello, Problem: Exception message: The database disk image is malformed. Is it possible recuver my database? I need to copy my tableto other table. With SQLite Expert Personal 1.7.49,I can not see a table. With SQLite Database Browser 1.3 , I can see all tables. Someone help me

Re: [sqlite] Sqlite3Explorer Sqlite Report Designer

2008-11-17 Thread Rajesh Nair
Dear Cariotoglou Mike, I am using VC++ for last 6 years to develop utilities and some small projects. Formerly I was using MS-ACCESS and/or some database classes in my projects. Once I felt the power of sqlite I started using it from 2003 / 2004. After that I have not used any ADO / ODBC for my