Re: [sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread A.J.Millan
John Elrick wrote: > Tim Anderson wrote: > > We are working on a project for the Census Bureau and needed an > embeddable database that was zero configuration for the user and fast. > We evaluated SQLite against numerous competitors... IMHO, a bit exaggerated the "numerous competitors" part of t

RE: [sqlite] Syntax help with UPDATE in SQLite Database Browser

2007-06-07 Thread Ellis Robin (Bundaberg)
Thanks Miguel, I fear you're right. For this infrequent update process it just may just be easier to throw the data into another db format. Thanks again Rob -Original Message- From: miguel manese [mailto:[EMAIL PROTECTED] Sent: Friday, 8 June 2007 3:31 PM To: sqlite-users@sqlite.org Sub

Re: [sqlite] Syntax help with UPDATE in SQLite Database Browser

2007-06-07 Thread miguel manese
Maybe you really have to loop "outside" sqlite to align the rows & values. From the result you got and the UPDATE documentation, I can guess that the subselect in the assignment is flattened to a scalar. Unfortunately sqlite does not have something like update tbl1 set col=tbl2.col from tbl2 wher

RE: [sqlite] Syntax help with UPDATE in SQLite Database Browser

2007-06-07 Thread Ellis Robin (Bundaberg)
Thanks John, that's what I thought too... My positioning on a row is dependent on 2 values, and without any better knowledge of SQLite I've tried implementing this: Update Parameter set ParameterValue = (select NewParams.parametervalue from Scenario, Link, Catchment, FunctionalUnit, FunctionalU

Re: [sqlite] Truncate Issue

2007-06-07 Thread John Stanton
If you don't truncate a file then you may have untruncated files. Why can't you truncate a file? It is implemented one way or another on pretty much every OS. Sqlite uses truncate in it b-tree logic and probably elsewhere so you would very likely encounter problems with no truncate. Jimmy

Re: [sqlite] Syntax help with UPDATE in SQLite Database Browser

2007-06-07 Thread John Stanton
You don't seem to be positioning on a row in the Parameter table with a WHERE clause. Ellis Robin (Bundaberg) wrote: Could I please get some help on the syntax required to perform my UPDATE based on a selection from multiple tables? I've been through the archives but can't seem to make much sen

[sqlite] Syntax help with UPDATE in SQLite Database Browser

2007-06-07 Thread Ellis Robin (Bundaberg)
Could I please get some help on the syntax required to perform my UPDATE based on a selection from multiple tables? I've been through the archives but can't seem to make much sense of the examples given. I have a table containing 'new' paramater values, I need to update the relevant records in th

[sqlite] Truncate Issue

2007-06-07 Thread Jimmy Mathew Ambalathuruthel
Hi all, I am working in a porting project of SQLite from windows. I Could not port the Truncate () function (For Eg: WinTruncate () in windows code in the file os_win.c ) as the same logic cannot be applied to my platform. Can I make it a dummy function by just returning SQLITE_OK? Plea

Re: [sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread Bill Harris
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 "Tim Anderson" <[EMAIL PROTECTED]> writes: > I'm writing an article about SQLite and I'd love to get some comments > from users about why you use it. Performance? Features? Reliability? > Cost? Is the open source aspect important? Anything else? For t

RE: [sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread Samuel R. Neff
We chose SQLite for many reasons: - zero configuration/installation - availability of wonderful ADO.NET 2.0 wrapper - easily extensible with custom functions - performance (4x faster than MSSQL in our tests) - available commercial support The only thing we don't like is the lack non-standard loos

Re: [sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread Eugen Stoianovici
John Elrick wrote: Tim Anderson wrote: I'm writing an article about SQLite and I'd love to get some comments from users about why you use it. Performance? Features? Reliability? Cost? Is the open source aspect important? Anything else? For that matter, anything you really don't like about SQLite

Re: [sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread John Elrick
Tim Anderson wrote: I'm writing an article about SQLite and I'd love to get some comments from users about why you use it. Performance? Features? Reliability? Cost? Is the open source aspect important? Anything else? For that matter, anything you really don't like about SQLite? You can email me

[sqlite] custom collation functions not called for integer columns

2007-06-07 Thread Shane Harrelson
It appears that I can *NOT* create a custom collation function for a column declared as an INTEGER. Well, I can create it, and prepare a statement to use it, but my custom function is *NEVER* called. Is this by design? The exact same code works for a TEXT column. Should the sqlite3_prepare()

Re: Re[2]: [sqlite] Can't update table from itself or multiple tables

2007-06-07 Thread Ed Pasma
Hi, Trey. I checked not implemented features list of sqlite and found nothing about "update ... from". There's no "FROM" on http://www.sqlite.org/lang_update.html, so that's a hint that it's not supported. All the same, maybe this should be added to http://www.sqlite.org/omitted.html u

Re: [sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread BardzoTajneKonto
> I'm writing an article about SQLite and I'd love to get some comments > from users about why you use it. Performance? Features? Reliability? > Cost? - no restrictions, like only 1 LONG VARCHAR in the table, numer of columns, maximum network packet size and similar (actually there are some re

Re: [sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread Alberto Simões
Hi, Tim. We are using SQLite for two main reasons: - no daemon needed: to use RDBMS on a cluster machine is quite annoying. Most clusters administrators does not want more daemons running. - SQLite can be very fast when you tweak some of its basic configuration pragmas, being more than 200% faste

Re: [sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread Cesar D. Rodas
I am using SQLite because it is easy to use (zero config). To add to your project. And it was well designed by Mr. Hipp, with a really to use API. A wild SQL support. Because there is not Client-Server, and thousands times better than access and foxpro Many people uses, so there is a lot of help

RE: [sqlite] Slow View Performance

2007-06-07 Thread Matt
Thanks Noah, Yes that is what I have is a cross join. I was trying to simplify the definition. A more correct definition is: TabA.ID1 TabA.ID2 TabA.field1 TabB.ID1 TabB.ID2 TabB.field2 TabC.ID1 TabC.field3 ViewBC: SELECT * FROM TabB INNER JOIN TabC On TabB.ID1 = TabC.ID1 This is slow: SELECT

[sqlite] Why do you use SQLite? Comments for an article needed

2007-06-07 Thread Tim Anderson
I'm writing an article about SQLite and I'd love to get some comments from users about why you use it. Performance? Features? Reliability? Cost? Is the open source aspect important? Anything else? For that matter, anything you really don't like about SQLite? You can email me at tim(at)itwriting.co

RE: [sqlite] Slow View Performance

2007-06-07 Thread Noah Hart
Matt, if looks like you have a cross join between your tables. Are the tables A, B, C related in some way? IF so, then your queries should look something like SELECT fields from TabA LEFT OUTER JOIN TabB where TabA.IDb = TabB.IDb And your view like SELECT fields FROM TabB INNER JOIN TabC where

[sqlite] Slow View Performance

2007-06-07 Thread Matt
I have Tables TabA, TabB and TabC I have a view ViewBC that is a view SELECT fields FROM TabB INNER JOIN TabC If I run SELECT fields FROM TabA LEFT OUTER JOIN ViewBC it is way slow (like ignoring all indexes) If I run SELECT fields FROM TabA LEFT OUTER JOIN Ta

[sqlite] Slow View Performance

2007-06-07 Thread Matt Froncek
I have Tables TabA, TabB and TabC I have a view ViewBC that is a view SELECT fields FROM TabB INNER JOIN TabC If I run SELECT fields FROM TabA LEFT OUTER JOIN ViewBC it is way slow (like ignoring all indexes) If I run SELECT fields FROM TabA LEFT OUTER JOIN Ta

Re: [sqlite] Re: Re: Re: Does sqlite3_step searches for a row in the table / or some results buffer?

2007-06-07 Thread John Stanton
Igor Tandetnik wrote: John Stanton <[EMAIL PROTECTED]> wrote: Predictability is ensured by using transactions. By using BEGIN and COMMIT to make transactions atomic you enforce a predictable state. Not if you modify the same data you are iterating over, on the same DB connection and thus w

Re: [sqlite] FTS-2

2007-06-07 Thread John Stanton
Scott Hess wrote: On 6/7/07, John Stanton <[EMAIL PROTECTED]> wrote: I have just started to use FTS2 and it is working well but I would like to ask any other users if they have had good or bad experiences and why they would use FTS2 rather than FTS1. The software is new and I have not seen any

[sqlite] Re: Re: Re: Does sqlite3_step searches for a row in the table / or some results buffer?

2007-06-07 Thread Igor Tandetnik
John Stanton <[EMAIL PROTECTED]> wrote: Predictability is ensured by using transactions. By using BEGIN and COMMIT to make transactions atomic you enforce a predictable state. Not if you modify the same data you are iterating over, on the same DB connection and thus within the same transactio

[sqlite] DSN-less connection string

2007-06-07 Thread Rob Richardson
Greetings! I am trying to connect to a SQLite database from inside a C++ program (written in Visual Studio 6) using ADO without using a DSN. The database file is c:\program files\wincaps\trend01.trd. The library developed in house to wrap ADO calls contains an Open() method that accepts a string

Re: [sqlite] FTS-2

2007-06-07 Thread Scott Hess
On 6/7/07, John Stanton <[EMAIL PROTECTED]> wrote: I have just started to use FTS2 and it is working well but I would like to ask any other users if they have had good or bad experiences and why they would use FTS2 rather than FTS1. The software is new and I have not seen any feedback at this st

[sqlite] FTS-2

2007-06-07 Thread John Stanton
I have just started to use FTS2 and it is working well but I would like to ask any other users if they have had good or bad experiences and why they would use FTS2 rather than FTS1. The software is new and I have not seen any feedback at this stage and we are yet to apply large data sets and h

Re: [sqlite] Re: Re: Does sqlite3_step searches for a row in the table / or some results buffer?

2007-06-07 Thread John Stanton
Predictability is ensured by using transactions. By using BEGIN and COMMIT to make transactions atomic you enforce a predictable state. B V, Phanisekhar wrote: Thanks Igor, Why it's unpredictable? Why can't the unpredictable be made predictable? Assume I update the column of a row that

Re: [sqlite] Re: Re: Re: Does sqlite3_step searches for a row in the table / or some results buffer?

2007-06-07 Thread John Stanton
Igor Tandetnik wrote: B V, Phanisekhar <[EMAIL PROTECTED]> wrote: Why it's unpredictable? Why can't the unpredictable be made predictable? Please feel free to submit a patch, if you believe it's that easy. Assume I update the column of a row that meets the criteria of some select stmt an

[sqlite] Re: Re: Re: Does sqlite3_step searches for a row in the table / or some results buffer?

2007-06-07 Thread Igor Tandetnik
B V, Phanisekhar <[EMAIL PROTECTED]> wrote: Why it's unpredictable? Why can't the unpredictable be made predictable? Please feel free to submit a patch, if you believe it's that easy. Assume I update the column of a row that meets the criteria of some select stmt and I am yet to encounter th

RE: [sqlite] sqlite3_temp_directory in main.c

2007-06-07 Thread Tom Briggs
I can see your point, I guess, though I can't say that it seems like a major issue to me. Just out of curiosity, why aren't the defaults derived in os_win.x and os_unix.c sufficient? > -Original Message- > From: weiyang wang [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 06, 2

RE: [sqlite] Re: Re: Does sqlite3_step searches for a row in the table / or some results buffer?

2007-06-07 Thread B V, Phanisekhar
Thanks Igor, >> Why it's unpredictable? Why can't the unpredictable be made predictable? Assume I update the column of a row that meets the criteria of some select stmt and I am yet to encounter that row in sqlite3_step. So the sqlite3_step on that row will return the old column value or ne

[sqlite] Re: Re: Does sqlite3_step searches for a row in the table / or some results buffer?

2007-06-07 Thread Igor Tandetnik
B V, Phanisekhar <[EMAIL PROTECTED]> wrote: Why it's unpredictable? You are enumerating rows in some order. A new row may be inserted before or after your current position in this order. If it is inserted before, you will not see it in this enumeration. If it is inserted after, you will even

Re: [sqlite] Sqlite Server

2007-06-07 Thread Vivien Malerba
On 5/27/07, noname <[EMAIL PROTECTED]> wrote: I am using SQL Server as a back end in my vb6 application i want to switch over to sqlite server but terrainformatica.com site has not provided rates for server. so i am confused that should i use it or not i enquired on sites also but i am getting p

RE: [sqlite] Re: Does sqlite3_step searches for a row in the table / or some results buffer?

2007-06-07 Thread B V, Phanisekhar
Igor, Why it's unpredictable? It's because of different sqlite versions or even in the same sqlite version it's unpredictable? If the latter is the case, I would like to know the internal of sqlite which makes it unpredictable. Richard, In sqlite 3.3.8, since it allows INSERT while SELECT stateme