cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with connection to external DB

03-28-2020 7:51 PM
luis_rod Participant
2042 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

Hi all,

I’m having a problem with a connection to a (external) SQL Server database. I already have a connection that works OK. Now, I’m trying to create a connection to a second DB and keep getting an error message when checking it with ADBC_TEST_CONNECTION. Both connections work ok using an external program (SQUIRREL, using JDBC drivers).

The string I’m using is as follows:

MSSQL_SERVER=xx.xx.xx.xx MSSQL_DBNAME=DBNAME1

When I change the IP and DB Name and try to connect to the new Server I get:

Could not open connection DBNAME2

sql error22occured:

Client unable to establish connection

There are two things to of interest here. The first, that there is no port number for DBNAME1 (which works correctly). Also, for this DB the password consists entirely of numbers, and it does not seem to be encrypted when you check DBCON with SE16n.

So I tried to add the port number to the IP (:1433), and still got an error when trying to connect.

Any ideas?

Thanks beforehand and stay safe,

Regards,

Luis

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

S_Sriram
Active Contributor
0 Likes

Hi Luis

Could you refer the blog about the external db connection using jdbc driver

https://wiki.scn.sap.com/wiki/display/SAPSQL/Database+Connection+and+DBSL

Regards

SS

luis_rod
Participant
0 Likes

Will do. Thanks.