Re: [sqlite] syntax error near AS

2017-07-05 Thread Clemens Ladisch
John McMahon wrote: > an alias for an "UPDATE" table name is not permitted. Is there a particular > reason for this? The UPDATE statement affects a single table. While an alias might be a convenience, it is not necessary (any naming conflicts in subqueries can be resolved by using an alias on th

Re: [sqlite] syntax error near AS

2017-07-05 Thread Paul Sanderson
The SQLite syntax diagrams are my first point of call when looking at an error in my code like this. https://sqlite.org/lang_update.html "AS" and an alias are clearly not part of the statement. Paul www.sandersonforensics.com skype: r3scue193 twitter: @sandersonforens Tel +44 (0)1326 572786 htt

Re: [sqlite] syntax error near AS

2017-07-05 Thread Keith Medcalf
Do you know of any implementation of SQL that accepts an AS clause for the updated table? I don't think any do. Some versions have a FROM extension and you CAN specify an alias for the updated table in that clause, however, as far as I know the update table cannot be aliased and the "set = .

[sqlite] syntax error near AS

2017-07-05 Thread John McMahon
Hi Wondering if someone else can spot the syntax error in the following statement. "locns" is an attached database. There are four "AS" terms in the statement, they all alias tables. Ok, found it. It seems that an alias for an "UPDATE" table name is not permitted. Is there a particular reaso

Re: [sqlite] Sqlite problem with opening database

2017-07-05 Thread Simon Slavin
On 5 Jul 2017, at 1:41pm, Gregor Pavuna wrote: > As it seems there's some sort of server problem(Windows 2012 server). My > guess is server is caching 64bit files and serving them to 32bit operating > systems. I tested on my test server with laptop (32bit windows 7) and it > works fine. Than

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

2017-07-05 Thread Jens Alfke
> On Jul 5, 2017, at 5:29 AM, Manoj Sengottuvel wrote: > > I have encrypted the db using SEE. After that I got the message - Error > Message "The database disk image is malformed". Generally that means you gave the wrong password (or didn’t give a password) before reopening the database. (An

Re: [sqlite] Sqlite problem with opening database

2017-07-05 Thread Gregor Pavuna
Hey Simon, no i am not mixing, because it works on most of the clients 32bit and 64bit. That one is exception (well on several PCs, two different clients). As it seems there's some sort of server problem(Windows 2012 server). My guess is server is caching 64bit files and serving them to 32bit op

Re: [sqlite] Sqlite problem with opening database

2017-07-05 Thread Simon Slavin
On 5 Jul 2017, at 8:36am, Gregor Pavuna wrote: > System.BadImageFormatException: An attempt was made to load a program with > an incorrect format. (Exception from HRESULT: 0x8007000B) Obtain and log the properties of this error:

[sqlite] Error Message "The database disk image is malformed"

2017-07-05 Thread Manoj Sengottuvel
Hi Richard, I have encrypted the db using SEE. After that I got the message - Error Message "The database disk image is malformed". Regards, Manoj ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi

[sqlite] Sqlite problem with opening database

2017-07-05 Thread Gregor Pavuna
Good day, I'm turning on you, since i have no general idea how to solve this. I googled a lot of similar questions and tried them all, but without success. I tried to compile to x86 only, prefer 32bit only, . Let me explain my situation: Application was built for Any CPU and is supposed to