Quantcast
Channel: SCN : Unanswered Discussions - SAP on SQL Server
Viewing all articles
Browse latest Browse all 519

sy-subrc=4 when connect to external SQL DB

$
0
0

Hi experts,

 

I want to connect to external SQL database from SAP with HANA database. And i done the config by tcode: DBCO like below:step1.jpg

And below is the test connection program

CONSTANTS:cn_sql_conn_name TYPE dbcon-con_name

                                        VALUE 'ZHR_PT_TX_DB_CONNECTION'.

EXEC SQL.

 

   CONNECT TO :cn_sql_conn_name

 

ENDEXEC.

IF sy-subrc <> 0.


ENDIF.


And sy-subrc = 4 when a run this code. Then I searched on the internet and found it maybe caused less of dbmssslib.<ext> file.

But i use tcode: AL11 to check the file existed in system,

step2.jpg

and still cannot connect to the external SQL database.


But when i did the same thing in SAP IDS system based on non-HANA dabase, it connected to SQL db successfully.


Did anybody met this issue before??




Viewing all articles
Browse latest Browse all 519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>