SAP Knowledge Base Article - Preview

2419744 - CTLIB: "There is a tds state machine error. An illegal tds token sequence was received" when connecting to Adaptive Server Enterprise with assigned default database user - SDK for SAP ASE


  • When attempting to connect to ASE with a user that was assigned a default database, the user is not a valid user in the database.

  • Login attempt will send a TDS_EED to the client, followed by TDS_MSG+PARAMS with the server's public key and then a TDS_DONE(MORE+ERROR). This results in a TDS state machine error in CT-Library:

ct_connect(): protocol specific layer: internal Client Library error: There is a tds state machine error. An illegal tds token sequence was received.



  • SAP Adaptive Server Enterprise (ASE) 16.0
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0
  • ctlibrary


SAP Adaptive Server Enterprise SDK 16.0


tds, state machine, transition, CTLIB, ctlib, OCS, "SAP ASE", Developer's, Adaptive Server Enterprise SDK, Developers, CR#800955, CR800955, 800955 , KBA , BC-SYB-SDK , SDK , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.