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

Accessing MS SQL Database using DBCON

Former Member
0 Likes
703

Hello!

I have a problem when we try to connect to MS SQL Server using DBCON.

In table DBCON I had configure the connection lika this:

MSSQL_SERVER=tcp:<server_ip> MSSQL_DBNAME=<database>

I also have the ABAP program. It is giving a return code of 4 after 'Connect to'.

I can read in SAP system log that is the "Problem in SAP BASIS" and is "No shared library found for the database".

Here is a sample of my program:

report ztest_baza .

data: dbn(128).

EXEC SQL.

SET CONNECTION 'CON'

ENDEXEC.

if sy-subrc eq 0.

write: 'connection ok'

else

write: 'connection error'.

endif.

EXEC SQL.

CONNECT TO 'CON'

ENDEXEC.

if sy-subrc eq 0.

write: 'connection ok'

else

write: 'connection error'.

endif.

Can somebody help me??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
497

Hi grzegorz,

1. If your sap application server is unix/aix

(and not a microsoft OS),

2. then this kind of secondary databse connection,

to MS SQL (which is microsoft system),

is at present not possible.

(BCOS the required system files, for such

cross - platform connection is not delivery by sap)

regards,

amit m.

2 REPLIES 2
Read only

Former Member
0 Likes
498

Hi grzegorz,

1. If your sap application server is unix/aix

(and not a microsoft OS),

2. then this kind of secondary databse connection,

to MS SQL (which is microsoft system),

is at present not possible.

(BCOS the required system files, for such

cross - platform connection is not delivery by sap)

regards,

amit m.

Read only

Former Member
0 Likes
497

So, you mean that it imposible to cnfigure that connection between MSSQL and SAP if SAP is on Unix platform??

There is no solution for that problem??