IBM Support

JR34175: WHEN QUERYING REMOTE TABLE, MS SQL SERVER WRAPPER MAY REPORT SQL1822N ERROR WITH ERROR MESSAGE "INVALID CURSOR STATE".

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When querying a MS SQL Server nickname, MS SQL Server Wrapper
    may report following error:
    
    SQL1822N  Unexpected error code "" received from data source
    "MSSQL".
    Associated text and tokens are "MSSQL Invalid cursor state".
    SQLSTATE=560BD
    
    Meanwhile, "invalid cursor state" error is logged in
    db2diag.log. The log entry looks like below:
    
    2009-08-03-14.22.30.552000-240 I9682H766          LEVEL: Error
    PID     : 9999                 TID  : XXXX        PROC :
    db2syscs.exe
    INSTANCE: DB2                  NODE : 000         DB   : SAMPLE
    APPHDL  : 0-76                 APPID: *LOCAL.DB2.090803180617
    AUTHID  : DB2ADMIN
    EDUID   : 9999                 EDUNAME: db2agent (9999) 0
    FUNCTION: DB2 UDB, mssql wrapper, Mssql_Server::get_error_info,
    probe:7
    MESSAGE : ODBC error txt:
    DATA #1 : Hexdump, 56 bytes
    0x38F0E010 : 5B4D 6963 726F 736F 6674 5D5B 4F44 4243
    [Microsoft][ODBC
    0x38F0E020 : 2053 514C 2053 6572 7665 7220 4472 6976     SQL
    Server Driv
    0x38F0E030 : 6572 5D49 6E76 616C 6964 2063 7572 736F
    er]Invalid curso
    0x38F0E040 : 7220 7374 6174 6500                        r state.
    
    This error is caused by MS SQL Server Wrapper mistakes a normal
    ODBC Driver return message for a error message.
    

Local fix

  • special build required.
    

Problem summary

  • User affected:
     Users of Federation Server who use Microsoft SQL Server wrapper
    Problem Descripion and Summary:
     See error description.
    

Problem conclusion

  • Problem was first fixed in V91fp10. This fix should be applied
    Federation Server.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR34175

  • Reported component name

    FEDERATION SERV

  • Reported component ID

    5724N9700

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-09-01

  • Closed date

    2011-06-13

  • Last modified date

    2011-06-13

  • APAR is sysrouted FROM one or more of the following:

    JR34174

  • APAR is sysrouted TO one or more of the following:

    IC68158

Fix information

  • Fixed component name

    FEDERATION SERV

  • Fixed component ID

    5724N9700

Applicable component levels

  • R910 PSY

       UP

  • R911 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS2K5T","label":"InfoSphere Federation Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 October 2021