- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 10:42 AM
As I am attempting to do some exporting to a ODBC SQL 2008 table using the ODBC connectivity function in the MAS 90 Visual intergrator I am recieving an error 15 and the message tells me I have Inncorrect Syntax near 'E' which is very unhelpful. I was wondering if there was a way to very the MAS 90 query that is running to do this as I am finding it nearly impossible to effectively debug without this knowledge.
Re: Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 10:56 AM
Only V/I import provides access to the SQL statement. Have you tried initiating ODBC trace from the ODBC Administrator?
Re: Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 11:07 AM
I have the log file open and the only issue I could possible think of, since the Incorrect Syntax is near 'E' is when it tries to insert E. as a part of the value into my address column. could the Period be causing the error?
Re: Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 11:23 AM
After turning on trace I can see the issue is that the constructed SQL statement does not put single quotes around the string values in the value part of the insert language, so a statement that should be
insert (a, b, c) values ('dog', 'cat', 'bird') is being sent as insert(a, b, c) values (dog, cat, bird)
do you know how to get VI to put quotes around text (string) values when it makes its odbc insert call?
Re: Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 11:54 AM
Can you use some other tool like MS Access or Crystal to extract MAS data? It will also be must faster than V/I.
Re: Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 12:08 PM
No I am not able to do so as all data for my client is stored in MAS 90 and SQlL database and we are simply trying to make sure the SQL is updated regularly as MAS 90 is edited. Speed does not matter we are more concerned with accuracy in the data as third party programs access the data from the SQL faster than they would from access.
There has to be a way to concatenate the single quote around the value for each field as I do my export that is all I want to know.
Re: Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 01:01 PM
I don't think you'll find a way to fix VI except through Sage.
Others who export to SQL server create a "linked server" and "stored procedure" see:
Re: Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 01:12 PM
I'm not really attempting to fix VI I'm just looking for a way to edit the fields on export or 780, which will likely grow but probably never exceed 20,000, records which I really cant see taking any longer than a few minutes.
As I can write the middle man code needed to do this with a console app. I was simply attempting to bypass that as the link to the ODBC connectivity is provided within MAS 90 and it seems that there has to be some script some where i can do with perform logic that would allow me to edit the data as it is exported since it is possible to do other things with the perform functionality through MAS 90.
I will look into this linked server and stored procedure but it seems a roundabout way to do something that should be as simple as saying. " ' " + {PR.EMPL:EMPLOYEE_NO} + " ' " in some script and putting it in some before assign logic item.
Re: Error 15
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-17-2010 01:29 PM
I cannot create the linked server do to a mismatch between architecture and application error. and I can't change or add the MAS 90 datasource that was created due to a missing driver.
I will keep looking though


