After digging around the application's code for 3 hours I found what was making the problem
Before inserting the records somehow a "vbnullchar" command was being added to the SQL command and that was what making the SQL Error. I removed this and it work perfectly Thanks everyone who tried to help Andy From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: 03 November 2013 4:31 PM To: [email protected] Subject: RE: [firebird-support] Unexpected End of Command Maybe a database corruption. Try backup and restore your database Em 03/11/2013 12:25, "Andrew Gable" <[email protected]> escreveu: The SQL command is running inside a Visual basic application and I have this command working in 5 other versions of my software (all apart from my NPoS is working) So how can it work for the others but not this one app? -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mark Rotteveel Sent: 03 November 2013 9:32 AM To: [email protected] Subject: Re: [firebird-support] Unexpected End of Command On 2-11-2013 20:01, Andrew Gable wrote: > I have a problem that has ONLY just started to happen > > When ever I run the following SQL command from within my software > > THIS has been working for the last 3yrs ever since I moved over to > Firebird (I have software running the same command and they are > working fine) The first thing that I wonder is: why aren't you using parametrized queries? That saves a lot of hassle like escaping and keeps things more readable. ... > I get the following error message > > Run-time error '-2147467259 (80004005)'; > > [ODBC firebird Driver][Firebird]Dynamic SQL Error SQL error code =-104 > > Unexpected end of command -line ##, column *** > > ## and *** always change no matter what information I send. In general it means that the parser ran out of input before it had a complete parse, eg missing a quote or closing parenthesis does this. > This is an example of what I am trying to store into the database > (Debug print out of what i am sending) ... At first glance there doesn't seem to be anything wrong with this. Mark -- Mark Rotteveel ------------------------------------ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Visit http://www.firebirdsql.org and click the Resources item on the main (top) menu. Try Knowledgebase and FAQ links ! Also search the knowledgebases at http://www.ibphoenix.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Yahoo Groups Links ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4158 / Virus Database: 3615/6803 - Release Date: 11/02/13 No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4158 / Virus Database: 3615/6806 - Release Date: 11/03/13
