Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Connecting to MS SQL server

Former Member
0 Likes
458

Hi,

I am trying to connect to external MS SQL server to send and receive data from/to SAP server.

I created entry in the table DBCON and we installed

the DLL file dbmssslib.dll.

I am getting the return code SY_SUBRC=4 after the following code.

EXEC SQL.

CONNECT TO 'SQLSERVER'.

ENDEXEC.

Can anyone help me to fix this issue.

Thnaks,

Ashok.

3 REPLIES 3
Read only

former_member181966
Active Contributor
0 Likes
418

Checkout the thread!!

Thanks

Saquib

Read only

0 Likes
418

This link is for connecting to Oracle database.We want to connect to external MS SQL database. Our SAP server is running on Windows with Oracle database. Our Basis team installed MS SQL client tools on SAP server. Even after this we are getting Sy-SUBRC = 4.

Are we doing something wrong with the entry in DBCON?

Read only

0 Likes
418

HI ashok,

1. Before checking with abap,

just make sure with basis team,

that the connection is running fine or not.

2. ie.,

without using abap,

check directly on the application server,

whether it is able to connect to your ms sql database,

using some sql utility or some interface.

regards,

amit m.