Runtime error while connecting from SAP to MS-SQL DB

Hi,
I am writing a program to send data from SAP to MS SQL DB.
The stored procedure when run alone works fine.
I have defined connection 'C04' in DBCO with correct attributes.
But the 'CONNECT TO C04' statement gives me runtime error DBIF_DSQL2_CONNECTERR saying that 'Connection to Database system with the identifier C04 is not possible;.
First of all, I am not very clear if it is a ABAP problem or BASIS problem.
I did a lot of research but could not find a solution.
Please help me.
Thanks & Regards,
Shubha.

Hi shubha,
1. If your application server
   is unix/aix,
   then connection to MSSQL db
   is not possible.
(Bcos both OS are different,
  and the connector is not provided
  by sap / not available)
2. After making an entry in DBCON Table,
   probably something may be required to
   be done on the application server,
   by the basis team.
3. If this connection is required
   to be made to oracle server,
   then basis definitely requires
   to make a connection string
   on the application server
   (apart from the dbcon entry)
regards,
amit m.

Similar Messages

  • Remote Connection from SAP to MS-SQL server

    Hello Experts,
    We have been following 2 options so far and we have come across some issues
    The first Option is to call a stored procedure (this is our preferred method) which does the data transfer for us
    We have been able to test this scenario successfully from SQL Server side
    However, while calling the stored proc via native SQL from ABAP we have come across an issue which is due to SQL 2005 changes (Schema implementation and difference in the security context)
    While calling the stored procedure from the ABAP Code we have an error
                The program short dumps with runtime error DBIF_DSQL2_SQL_ERROR, exception CX_SY_NATIVE_SQL_ERROR. The database error code is 15274, and the error text is
                 "Access to the remote server     is denied because the current security context is not trusted."
    This issue is new after the SQL Server 2005.
    We are trying to resolve that.
    Secondly we have been trying the DBCON option as well as per OSS Note 323151
    We have a few things thatu2019s impacting our scenario:
    The remote servers are in a different domain
    The remote servers are located  in DIZ
    Remote server is a named instance
    Remote server has been configured with a different port than standard (1565) u2013 All Connection strings will need port in there
    The Database name starts with a numeric value
    Due a combination of factors as mentioned above the standard approach does not work
    Have any of you used this approach while connecting from SAP to MS-SQL server? Do you know of any successful methods to connect to SQL using ABAP (or not) from SAP.
    Thanks in advance,

    Yes,
    DBConnect & UDConnect.
    Works like a charm.
    We write data into a MS-SQL database via DBConnect & an ABAP program (using open sql).

  • Runtime error while connecting to Coherence server

    Hi,
    I am facing runtime exception while connection from java client to coherence server. I am trying to get named cache object, please find below cliend and server logs, any
    help would be helpful :
    Client logs :
    2012-07-25 11:25:49.735/19.240 Oracle Coherence GE 3.7.1.0 <D5> (thread=Invocation:Management, member=4): Service Management joined the cluster with senior service member 1
    2012-07-25 11:25:51.033/20.538 Oracle Coherence GE 3.7.1.0 <D5> (thread=DistributedCache, member=4): Service DistributedCache joined the cluster with senior service member 1
    2012-07-25 11:25:51.033/20.538 Oracle Coherence GE 3.7.1.0 <Error> (thread=DistributedCache, member=4): An exception (java.lang.RuntimeException) occurred reading Message MemberWelcome Type=-2 for Service=PartitionedCache{Name=DistributedCache, State=(SERVICE_STARTED), Not initialized}
    2012-07-25 11:25:51.033/20.538 Oracle Coherence GE 3.7.1.0 <Error> (thread=DistributedCache, member=4): Terminating PartitionedCache due to unhandled exception: java.lang.RuntimeException
    2012-07-25 11:25:51.033/20.538 Oracle Coherence GE 3.7.1.0 <Error> (thread=DistributedCache, member=4):
    java.lang.RuntimeException: Service DistributedCache was unable to instantiate MessageType=1882023278
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.instantiateMessage(Grid.CDB:14)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$MemberWelcome.read(PartitionedCache.CDB:20)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:19)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:662)
    2012-07-25 11:25:51.050/20.555 Oracle Coherence GE 3.7.1.0 <D5> (thread=DistributedCache, member=4): Service DistributedCache left the cluster
    2012-07-25 11:25:51.066/20.571 Oracle Coherence GE 3.7.1.0 <Error> (thread=main, member=4): Error while starting service "DistributedCache": (Wrapped: Failed to start Service "DistributedCache" (ServiceState=SERVICE_STOPPED)) java.lang.RuntimeException: Service DistributedCache was unable to instantiate MessageType=1882023278
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:38)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
         at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:39)
         at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
         at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
         at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1105)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:937)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:919)
         at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1296)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:297)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:204)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:181)
         at com.limited.esb.test.LoadStore.main(LoadStore.java:10)
    Caused by: java.lang.RuntimeException: Service DistributedCache was unable to instantiate MessageType=1882023278
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.instantiateMessage(Grid.CDB:14)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$MemberWelcome.read(PartitionedCache.CDB:20)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:19)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:662)
    Server logs :
    2012-07-25 11:25:49.345/8475.657 Oracle Coherence GE 3.7.1.0 <D5> (thread=Cluste
    r, member=1): Member(Id=4, Timestamp=2012-07-25 11:25:49.173, Address=10.136.33.
    168:8090, MachineId=52816, Location=site:,machine:KETTIBCOD04,process:3876, Role
    =LimitedEsbTestLoadStore) joined Cluster with senior member 1
    2012-07-25 11:25:49.751/8476.063 Oracle Coherence GE 3.7.1.0 <D5> (thread=Cluste
    r, member=1): Member 4 joined Service Management with senior member 1
    2012-07-25 11:25:51.050/8477.362 Oracle Coherence GE 3.7.1.0 <D5> (thread=Cluste
    r, member=1): Member 4 left service DistributedCache with senior member 1
    Thanks..

    Can you paste your clients cache configs and override xml

  • Getting the error while connection to SAP Server

    Hi,
        I am getting the below mentioned error while connection to SAP Sever using SAP.Net Connector.   What could be the possible reason?
    "<i>
    <b>Connect to SAP gateway failed
    Connect_PM  GWHOST=ia2-ms.boi.hp.com, GWSERV=sapgw01, ASHOST=ia2-ms.boi.hp.com, SYSNR=01
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       partner not reached (host 15.78.80.31, service 3301)
    TIME        Fri Feb 02 11:10:35 2007
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -10
    MODULE      nixxi_r.cpp
    LINE        8716
    DETAIL      NiPConnect2
    SYSTEM CALL SiPeekPendConn
    ERRNO       10061
    ERRNO TEXT  WSAECONNREFUSED: Connection refused
    COUNTER</b>
    </i>"

    Hi
    The gateway monitor is used to analyze and administer the SAP Gateway from outside the SAP System.  The profile you assign to it must be the same as for the gateway. This process has different names:
    UNIX: gwmon
    Windows: gwmon.exe
    more on this.. please go thru  ..
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/bb/9f13c24b9b11d189750000e8322d00/frameset.htm
    hope this info helps!
    with regards,
    raj.
    <i>pls, award points</i>

  • Error While connecting  to SAP R3 from crystal reports

    Hi Experts,
    I am trying to connect to a SAP R3 from crystal reports, it gives below mentioned error.
    Logon failed.
    Details: CMALLC: rc= 27 > Connect from SAP gateway to RFC server failed
    Connect_PM GWHOST=10.11.12.13, GWSERV=SAPGW12, SYSNR= 12
    Location SAP-gateway on host xyz/sapgw12
    Error timeout during allocate
    TIME Wed Nov 18..
    Release 700
    Component SAP Gateway
    Version 2
    RC 242
    Module gwr3cpic.c
    LINE 1872
    Detail no connect of TP sapdb12 from host 10.11.12.13 after 20 sec
    COUNTER 6
    Please help me to solve this error.
    Regards,
    Ganesh

    Hi
    please ask your network admins if there is a firewall between your CR Designer installation and your SAP R/3 system.
    I assume that you have imported the necessary trsansports in your SAP R/3 system.
    Which kind of driver do you use for the connection to SAP R/3?
    Regards,
    Stratos

  • Error while connecting to SAP Server from Windows XP Client.

    Hi,
    I am facing the problem while i am trying to connect my Windows XP Clients( With Service Pack 3, DI-API Installed and Microsoft SQL Server Native Client Installed) to SAP server i got follwoing Error.
    Connection Failed :
    SQL State : '08001'
    SQL Server Error : 233
    [Microsoft][SQL Native Client]Named Pipe Provider Could not open the connection SQL Server [233].
    Connection Failed :
    SQL State : "HYT00"
    SQL Server Error : 0
    [Microsoft][SQL Native Client]Login Timeout Expired
    Connection Failed:
    SQL State :'08001'
    SQL Server Error : 233
    [Microsoft][SQL Native Client]An Error has occured while establishing new connection to the server.
    When connecting SQL Server 2005, this failure may caused by the fact that under the default setting SQL Server does not allow remote connection.
    Regards,
    Arpit Shah

    Hi Arpit,
    Solution of Error in starting B1 after installation should help here too.
    Kind regards
    Mario
    SAP Business One Forums team

  • Getting An Error while connecting to SAP :InComplete logon data

    Hi
    I trying to get the tables of SAP using Sapproxy class ,but enable to get the table from SAP Table..
    and also using SAP Connector 2.0.1 to connect the .net ,I got the SAP function and I write the code for it but enable to get the data in from the SAP
    I am binding the data to the data grid
    it is displaying the error like:
    SAP.Connector.RfcLogonException: Incomplete logon data.
    How to fix the problem ? suggestion please
    Thanks

    1.check your hibernate.cfg.xml file and make sure you use "xwiki/xwiki" as the username and password.
    2.make sure you have create "xwiki" tablespace in your oracle db.
    B.R
    Han

  • Error while connection to SAP R/3

    Dear friends,
    please tell me any error in below function??
         private IConnection getConnection(
              IPortalComponentRequest request,
              String alias)
              throws Exception {
              IConnectorGatewayService cgService =
                   (IConnectorGatewayService) PortalRuntime
                        .getRuntimeResources()
                        .getService(
                        IConnectorService.KEY);
              ConnectionProperties prop =
                   new ConnectionProperties(request.getLocale(), request.getUser());
              return cgService.getConnection(alias, prop);
    I am getting error as below
      Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/Kemwell/Roles/CR/Reports/Reports/execSP
    Component Name : CReports.execSP
    com/sapportals/portal/ivs/cg/IConnectorGatewayService.
    Exception id: 08:02_12/04/05_0011
    See the details for the exception ID in the log file
    and also found errors in console_logs error file as below
    1. Error in service call of portal component
    2. java.lang.NoClassDefFoundError: com/sapportals/portal/ivs/cg/IConnectorGatewayService
    can any body got solution on this
    please reply me soon
    thanx in advance
    regards
    kantha

    YOu are missing the sharing reference in your portalapp.xml. take a look at the following portalapp.xml
    and add <b>com.sap.portal.ivs.connectorservice</b> as sharing reference.
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.portal.ivs.connectorservice"/>
      </application-config>
      <components>
        <component name="display">
          <component-config>
            <property name="ClassName" value="com.ust.bwextract.display"/>
            <property name="SecurityZone" value="com.ust.bwextract/high_safety"/>
          </component-config>
          <component-profile>
            <property name="System Alias" value="BWDEV"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    PS: Thanks for the points if it works out. thank you.

  • Depreciation Run Error while Upgrading from SAP 4.6C TO ECC6.0

    Hi
    We are upgrading from 4.6c to ECC 6.0.  In ECC 6.0 we need to make the Number Range Interval as "Internal" and Batch Session tick to be removed from the Depreciation Document Type. 
    While executing depreciation run, it got terminated and I have done the above changes.  After that I have restarted the Depreciation.  I have got the following error Message.
    Message(s) during check of document ERROR00001
    Message no. AAPO511
    S:/SAPDMC/LSMW_AUX_020:006 20
    Message no. /SAPDMC/LSMW_AUX_020006
    If any body aware solution, kindly reply to this message
    Thanks
    siva

    Check this useful links
    Key differences between SAP 4.6 - ECC 6.0
    http://sap.ittoolbox.com/groups/technical-functional/sap-hr/difference-sap-ecc60-with-sap-r3-3161113
    LE/WM functionality difference between 4.6c and ECC 6.0
    differences between SAP R/3 ECC 6 & SAP R/3 4.6C in Material management mod
    Upgrade from SAP R/3 4.6 C to ECC6.0 - To find obselete and new tcodes
    Upgrade from SAP R/3 4.6 C to ECC6.0 - To find obselete and new tcodes

  • Error while connecting backend SAP 4.7 system to GRC 5.3 system

    Hi Experts,
    I am Facing an Connection Issue  while connecting back end SAP 4.7 system to GRC 5.3 system
    Please help me out with Screen screen shots and process  to be followed while connecting both system,
    Thanks in Advance,
    Ram

    Hi Daya,
    you really REALLY want to visit this page and watch & read for a few days before you do anything in the system.
    http://wiki.sdn.sap.com/wiki/display/BPX/Governance%2CRisk%2CandCompliance%28GRC%29How-ToGuides
    You can easily break stuff in a way that's hard to fix, so I suggest you take your time.
    Frank.

  • Wrong User name or Password while connecting from SAP Business One - PL26

    I have restored my database on the server.I am using Patch Level PL26
    I am getting an error while logging to Server
    Wrong username and password....Message [131-93]
    Is it because i have not imported the Temporary Liscence.But when i work on my laptop, it doesnt give me an error with the same username and Password.
    I have checked SAP B1 Suite Service Manager also......it is "ON".
    Can you please give me an help on this issues, why is it giving this error
    OR
    Is there a problem in my SAP Business One Server installation
    Steps i have followed to install the SAP Busines One Server
    1 - PL26 - Packages - Server Tools - Setup
    2 - SAPB1 - Packages - Server - Setup (Custom - Demo-India
    3 - Client - setup
    4 - PL26 - Packages - DIAPI - Setup
    Not installed -
    5 - Packages - Upgrader Common - Setup
    Reason - I have been told that until and unless you import liscense, you cannot run Upgrader Common Setup.
    Please if you can find out is this true ?
    Is the problem coming because i have not run the Upgrader Common setup ?

    Hi Khimesra,
    Could you please try the following:
    1 - Firewall/antivirus disabled                                   
    2 - B1 uninstalled                                                
    3 - Net 1.1 installed                                            
    4 - B1 reinstalled                                                
    Please also refer to the following SAP notes:
    546344 and 542690
    Regards
    Emanuel

  • How to db connect from SAP to SYBASE SQL anywhere 16 remotely

    Hi All,
    May i know can i connect to SYBASE SQL Anywhere16 from SAP running on kernel 7.42 via dbacockpit (dbco)?
    I've followed note 1737415 - Sybase IQ: Enable remote/secondary connect to SAP Sybase IQ &  1532253 - SYB: Remote DB Monitoring for SAP Sybase ASE
    but failed.
    Where can i find the dbsl and its client for sybase sql anywhere? I only can find SAP ASE and SAP IQ on SMP. Is those compatible with SQL anywhere 16?
    Thanks.
    Nicholas

    Hi Jason,
    the error message is it complains minimun version for SAP IQ is 15.6, however our SQL anywhere is on version 16, above the support version as per note1737415 - Sybase IQ: Enable remote/secondary connect to SAP Sybase IQ
    fyi, i'm using the latest sybase dbsl and SAPIQ 16 client.
    Any idea or will it works to remotely connect SQL anywhere via dbacockpit?
    Thanks,
    Nicholas.

  • Getting error in Connection with SAP 2007 with SQL 2005

    Hi
    I am getting the error while running the Sample code of "UsingSBObob"
    Run-time error '-111
    Connection to SBO-Common has failed
    Please provide the solution

    Hi Owen
    You have to specify the SQL Server 2005 in the code so that you can connect with that. Below is the code
    Private Sub ConnectToCompany()
        '// Initialize the Company Object.
        '// Create a new company object
        Set oCompany = New SAPbobsCOM.Company
        '// Set the mandatory properties for the connection to the database.
        oCompany.Server = "CTX17\SQL2005" --- Specify the SQL2005 here
        oCompany.language = ln_English
        '// Use Windows authentication for database server.
        '// True for NT server authentication,
        '// False for database server authentication.
        oCompany.UseTrusted = True
        oCompany.DbServerType = dst_MSSQL2005  -
    New line to add in code
        ChooseCompany.Show vbModal, Me
    End Sub
    Himanshu

  • Unable to connect to Services Registry(error) while connecting from NWDS

    Hi SDN friends,
    I am trying to do WSDL import from NWDS (Developer Studio SAP NetWeaver 7.1 Composition Environment SP03 PAT0000 Build id: 200710302120 ) and i am getting  following error
    "Unable to connect to Services Registry"
    Below are  the service regsitry details i am passing
    window --> Preferences
    Service Registry (UDDI Service)
    Server Name:sr.esworkplace.sap.com
    Server Port:sr.esworkplace.sap.com
    Server Port:50000
    Server HTTPS Port:50043
    Inquiry Path:uddi/api/inquiry
    Publish Path:uddi/api/publish
    Security Path:uddi/api/security
    Classification Service
    Server Name:sr.esworkplace.sap.com
    Server Port:50000
    Server HTTPS Port:50043
    Classification Path:ClassificationService/CS?style=document
    I am using the following credentials for login to UDDI Service http://sr.esworkplace.sap.com
    login/pwd: sruser
    password: esword123
    I tried  with two different systems (office and Home) , bit still not connecting.
    Waiting for experts answer.
    Thanks
    Aravinda

    Hi,
    You wrote that you connect to the SAP uddi:
    Service Registry (UDDI Service)
    Server Name:sr.esworkplace.sap.com
    Server Port:sr.esworkplace.sap.com
    Server Port:50000
    Server HTTPS Port:50043
    Inquiry Path:uddi/api/inquiry
    Publish Path:uddi/api/publish
    Security Path:uddi/api/security
    sr.esworkplace.sap.com is not on your home pc. Its a SAP public uddi.
    If you want to connect to your own pc than your configuration would be sompething like this:
    Server Name:localhost
    Server Port:50000
    Server HTTPS Port:50043
    Inquiry Path:uddi/api/inquiry
    Publish Path:uddi/api/publish
    Security Path:uddi/api/security
    And you shouldn't use this login data
    login/pwd: sruser
    password: eswork123
    regards,
    v s
    Edited by: v s on Jul 2, 2008 9:31 AM
    Edited by: v s on Jul 2, 2008 9:34 AM

  • Error while connecting from OEM

    Hi experts,
    While I try to connect thru the instance manager in OEM as sys or system or internal (sysdba or sysoper ), i get an error saying invalid username or logon denied. Why is this happening? Can someone help me out on this please???

    Hi,
    To be more sure, check your user name and password once again.
    Would you be more specific on what kind of error u are getting?
    Regards,
    shravan

Maybe you are looking for

  • How to find the name of query for a given report

    Hi All, I am having the name of a report and i need to find out the name of query for that report . Plz tell me how to find out the name of the query for a given report. Thanks. Regards, Pooja Joshi.

  • Employees Pics in Report...

    Hi, I want to design a report, which will display employees pic with other informative data about each employee. Basically the purpose of this report is to design employee cards. I am using reports 6i and the pics of employees are stored in file syst

  • Is there way to get lock holder by row id?

    My problem is that sometimes some rows get locked for long time and I don't know who holds lock. Ideally I want query which takes table_name and primary key value and outputs lock holder information. (e.g sql text, how long query is being running, et

  • OSB replace action failed..

    very urgent help needed. Scenario: 1. My proxy service (new wsdl based) calls business (legacy wsdl based). 2. I want to transform input format from new format schema to legacy format schema. 3. I write a Xquery and Replace ./* in variable body with

  • Error opening CHM file (Cannot open the file: mk:@MSITStore)

    Hi, I'm getting an error opening a CHM file (Cannot open the file: mk:@MSITStore). I have tried the following solutions, but neither of them worked: Deleted the CPD file, reopened the project, and recompiled. Ran MJ's Diagnostics report and recompile