Вы находитесь на странице: 1из 5

Connect SQL Server through DBCO - DBCONNECT | SCN

http://scn.sap.com/thread/1794452

 
Welcome, Guest Login Register Getting Started Newsletters Store

Welcome, Guest

Login

Register

Getting Started Newsletters
Getting Started
Newsletters

Store

 
 

Products

Services & Support

About SCN

Downloads

Industries

Training & Education

Partnership

Developer Center

Activity

Communications

Actions

Lines of Business

University Alliances

Events & Webinars

 

Innovation

Browse

16 Replies

Latest reply: Oct 18, 2010 4:48 PM by Jesus Garcia Castro

Share Share Tweet 0 Usman Ali Sep 28, 2010 7:50 AM Connect SQL Server through DBCO
Share
Share
Tweet
0
Usman Ali
Sep 28, 2010 7:50 AM
Connect SQL Server through DBCO -
DBCONNECT
This question is Assumed Answered.
Hi Guys,
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
I
'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:
have already installed DBMSSSLIB.DLL in executable directory also.
Please advice.
I
Thanks,
Usman Malik
Helpful Answers by Mark Norman, Mark Norman, Mark Norman, Eric Brunelle, Mark
Norman, Eric Brunelle
11002 Views
Average User Rating
(0 ratings)
Sven Otromke Sep 28, 2010 10:59 AM (in response to Usman Ali)
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
Like (0)
Mark Norman Sep 28, 2010 11:08 AM (in response to Usman Ali)
Helpful Answer
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
on that sever when executing the test program ..
wherever you put the LIB library you must be
Hope that helps.
Mark

Connect SQL Server through DBCO - DBCONNECT | SCN

Like (0)
Like (0)

http://scn.sap.com/thread/1794452

Usman Ali Sep 29, 2010 1:20 PM (in response to Usman Ali) Re: Connect SQL Server
Usman Ali Sep 29, 2010 1:20 PM (in response to Usman Ali)
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 am connecting. 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)
Mark Norman Sep 29, 2010 1:34 PM (in response to Usman Ali)
Helpful Answer
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)
Usman Ali Oct 2, 2010 7:06 AM (in response to Usman Ali)
Re: Connect SQL Server through DBCO - DBCONNECT
Hi,
Connection String in DBCON is
MSSQL_SERVER=tcp:<ServerIPAddress> MSSQL_DBNAME=<DataBaseName>
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)
Mark Norman Sep 29, 2010 4:13 PM (in response to Usman Ali)
Helpful Answer
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 system I have had to create an system DNS ODBC on the source system.
In my case I run an Hetrogeneous system environment
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

Connect SQL Server through DBCO - DBCONNECT | SCN

http://scn.sap.com/thread/1794452

RSRFCTRC Hope this helps some way Mark Like (0) Eric Brunelle Sep 29, 2010 5:14 PM
RSRFCTRC
Hope this helps some way
Mark
Like (0)
Eric Brunelle Sep 29, 2010 5:14 PM (in response to Usman Ali)
Helpful Answer
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)
Usman Ali Oct 2, 2010 10:29 AM (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.
CON_NAME: <my_conn_name>
DBMS: MSS
USER_NAME: <db_user>
PASSWORD: <password>
CON_ENV: MSSQL_SERVER=<server_name> MSSQL_DBNAME=<db_name>
I am using SQL Server Administrator Username/Password to connect to this Server.
Thanks,
Usman Malik
Like (0)
John Feely Oct 3, 2010 6:53 PM (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,

Connect SQL Server through DBCO - DBCONNECT | SCN

http://scn.sap.com/thread/1794452

John Feely Like (0) Usman Ali Oct 4, 2010 8:03 AM (in response to Usman Ali)
John Feely
Like (0)
Usman Ali Oct 4, 2010 8:03 AM (in response to Usman Ali)
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)
Mark Norman Oct 4, 2010 10:32 AM (in response to Usman Ali)
Helpful Answer
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)
Eric Brunelle Oct 4, 2010 3:46 PM (in response to Mark Norman)
Helpful Answer
Re: Connect SQL Server through DBCO - DBCONNECT
DB Connection
WHATEVER_NAME_YOU_WANT
DBMS
MSS
User Name
DB password
Conn. info
DB_USERNAME
password_is_life /
MSSQL_SERVER=MY_SERVER_NAME
SQL_DBNAME=SQL_SERVER_DB_NAME
Like (0)
Usman Ali Oct 5, 2010 7:36 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)
Mark Norman Oct 5, 2010 10:51 AM (in response to Usman Ali)
Re: Connect SQL Server through DBCO - DBCONNECT
Hi,
Have you created a OSS message with SAP to see what they think ?
Mark
Like (0)

Connect SQL Server through DBCO - DBCONNECT | SCN

Usman Ali Oct 5, 2010 1:13 PM (in response to Usman Ali) Re: Connect SQL Server
Usman Ali Oct 5, 2010 1:13 PM (in response to Usman Ali)
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 Java or .Net with their respective connectors from SAP Market place
to accomplish this task.
Thanks for your help.
Regards,
Usman Malik
Like (0)
Jesus Garcia Castro Oct 18, 2010 4:48 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!
Like (0)
0
Share
Share
Tweet
Site Index
Contact Us
SAP Help Portal
Privacy
Terms of Use
Legal Disclosure
Copyright

http://scn.sap.com/thread/1794452

Follow SCN