Back to forum list… Back to Issues and Problems...

SQL Trace: Incorrect syntax errors near the keyword... (7 replies)

Randy
9 years ago
Randy 9 years ago

For a DB Writer, is it possible to enable some kind of trace for the attempted queries?

We have a client who would like 20 database tables synced with another database,  I was only able to get 6 of the syncs working.  For the other 14 I ran into errors such as "Incorrect syntax near the keyword 'VALUES'" or "Incorrect syntax near the keyword 'DESC'."

It would be nice to see which queries are failing and why.

Support
9 years ago
Support 9 years ago

Randy, we don't have specific trace functionality for the DB Writer, but you may be lucky if you check Errors.txt.

Randy
9 years ago
Randy 9 years ago

Would it be possible to add in the future?

Do you have any suggestion for how to get around these errors?

Do they happen because the tables have the fields "VALUES" and/or "DESC"?

Does this mean IMan cannot update the database tables which contain reserved words?  When I write queries which use reserved words, surrounding them with brackets like [VALUES] or [DESC] will cause SQL Server to see these as field names and not keywords.  If that's the issue is it possible for that enhancement to be made?

Randy
9 years ago
Randy 9 years ago

Also, unfortunately Errors.txt does have have any information on the failed query.

Randy
9 years ago
Randy 9 years ago

I modified the destination column from "VALUES" to "VALUES_", and the sync worked.

This seems to indicate that IMan has a problem with pushing data into a table where a column name is the same as a reserved keyword in SQL.

Luckily, in our case the above solution worked for us, but I'm sure you have many customers where this may not be possible and this issue will limit their ability to move data around.

Please let me know if you would like any additional testing as this seems like a pretty decent bug.  At least APVEN, ARCUS, ARGRO, ICREOR have a "VALUES" column and at least ICCATG, ICITEM, ICPRIC, OECRDD, OECRDH, OEINVH, and OEINVD have a "DESC" column.

Support
9 years ago
Support 9 years ago

Randy, thanks for the update.

We're aware of some issues around reserved words, but it's reasonably difficult to resolve since each database has it's own subset (some are obviously common such as values), and not all databases follow the ANSI standard.

We will endeavour to update our documentation to include a section for dealing with reserved words.

Randy
9 years ago
Randy 9 years ago

Couldn't you simply parse the connection string for what kind of system it is?  I'm sure a large percentage of connection strings can successfully be parsed for the type of system being connected to.

7 years ago
Randy 7 years ago

Closed due to inactivity.

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close