Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Former Member Absent Member.
Absent Member.

[archive] XODBC Error

[Migrated content. Thread originally posted on 10 June 2010]

Hi, I'm experiencing a very strange issue.

Windows 2003 Server, MSSQL Server 2005, XODBC 8.1.0, AIX 5.3

OLE DB provider "MSDASQL" for linked server "(null)" returned message "[TOD][ODBC][GENESIS](pos: 133 '...A_SELECT='Y'^Y'') - syntax error".

Currently, I'm only running 2 SQL statements. If I run statement 'A' first, then run 'B', 'B' will fail with this error. If I run 'B' first, it runs fine, and 'A' will run fine.

If after 'B' fails, I wait for a couple of minutes, 'B' will run fine (by itself).

I'm running these from SQL Enterprise Manager. The two Selects are shown below in the the order where the second one always gets the error message:

comnum, comnum_sub, comheading, comheading_sub
from ROOT.comheadfl comheadfl
where comheadfl.comnum=6980 and comheadfl.comheading_sub is not null
' ) as a

'select lf_login, lf_password from ROOT.wlogins wlogins where wlogins.lf_login=''haverty1'' and wlogins.lf_password=''DarT''
' ) as a

Any ideas/suggestions would be most appreciated.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.