cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC connectivity in SAP CPI to on-premise SQL server with SCC

4,651

Hi Experts,

I'm trying to access on-premise SQL Data-Base system via JDBC adapter, but am getting below error :

The TCP/IP connection to the host localhost, port 1105 has failed. Error: "The driver received an unexpected pre-login response. Verify the connection properties and check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. This driver can be used only with SQL Server 2005 or later.

I tried changing the protocol to TCP in cloud connector but still getting the same error.

URL format used : jdbc:sqlserver://<Virtual Host>:<Virtual Port>;DatabaseName=<Schema Name>;

Drivers also installed.

Kindly advice how to proceed further.

BR,

MANI REDDY

SAP CPI

Accepted Solutions (0)

Answers (3)

Answers (3)

philippeaddor
Active Participant
0 Kudos

Hi Mani,

I guess you have found the solution to your problem in the meantime. I was just facing the same error, but for a cloud server, not on-prem. In my case, the DB server is running on a virtual machine in the cloud. However, I accidentally chose "SQL Server (On-premise)" in the JDBC Data Source Alias. After changing to "SQL Server  (Cloud)" the error disappeared.

Regards,

Philippe

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Mani,

Please refer below blog to know supported JDBC versions and your error looks like you are trying to connect the db with older versions.Also you need to verify version compatibility of JDBC drivers & backend database.

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/77c7d9550e12494eb600ec82496...

Regards,

Sriprsad Shivaram Bhat

yogananda
Product and Topic Expert
Product and Topic Expert