ACCRDBRM packet

The ACCRDBRM packet is sent by the server once the authentication is successful. It contains information about the database server, such as its version.


Properties

This packet type often contains other properties, but they are usually not relevant, except for advanced cases.

Example

You can change the version as which DB2 identifies itself to the client with a JavaScript request filter with parameter Packet Types set to ACCRDBRM and the code:

if (context.packet.PRDID === 'SQL11058') {

    log.debug("Changing the server's response to SQL11058");

    context.packet.PRDID = 'SQL11058';

}

This may be useful in some cases, but keep in mind that the DB2 client will have an incorrect idea of what DB2 version it is talking to.