Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation Login Register Welcome, Guest Activity Communications Actions Browse Tweet 0 16 Repl ies Latest reply: Oct 18, 2010 4:48 PM by J esus Garcia Castro Share Share 11002 Views Average User Rating (0 ratings) Connect SQL Server through DBCO - DBCONNECT This question is Assumed Answered. Hi Guys,
I am trying to connect to one of the SQL Server in my Domain. I have made entries as mentioned by SAP note in DBCO Transaction. When I am testing connection through program 'ADBC_TEST_CONNECTION' it is showing me following error:
Testing a Database Connection Defined in DBCON
Could not open connection SQLCONNECTION sql error 1- occured:
I have already installed DBMSSSLIB.DLL in executable directory also.
Please advice.
Thanks, Usman Malik Usman Ali Sep 28, 2010 7:50 AM Hel pful Answers by Mark Norman, Mark Norman, Mark Norman, Eric Brunelle, Mark Norman, Eric Brunelle Re: Connect SQL Server through DBCO - DBCONNECT Hi,
please be a little more specific. What entries have you made? What note do you refer to?
Thanks, Sven Li ke (0) Sven Otromke Sep 28, 2010 10:59 AM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
I have had the same problem in the past....
If you have a multi server environment I.E. CI/DB Apps wherever you put the LIB library you must be on that sever when executing the test program..
Hope that helps.
Mark Helpful Answer Mark Norman Sep 28, 2010 11:08 AM (in response to Usman Ali) Connect SQL Server through DBCO - DBCONNECT | SCN http://scn.sap.com/thread/1794452 1 of 5 16-04-2014 15:32 Like (0) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
It is not a Multi Server Environment and I have put this DBMSSSLIB.DLL in the Application Server from where I amconnecting. I have check connection to SQL Server through other programs and they are working fine but from SAP it is not working. Connection right now cannot be made through SAP and I am getting the same error as mentioned in the first post.
Please Advice.
Thanks, Usman Malik Like (0) Usman Ali Sep 29, 2010 1:20 PM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
I have put the DLL file in EXE folder as mentioned in Note 178949. I dont know this DBMSSSLIB.PDB file. It is not mentioned in the note.
Please advice.
Thanks, Usman Malik Like (0) Usman Ali Oct 2, 2010 7:06 AM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
I would assume the pdb file was part of the lib bundle I got off OSS.
Now I have one of my ERP6 systems that runs Oracle but I am connecting to an open source DB based through MSS
As you mentioned you have the libs loaded in the exe/run directory.
To connect to the MSS systemI have had to create an system DNS ODBC on the source system. In my case I run an Hetrogeneous systemenvironment UNIX CI/DB IBM window blades, so I created the ODBC on the app server.
Now my DBCO connection string is MSSQL_DATASOURCE=<Name of ODBC>
The test program then worked. Also there will be som good trace files out of it for analysis run report Helpful Answer Mark Norman Sep 29, 2010 4:13 PM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
I am assuming you have placed the LIB in the exe directory ?
dbmsslib.dll dbmsslib.pdb
What are you coonect strings in DBCO ??
Have you read Note: 738371
Mark Like (0) Helpful Answer Mark Norman Sep 29, 2010 1:34 PM (in response to Usman Ali) Connect SQL Server through DBCO - DBCONNECT | SCN http://scn.sap.com/thread/1794452 2 of 5 16-04-2014 15:32 RSRFCTRC
Hope this helps some way
Mark Like (0) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
Your SAP server is running on Windows?
put DBMSSSLIB.DLL in these directories:
X:\usr\sap\SID\D*\exe X:\usr\sap\SID\sys\exe\run X:\usr\sap\SID\sys\exe\ (i386 or ntamd64) \ (nuc or uc)
then, try again,.
Edited by: Eric Brunelle on Sep 29, 2010 11:14 AM Like (0) Helpful Answer Eric Brunel le Sep 29, 2010 5:14 PM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
As mentioned I have put these files i.e. DBMSSSLIB.DLL and DBMSSSLIB.PDB (64bit) in the following directories and restarted the server:
X:\usr\sap\SID\D*\exe X:\usr\sap\SID\sys\exe\run X:\usr\sap\SID\sys\exe\ (i386 or ntamd64) \ (nuc or uc)
tried again but still it is showing the same error when i execute ADBC_TEST_CONNECTION program in SE38:
- Testing a Database Connection Defined in DBCON
Could not open connection ABC sql error 1- occured: -
SQL Server is Standard Edition and OS is Windows 2008 R2 64bit. Our SAP Server is also Windows 2008 64bit.
Please advice what to do now because I have done entries in DBCO Transaction correctly as mentioned by the note 178949 i.e.
I am using SQL Server Administrator Username/Password to connect to this Server.
Thanks, Usman Malik Like (0) Usman Ali Oct 2, 2010 10:29 AM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Hello,
Are you trying to connect from unix ci to Microsoft sql? What you propose is not supported as the unix server will not be able to read the Microsoft shared libraries.
regards, John Feely Oct 3, 2010 6:53 PM (in response to Usman Ali) Connect SQL Server through DBCO - DBCONNECT | SCN http://scn.sap.com/thread/1794452 3 of 5 16-04-2014 15:32 J ohn Feely Li ke (0) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
Its not Unix.
My SAP Server is Windows 2008 64bit and SQL Server is Windows 2008 R2 64bit.
Thanks, Usman Malik Like (0) Usman Ali Oct 4, 2010 8:03 AM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Hi Mark,
Yes i tried with ODBC. ODBC shows that the connection is fine. I tried to use OLEDB and it was not working with SQL Server. Then for the test i made MSAccess Database, made its ODBC connection and tried with the same OLEDB code and it was working fine.
I think there is an issue between this SAP and SQL Server 2008. SAP is not able to communicate to SQL Server 2008 with DBConnect or ODBC. DLL and PDB Files are placed in run directory of SAP in the Server as mentioned but still no use.
Please advice.
Thanks, Usman Malk Like (0) Usman Ali Oct 5, 2010 7:36 AM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Did you try creating an ODBC for you external system? as per my previous answer.
Mark Like (0) Helpful Answer Mark Norman Oct 4, 2010 10:32 AM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT DB Connection WHATEVER_NAME_YOU_WANT DBMS MSS User Name DB_USERNAME DB password password_is_life / Conn. info MSSQL_SERVER=MY_SERVER_NAME SQL_DBNAME=SQL_SERVER_DB_NAME Like (0) Helpful Answer Eric Brunelle Oct 4, 2010 3:46 PM (in response to Mark Norman) Re: Connect SQL Server through DBCO - DBCONNECT Hi,
Have you created a OSS message with SAP to see what they think ?
Mark Li ke (0) Mark Norman Oct 5, 2010 10:51 AM (in response to Usman Ali) Connect SQL Server through DBCO - DBCONNECT | SCN http://scn.sap.com/thread/1794452 4 of 5 16-04-2014 15:32 Fol l ow SCN Si te Index Contact Us SAP Help Portal Privacy Terms of Use Legal Disclosure Copyright Tweet 0 Share Share Re: Connect SQL Server through DBCO - DBCONNECT Yes Mark,
We have raised ticket with SAP too. Right now they want access to SQL and SAP Server. Let's see what solution they are going to give. Will keep you posted if they are done.
Otherwise we would have to use J ava or .Net with their respective connectors from SAP Market place to accomplish this task.
Thanks for your help.
Regards, Usman Malik Like (0) Usman Ali Oct 5, 2010 1:13 PM (in response to Usman Ali) Re: Connect SQL Server through DBCO - DBCONNECT Hi dude!
Checking the dbsl_w<NN> as it is explained in point 3 of the 'Troubleshooting' section of [SAP note 738371|https://service.sap.com/sap/support/notes/738371] would help a lot to know the reason of the failure.
I hope this helps you!
Cheers! Li ke (0) Jesus Garcia Castro Oct 18, 2010 4:48 PM (in response to Usman Ali) Connect SQL Server through DBCO - DBCONNECT | SCN http://scn.sap.com/thread/1794452 5 of 5 16-04-2014 15:32