SAP Knowledge Base Article - Preview

3399517 - TCP Provider: Timeout error [258]


SAP system cannot connect to its local SQL Server or remote SQL Server. 

The dev trace shows the following error: 

ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 3281]
Login timeout expired
TCP Provider: Timeout error [258].
Unable to complete login process due to delay in prelogin response

The error can also be reproduced by using sqlcmd command directly. 



  • SAP application server based on Netweaver 7.0 or higher.
  • Microsoft SQL Server 


KBA , BC-DB-MSS , SQL Server in SAP NetWeaver Products , Problem

About this page

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

Search for additional results

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