Connect SQL Server Through Dbco - Dbconnect _ Scn
Click here to load reader
-
Upload
uma-shanker -
Category
Documents
-
view
93 -
download
8
description
Transcript of Connect SQL Server Through Dbco - Dbconnect _ Scn
Getting Started Newsletters Store
Products Services & Support About SCN Downloads
Industries Training & Education Partnership Developer Center
Lines of Business University Alliances Events & Webinars Innovation
Login RegisterWelcome, Guest
Activity Communications Actions
Browse
Tweet 0
16 Replies Latest reply: Oct 18, 2010 4:48 PM by Jesus Garcia Castro
ShareShare
11002 Views
Average User Rating
(0 ratings)
Connect SQL Server through DBCO -DBCONNECTThis 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 bySAP 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 SQLCONNECTIONsql 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
Helpful Answers by Mark Norman, Mark Norman, Mark Norman, Eric Brunelle, MarkNorman, 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
Like (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 beon 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 fromwhere I am connecting. I have check connection to SQL Server through other programs and they areworking fine but from SAP it is not working. Connection right now cannot be made through SAP and Iam 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, 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.PDBfile. 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 DBbased 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 createdthe 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.dlldbmsslib.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*\exeX:\usr\sap\SID\sys\exe\runX:\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 Brunelle 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 followingdirectories and restarted the server: X:\usr\sap\SID\D*\exeX:\usr\sap\SID\sys\exe\runX:\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 programin SE38: -
Testing a Database Connection Defined in DBCON Could not open connection ABCsql error 1- occured:-
SQL Server is Standard Edition and OS is Windows 2008 R2 64bit. Our SAP Server is also Windows2008 64bit. Please advice what to do now because I have done entries in DBCO Transaction correctly asmentioned by the note 178949 i.e. CON_NAME: <my_conn_name>DBMS: MSSUSER_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)
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 toread 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
John Feely
Like (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 notworking with SQL Server. Then for the test i made MSAccess Database, made its ODBC connectionand 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 toSQL Server 2008 with DBConnect or ODBC. DLL and PDB Files are placed in run directory of SAP inthe 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_WANTDBMS MSSUser Name DB_USERNAMEDB password password_is_life /Conn. info MSSQL_SERVER=MY_SERVER_NAMESQL_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
Like (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
Follow SCNSite Index Contact Us SAP Help PortalPrivacy Terms of Use Legal Disclosure Copyright
Tweet 0ShareShare
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 seewhat 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 placeto 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 note738371|https://service.sap.com/sap/support/notes/738371] would help a lot to know the reason of thefailure. I hope this helps you! Cheers!
Like (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