SQL Connection to SAP Reset

Any idea why SAP would keep "forgetting" the location of a company database (SQL) and then prompt the user to provide credentials to a "local" database that does not exist?
This just started happening on a client workstation this week.  Every time the user logs out of SAP, SAP can no longer see the SQL database it was attached to when it is opened each time so an administrator needs to keep manually enter the server name and credentials.
Any thoughts on this?
Thanks in advance!

Hi,
Refer this note:1156461
User profile not saved with roaming profile
Symptom
Sap Business one user settings are not saved under the user's
Local Settings folder.
When you use roaming profiles, SAP Business One user settings are
not being saved after logout from the server.
Other terms
Citrix, roaming profile, user profile
Reason and Prerequisites
Application error
Solution
SAP plans to fix this issue in a patch for 2007 A. Please refer to the info.txt file on SAP Service Marketplace to confirm that the fix was included. After the fix user setting path will be loaded from unicode configuration file.
From SAP business One 2007A SP00 PL35, edit the SAP Business One client configuration on the terminal server in
..\SAP Business One\Conf\b1-config-path.txt
Open the file and set the path to
%USERPROFILE%\Application Data\SAP\SAP Business One
Save the file. The setting will now be saved in the roaming profile.
In case of a load balancing environment including several terminal servers another issue might occur:
The profile path on one server might be "C:\Documents and Settings\USERNAME", on another server it might be "C:\Documents and Settings\USERNAME.DOMAIN". This is Windows behaviour.
This leads to incorrect entries in the "b1-current-user.xml", which is written to the profile. The "b1-current-user.xml" uses absolute path names, therefore when being directed to a server with a different profile path the information cannot be retrieved.
In this case please use the following workaround:
Create a logon script mapping the profile path to a drive, for example "S:". In the "b1-config-path.txt" use "S:\Application Data\SAP\SAP Business One". This will direct SAP Business One to the correct folder.

Similar Messages

  • MS SQL connection thru SAP

    Dear all,
    I know that this question has been asked before, but as i am facing some primitive issues so i am again posting my query.
    My requirement is to connect to an external MS SQL db from SAP and read data from that server. That MS SQL is located in a different m/c altogether. I was trying to connect by making settings in DBCON -
    CON NAME           MSS_TEST
    DBMS                   MSS
    USER NAME         administrator
    PASSWORD         (some pwd)
    CON ENV              MSSQL_SERVER=EISF016
                                 MSSQL_DBNAME=MASTER
    and then using the query
    DATA: CONNECTION LIKE DBCON-CON_NAME VALUE 'MSS_TEST'.
    EXEC SQL.
      CONNECT TO :CONNECTION
    ENDEXEC.
    but after this I am getting sy-subrc eq 4, which means that the connection got failed.
    Is there any way to check the connection that whether the value entered in DBCON (MSS_TEST) is getting connected ??
    Well my guess is that as the SAP and MS SQL servers are in diff m/c so we have to make one RFC connection and then do the connection, but this is just my guess. And if any RFC is at all required then how to make that.
    Kindly help me in resolving the issue.
    Points will definately be rewarded.
    Thanks,
    Saurabh.

    Log into the server hosting your SAP instance.
    Then, try connecting to the server EISF016  via SQL management studio using user administrator + password.
    Is this successful?

  • 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).

  • SAP DB Connection from SAP BI on HP UNIX to MS SQL External Database

    Dear All,
    Greetings!
    I have a scenario to configure a SAP DB Connection from SAP BI System on HP UNIX 11i to the external legacy system MS SQL 2000 Enterprise for data upload. I am interested in connecting the SQL server as a Source System to the BI System.
    I read through documents mentioning about installation of a Client driver in the SAP BI System, I also downloaded the JDBC client software and tried installing the same, but the steps as mentioned Setting the CLASSPATH or connecting to the server did not work.
    Please help me in connecting the SQL Server as Source System, I would like to know in detail about the same - so kindly help me with the links to documents and guides about the same.
    Thank you
    Regards,
    Vineeth Damodar

    Short answer: this does not work.
    Long answer: To connect directly to the database you need
    - a database client for the source system
    - a database interface library for the source system
    Both of them are not available for HP-UX if the target database is SQL server --> doesn't work.
    What you can do is: add a Windows application server to your  BI system (heterogeneous installations work and are supported) and add there the database client and the database interface library.
    Markus

  • RSA1 DB Connection from SAP BW to external SQL Server databas.

    Hello,
    I am trying to connect our SAP BW system with SQL Server Source System through DB Connect in transaction RSA1.
    Our BW system is running on Windows and MaxDB platform, therefore have I already added the latest dbmssslib.dll library to the kernel for SQL Server.
    But the connection does not work anyhow, I recieve the error "Database error -1 at CON > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does > exist or access denied." and I am quite sure that my input parameters are correct.
    Therefore I wonder if someone has run into a similar problem and what the problem could be?
    Best Regards,
    Niklas Sandstedt

    Hi,
    I am sorry that my case was assigned to wrong forum.
    That should now have been corrected, however my problem still remains unsolved in one of our systems.
    I found note 178949, which fixed the problem in one system. But even though the system setup seems to be identical, the two systems appears different.
    The following has been done for both systems:
    1. Upgraded kernel to 701 version 111 and added dbmssslib.dll and dbmssslib.pdb files
    2. Created Logical system in BD54.
    3. Tried to create DB connection in transaction DBACOCKPIT.
    In the third step, the setup fails and I receive the following error message when I test the connection:
    Database error -1 at CON > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not > exist or access denied.
    Database error -1
    All profile parameters AL11-directories also seems to be correct in both systems, so both should find the dbmssslib.dll file.
    One issue that I see is in DBACOCKPIT, the checkbox for "SAP Systems with basis release" is unchangeble and marked. This however, I think was changed in the other system automatically when the connection was established successfully.
    Has anyone run into the same problem?
    Best Regards,
    Niklas Sandstedt

  • Connectivity between SAP and SQL Server

    Hi all,
        how to take the SAP data which is in Oracle database on AIX Operating system to SQL Server database which resides in Windows for a portal?
    Can anyone help on this?  
    Regards,
    Sathya

    HEllo,
    Hi
    Please see the following:
    1. Create an entry in Trxn DBCA for SQL Server in SAP, you are creating a database connection for the SQL server in SAP.
    2. You use this connection, and write Native SQL stmnts...between EXECSQL...ENDEXEC to fetch the data..and then normal ABAP statements to put that data into your ztable.
    TABLE DBCON Entry can be like this...depends on your External database..
    CON_NAME Raj Logical name for connection
    DBMS MSS Microsoft SQL Server
    USER_NAME <User name> For SQL Server
    PASSWORD <password> " "
    CON_ENV MSSQL_SERVER=<server> MSSQL_DBNAME=<database name>
    DB_RECO Availability type for an open database connect
    FUNCTION z_houston_connect.
    *"*"Local interface:
    EXEC SQL.
    CONNECT TO 'RAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    *- Get the data from MS-SQL Server
    EXEC SQL.
    open C1 for
    select
    l.loc_id,
    l.loc_name,
    a.acc_id,
    a.acc_name,
    d.person
    from ho_loc_mast as l
    inner join snd_acc_mast as a on l.loc_id = a.loc_id
    inner join snd_acc_addr as d on a.loc_id = d.loc_id and
    a.acc_id = d.acc_id
    where l.loc_id = '001'
    ENDEXEC.
    DO.
    EXEC SQL.
    FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_acc_id, :wa-c_acc_name, :wa-c_person
    ENDEXEC.
    IF sy-subrc = 0.
    PERFORM loop_output.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    EXEC SQL.
    CLOSE C1
    ENDEXEC.
    ENDFUNCTION.
    Regards,
    Vasanth

  • 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.

  • Driver to connect from SAP PO 7.4 on Sybase to third party SQL anywhere 12

    Hi All, We have PO 7.4 on Sybase 16.01 and wants to connect third party SQL anywhere 12(Sybase). We have already the Driver: jconn4.jar in the location --> /usr/sap/SID/J00/exe/sybjdbc in the PO system. Do we need to have any other driver for connection from SAP PO 7.4 on Sybase to third party SQL anywhere 12(Sybase). Please suggest. Regards, Karthik.

    Hi Karthik,
    I guess PO comes from Process Orchestration with Netweaver ?
    Anyway to be able to connect to a remote database, from Netweaver you need a DBSL. It comes with Netweaver kernel: the lib_dbsl required to connect to ASE and IQ (and IQ uses SQLAnywhere ODBC), but there is not specifically to SQLAnywhere (even if the ODBC used for IQ is the ODBC of SQLAnywhere). I guess that *maybe* you can try using your current Sybase lib_dbsl. I don't know how you configure remote connections from PO (with Netweaver it would be done with DBCO t-code) and to be honest I won't be sure it is a supported remote connection.
    Regards,
    Victoria.

  • How to connect MS-sql server with SAP BW

    hi all,
    i want the connection procedure to how to connect MS-sql server with SAP BW.so that i can extract the data from ms sql server and can create cubes using that data.please help me in this issue.

    Hi Vamshi,
    Go through this DOC it explains u how to connect to other data bases like SQL...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff]
    this is a thread related to connect the SQL server..
    [DB Connect MS SQL Server;
    Regards,
    NR
    Assign points if helpful...

  • External Oracle Databse connection from SAP

    Dear all,
    I know that this question has been asked before, but as i am facing some primitive issues so i am again posting my query.
    My requirement is to connect to an external ORACLE db from SAP and read data from that server. That ORACLE db is located in a different m/c altogether. I was trying to connect by making settings in DBCON -
    CON NAME= ORA_TEST
    DBMS= ORA
    USER NAME= administrator
    PASSWORD= (some pwd)
    CON ENV= ????? (what is to be put here)
    And I know that we have to make some corrections in tnsnames.ora file, but I am unable to find that file in SAP system. Where can I find this file ???
    Do we have to make one RFC connection as the SAP and ORACLE servers are in diff m/c and then do the connection, but this is just my guess??
    And if any RFC is at all required then what should be the parameters for that connection.
    Kindly help me in resolving the issue.
    1. CON ENV ?
    2. tnsnames.ora ?
    3. Any RFC needed ?
    Points will definately be rewarded.
    Thanks,
    Saurabh.

    Hi,
    I have done the required settings everywhere but the connection is failing.
    The tnsname.ora file is located in my Oracle client directory and the settings done there are -
    LEVEL2 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST =  
                                192.167.40.54)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = level2)
    in DBCON i have made the following entry -
    1. DB Connection : NEWORA
    2. DBMS :             ORA
    3. User Name :       User Name external oracle database
    4. DB Password :   Password external oracle database
    5. Conn Info :         level2
    and my ABAP code looks like -
    DATA: BEGIN OF wa,
    ncli(20) TYPE c,
    num(20) TYPE c,
    END OF wa.
    DATA: dbs TYPE dbcon-con_name.
    DATA: con(20) TYPE c.
    DATA : ls_wa LIKE wa.
    dbs = 'NEWORA'. "DB Connection in DBCO
    EXEC SQL.
    connect to :dbs
    ENDEXEC.
    EXEC SQL.
    GET CONNECTION :dbs
    ENDEXEC.
    WRITE : dbs.
    EXEC SQL PERFORMING loop_output.
    select bundle_cnt, job_id from GHCBRMRT.RML_BUNDLE into :ls_wa
    ENDEXEC.
    FORM loop_output.
    WRITE: / ls_wa-ncli,
    ls_wa-num.
    now my dilemma is how SAP will recognize in DBCON what really "level2" means ?? as the settings are there in ORACLE directory and not inside SAP system.
    the dump error msg that I am getting is -
    Runtime Errors         DBIF_DSQL2_CONNECTERR
    Except.                   CX_SY_NATIVE_SQL_ERROR
    Date and Time          13.08.2008 10:20:47
    Short text
         Error setting up a secondary database connection
    What happened?
         Connection to database system not possible with 
          identifier "NEWORA".
    Missing Handling of System Exception
         Program                                 YY_NEW_CONN
    Kindly help in this regard as where I am going wrong.

  • Authentication error when creating EPM Add-in connection with SAP BO Enterprise connection type

    Hello, Experts,
    I have a problem with creation of EPM Add-in connection when SAP BusinessObjects Enterprise connection type is selected.
    An error message is "Error while communicating with the server. Framework message: Authorization failed."
    Here are the steps that were implemented and how this issue was reproduced:
    SAP BusinessObjects Planning and Consolidation 10.0 SP12 for Microsoft was installed and configured.
    Integration between SAP BPC and SAP BusinessObjects BI 4.1 SP02 was implemented. SAP BO users can successfully connect to SAP BPC system.
    EPM connector was successfully installed and deployed in SAP BusinessObjects BI server.
    BPC ODBO 2.0 SP04 64BIT was installed in SAP BusinessObjects server.
    EPM connection was successfully created in SAP BusinessObjects CMC.
    EPM Add-in and BPC ODBO 2.0 SP04 32BIT was installed in another computer (let's call it CLIENT) which has MS Office 2007 32BIT installed.
    From CLIENT computer we have launched Excel manually and successfully created BPC connection with Connection Type - Local.
    Then we have logged into BI Launch Pad and launched New / EPM document (Excel). Excel has started.
    In EPM Add-in we have pressed Logon.
    In connection window selected SAP BusinessObjects Enterprise connection type.
    An error "Error while communicating with the server. Framework message: Authorization failed." appears.
    Before this error appears we are not getting any window where we could select EPM connection (created in CMC) nor the possibility to enter username or password.
    Looking forward you valuable comments and suggestions.
    Thank you in advance.
    Donatas Budrys

    Dear, Roberto,
    Our user has Full Access to all BPC tasks and it is administrator in BI system.
    Also we can successfully connect with the same user using Connection type "Local".
    We had done some investigation and in the BPC SQL Server trace log we can catch the following message when an error occurs:
    ==============[System Error Tracing]==============
    [System  Name] : BPCXMLAService [Message Type] : ErrorMessage [Job Name]    : ValidateUser [DateTime]    : 04/23/2014 10:58:06 [UserId]      : [Exception]    DetailMsg  : {System.Exception: Invalid user    at SAP.BPC.Services.Webservice.XMLAService.XMLAService.ValidateUser()} ==============[System Error Tracing  End ]==============
    It is very interesting that after the EPM workbook is launched via BI Launch Pad till an error occurs we are NOT provided with possibility to enter any username and password. So the EPM add-in should use the same user which was logged into BI Launch Pad - in our case the user with administrative rights both in BI Launch Pad and BPC systems. Am I missing anything?
    Looking forward your feedback.
    Thank you in advance.
    Best regards,
    Donatas

  • URL Reporting connecting to SAP R/3

    Hello,
    We have Crystal Reports that connect to ABAP Function Modules in our R/3 4.7 system as the data source. To minimize the number of user prompts, we use URL Reporting to pass all the required parameters for the report. The one thing we have not been able to do is specify data connection information in the URL. We currently get around this by setting the data connection information (SAP server, system #, client #, etc.) in the Database Configuration for the report in the CMC. The downside to this is that the report is now limited to running against a single SAP client.
    Is there a way to specify the SAP connection information (server, system #, client #, etc) in the URL Reporting string? I know it can be done for SQL data sources through the USER- and PASSWORD- commands on the URL, but is there a similar way to specify SAP connection information?
    Our reporting environment is BOBJ Enteprise XI 3.1, reports are developed in Crystal Reports 2008.
    Thanks,
    Byron Clairoux

    Hi,
    that is not possible. the connection is part of the report.
    Ingo

  • 4.0EA1 - Connection Color Not Resetting

    In SQL Developer 4.0 EA 1, when you use a connection with a "Connection Color" set in the connection properties, that connection's SQL Worksheet border properly shows the right color. But, when you switch that same worksheet to a different connection (using the connection dropdown box in the top, right-hand corner of the worksheet), if that other connection has never had its "Connection Color" property set, the worksheet's border color stays the same as the previous connection, rather than resetting back to the default non-descript gray for the new connection.
    To reproduce:
    Create a connection, but don't specify the Connection Color (or use an existing connection that doesn't have the Connection Color set).
    Create another connection, but do specify the Connection Color (or use an existing connection that does have the Connection Color set).
    Open a worksheet under the connection that has a color specified.
    Switch the worksheet to the other connection, that doesn't have a color specified.
    You'll see that the worksheet's border color stays the same, which is wrong.
    Please look into this.

    Similar issue is when you have two different connections open with two different colors and you open a table the color shows correct.  If you go open a table with the same name under a different connection the color does not reset until you click a different tab and then click back on the table.
    1.  Opne connection 1 with red border.
    2.  Open connection 2 with green border.
    3.  Open table A under connection 1. Border shows red.
    4.  Go to the connections window and double click the same table under connection 2.  New table will appear but with red border.
    5.  Click any other tab in the main window and back to the connection 2 table tab and the color will change correctly.
    It appears it is not resetting the color after you open the new table unless you change focus and the change back.  I assume this is the same for any other object.

  • Not Converted : Free-hand SQL connection problem

    While converting a Free Hand SQL report from Desktop Intelligence to Web Intelligence report in BI XI 3.1, I am faced with the problem
    Not Converted : <REPNAME> - Free-hand SQL connection problem
    It is be noted that there are some other Free Hand SQL Reports, that go converted and published without any error. The subject report has two Data Providers; one referring to the Universe and other from the Free Hand SQL tagged to a DB Connection

    Ajay,
    Some more points that can be of consideration to you to help understand my problems.
    The conversion from DeskI to WebI is in the same version BI XI 3.1 and not to BI 4.0 in which Free Hand SQLs is not supported.
    I have converted one other Free Hand SQL Report with an error "Partially Converted : <REPNAME2> - Conditional or permanent Hide Header not available in Web Intelligence", for which I had to edit the report in InfoView and un-tick the "Show When Empty" property of the table ( http://www.forumtopics.com/busobj/viewtopic.php?t=197157&view=next&sid=e6840aafa2d1267c66dae164d1dbf9db ). I think the solution mentioned in this link does not meet the purpose as the table is not displayed in the design time after the above untick.
    Coming back to our issue, further probing into this aspect I stumbled upon this link meant for RCT for BI 4.0 version
    https://csdwportal.dhhs.state.nc.us/downloads/Business%20Objects%20XI%20R4.0%20Docs/SAP%20BusinessObjects%20Report%20Con…
    where in Section 3.4.9, there is a mention of the limitation in conversion as under
    "Conversion of reports with free-hand SQL or stored procedures is only possible in Connected mode, since the Report Conversion Tool needs to use the secured connection to the database that is saved in the CMS."
    I want to how the secured connection to the database in REPNAME2 is different from the subject report REPNAME1 as REPNAME2 got partially converted. The error reported for Subject report is "Free Hand SQL Connection Problem" and not conversion problem which can occur after the connection is established.
    I did check the security properties of various FHSQL connections in the CMC and all of them are identical in nature.
    Please advise

  • Fetch data from another mirosoft sql server to sap

    Dear all,
                   I want to fetch data from another mirosoft sql server
                    to SAP(my sap server IN unix, oracle 10g).
    Thanks
    Shashi
    Moderator Message: Try to do you own research before posting your question. Get back to the forums in case you are stuck with any issue
    Edited by: Suhas Saha on Jul 26, 2011 3:21 PM

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

Maybe you are looking for

  • JAXB duplicates database records in the output XML file

    I am trying to export a database through XML file using JAXB. But i get an XML file having my records with the @XMLElement name i gave it (SMS_Database) and also another one following it with <list/> as the RootElement name. I don't know where it's c

  • I can't sign into meebo using firefox

    i'm using meebo through justin.tv i can't sign in i only have the problem signing in on firefox here is a video of it http://www.youtube.com/watch?v=b3jeQN5lwuc

  • Creating passwords for documents

    hey iv aways wanted to know how you can create passwords for documents made in a word processing aplication such as microsft word or pages so that you need a password to veiw the document i don't know whether its possible or not but would apreciate s

  • I am unable to restore iPod to factory settings

    I got my iPod touch before the OS 5 update. So it came with OS 4. With OS 4, it worked find on my Bose SoundDock. When it updated to OS 5, it will not play on the Bose SoundDock. I try to do the restore to factory settings, but it keeps putting OS 5

  • Buy to Sell process

    Can anyone give me some information about Buy to sell process? It mean simultaneous good issue/good receipt. Thank's Giancarlo