Switch database in Crystal Report 2013

Hi All,
I have Crystal Report 2013 and my client require to connect multiple database with single report. I have more than 10 MySql database and all database structure are same.
E.g. Create one report Employee Detail and connect using ODBC (RDO) I have successfully connected my single MySql database. Now I need to use this report for another database.
My question is how to switch database at runtime?
Anybody help me please.
Thanks.

You can create either a .NET or a Java app to schedule or view the report - it would connect in to the CMS and handle things from there.  It's not difficult to set the database connection in code.  Your best bet for additional help will be to look here:  http://scn.sap.com/community/bi-platform/microsoft-net-sdk or here:http://scn.sap.com/community/bi-platform/java-sdk.  There is sample code available in both places as well.
Also, while I know that the utility Ido is referring to  will work with Crystal reports, I'm not entirely sure it will work with reports that reside in CRS.  So, you'll need to review it closely to determine whether it will work for you.
-Dell

Similar Messages

  • Sample Database for Crystal Reports 2013

    Please let me know where to find the Xtreme Mountain Bike sample database for Crystal Reports 2013. I have search everywhere I can think of without success. The sample database was not included in the trial-version download. Thanks very much, SRS

    And a few more sample reports are here:
    http://scn.sap.com/docs/DOC-50471
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • SAP Crystal Report 2013 on Windows 2012 and Lotus Notes Databases

    Hi everybody, does someone already try to use version 2013 of Crystal Report to report Lotus Notes databases content?
    We have been used older version for about 10 years without any difficulties as a native driver exist for Lotus Notes.
    But installing the version 2013, we have discovered that lotus Notes is not anymore present int the list of database to connect to...
    Can anyone provide sonme help?
    Many thank in advance
    Dominique Anderegg
    Insentia SA
    Lausanne - Switzerland
    [email protected]

    See the SAP Crystal Reports 2013 Product Availability Matrix (PAM), page 9 and download the doc linked to there. According to that doc, Lotus Notes is now only supported via ODBC only.
    Also, the search string 'lotus crystal 2013' (search box in top right corner) brings up the following KBA:
    1238167 - Cannot create new report off the Lotus Notes Domino native driver in Crystal Reports
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
      Follow us on Twitter

  • Modify SQL query in Crystal Reports 2013

    Bonjour,
    Je voulais savoir s'il était possible de modifier la requête SQL dans Crystal Reports 2013, car les bases de données de notre application pour bibliothèque utilise un format de date particulier qu'il nous faut corriger directement dans la requête SQL.
    Merci pour vos informations.
    Cordialement
    Claude Marcilly
    Cannes - France
    Hello,
    I wanted to know if it was possible to modify the SQL query in Crystal Reports 2013. Databases of our application library indeed use a particular date format that we need to fix directly into the SQL query.
    Thank you for your information.
    Best regards
    Claude Marcilly
    Cannes - France

    Hi Claude,
    If you are creating reports using tables then go in Database menu and click on show SQL query, this will show the SQL generated by crystal reports.  Now go in database expert and expend your connection and double click on Add Command and past the query which was generated by Crystal and try to modify the date format and click OK.
    Now you need to redesign your reports based on Add command.
    or
    If your reports datasource is Add command you can directly go in add command and change it.
    -Sastry

  • Crystal Reports 2013 SP3 crashing

    Hello,
    We installed Crystal Reports 2013 SP3 to all developers and they have been noticing that Crystal is crashing.
    It basically crashes on different scenarios and Crystal freezes and shows the error Crystal Stopped Working.
    I have gathered different scenarios like:
    1. Report was open, doing nothing when getting error crystal stopped working.
    2. Report was open, re-titled a column, saved the file click on refresh button to re-run query with same parameters and got the same error
    3. Open the report set parameters for the past month to run it and get error not responding.
    We have re-installed Crystal on different computers and the same issue persist, even in Citrix we have noticed this as well.
    Has anybody seen this behavior and found any solution for this?
    Thanks,
    Daniel

    Hello,
    I got new logs, but shows exactly the same as before. The same error lines
    But It failed few minutes ago, around 3.10pm and as you see the log the error show at 1.45, so I'm not sure if it's related to database issue.
    I'm checking the database logs and show the same error message coming from multiple desktops (which we believe are all the crystal developers, but this probably means that they sometimes use wrong password for that in their report...)
    This is what happened this time:
    Crystal 2013 SP3
    This time it failed when developer was trying to update a command object, it stopped working
    Crystal 2013 SP5
    In 1 day it stopped working twice (when you have to close crystal completely), and stopped responding multiple times (screen grays our and shows the stop responding)
    Thanks,
    Daniel

  • Crystal Reports 2013 OLAP connection server types

    I wrote a Crystal Reports 2013 report using the OLAP Cube Report Wizard.  In the wizard, it prompted for OLAP data and Select Cube was chosen.  In the OLAP connection browser window, Add was chosen.  In Server type, Microsoft OLE DB Provider for Analysis Services 10.0 was chosen.  The report was then finished and worked fine.  However, on a different PC, that Server type is not found if trying to re-create.  Can anyone tell me what client tools must be installed on a PC for the Microsoft OLE DB Provider for Analysis Services 10.0 to show in the Server type of an OLAP connection.  We tried installing just the OLE DB provider and now it shows under OLE DB connections but not under the OLAP Connections.
    As an added question, does anyone know what must be installed on the Business Objects 4.0 server in order to publish the same report using an OLAP connection to Bus Objects?  We have tried creating an OLAP Connection that works fine but the report does not seem to be using that type connection.  I'm guessing it needs the client tool that will answer the first question.

    Hi Nate
    I'm a little unsure of where this is not working - WIN 7? MS 2003 Server?
    What's the font problem you saw?
    What database are you connecting to?
    Is the ProvideX" ODBC driver supported on WIN 7 / WIN 2003?
    Can you connect to the database via ODBC using any other software? I's like you to try SQLConn, see what that tells you.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow me on Twitter

  • How to configure crystal report 2013 with oracle 11g

    hey all,
         i download trial version SAP Crystal Report 2013 and i have Database with 11g and i want to connect with my database and try to develop reports
    but my issue is that i'm not able to connect with database. Can anyone please help to connect with database.
    i am new be with oracle database so it will help me if any one go thru step by step or any link,

    Hi Sandip,
    All you need is a 32-bit Oracle driver to be installed on the machine you're developing the reports on.
    If you already have both the 64-bit and the 32-bit drivers, make sure the Path variable under 'system variables' points to the 32-bit home.
    You can then either create an ODBC DSN or use the 'Oracle Server' native driver that shows under 'Database Expert' to create the report.
    -Abhilash

  • Crystal Report 2013 memory problem

    Hi,
    I am developing a Windows service. The service calls Crystal Report to generate PDFs. When a new contract appears in database (MS Access), the service reads contract number and build a formular. Then pass the formular to ReportDocument. The code looks like this
    using (ReportDocument report = new ReportDocument()) {
      report.Load("contract.rpt");
      // some initialize report
      foreach (var contract in contracts) {
        report.RecordSelectionFormula = BuildFormular(contract);
        report.ExportToDisk(ExportFormatType.PortableDocFormat, BuildOutputFilename(contract));
      report.Close();
    It works fine. When deploy on production, I want the location of Access file can be changed programmatically. So I modified the code
    using (ReportDocument report = new ReportDocument()) {
      report.Load("contract.rpt");
      // some initialize report
      foreach (ReportDocument subreport in report.Subreports) {
         foreach (Table table in subreport.Database.Tables) {
           table.Location = MdbPath;
      foreach (Table table in report.Database.Tables) {
        table.Location = MdbPath;
      foreach (var contract in contracts) {
        report.RecordSelectionFormula = BuildFormular(contract);
        report.VerifyDatabase();
        report.ExportToDisk(ExportFormatType.PortableDocFormat, BuildOutputFilename(contract));
      report.Close();
    It works but memory increases over time. Here are Private Bytes (I use Performance Monitor tool)
    10:45 - 58.000MB
    11:00 - 61.801MB
    11:15 - 64.611MB
    11:30 - 65.544MB
    11:45 - 65.716MB
    12:30 - 69.095MB
    I also attached some screenshot of report of DebugDiag tool.
    My environment:
    Net framework 4.5
    Tool runs as Windows Service
    Crystal Report 2013 (Crystal Report Runtime 32bit 13.0.10.1385).
    Database: MS Access/OleDb
    Any suggestion?
    Many thanks

    Hi Ludek,
    I wrote 3 tests. You can get detail here:
    https://dl.dropboxusercontent.com/u/4059883/WinFormSavedData.zip
    https://dl.dropboxusercontent.com/u/4059883/WinFormSavedData.Statistic.docx
    https://dl.dropboxusercontent.com/u/4059883/WinFormNoSavedData.zip
    https://dl.dropboxusercontent.com/u/4059883/WinFormNoSavedData.Statistic.docx
    https://dl.dropboxusercontent.com/u/4059883/WinFormChangeLocation.zip
    https://dl.dropboxusercontent.com/u/4059883/WinFormChangeLocation.Statistic.docx
    Here are summary:
    Tests are a Windows Form apps with one main form which has one button. If we click on the button, it call Crystal Report to generate 100 pdf. The Access database is simple - one table which has 10 records.
    Test case 1 - Saved data report.
    I clicked 7 times (700 pdf created). Memory increase from 40.177 MB to 43.347 MB
    Test case 2 - No saved data report
    I clicked 10 times (1000 pdf created). Memory increase from 41.123MB to 42.835MB
    Test case 3 - No saved data report and change location
    I clicked 10 times (1000 pdf created). Memory increase from 52.412 to 54.063MB
    Because I am developing a Windows Service and it runs 24/7, I expected that memory should not increase over time. My service runs 2 or 3 days and Crystal Report throws exception "Not enough memory for operation"
    00:00:11,276 [Worker-8] ERROR e.PdfGenerator.PdfGeneratorJob - Error while generating pdf
    CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException:
    Not enough memory for operation.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod)
    Thank for all advice
    Vi

  • Crystal Report 2013 Vendor Code 102

    Hi,
    I have been getting this error database vendor code 102 in Crystal Report 2013.
    I have written my query in Command and created 2 date prompts of type date / datetime which is passed in query as mentioned below
    ('?From Date)
    ('?To Date)
    I am using SQL Server 2005 ,
    Now SQL Server 2005 stores datetime as yyy-mm-dd hh:mm:ss 000 and when i am selecting the dates in Crystal, it is entered as dd/mm/yyyy or dd/mm/yyyy hh:mm:ss
    how do i make both the formats compatible ?
    Is this the reason that i am getting Vendor Code 102 error ??
    Can anyone suggest ?

    hi Shivani,
    you should be able to use the CONVERT() function on your datetime field in order to have it match up with the format of the command parameter.
    as per this microsoft article, it looks like the value parameter should be 101.
    not sure if this particular syntax will work as i don't have sql server...
    CONVERT(VARCHAR(10),{your date field|, 101) = {?your command parameter}
    -jamie

  • Upgrade from Crystal report 8 to Crystal report 2013

    Dear all,
    Need some information pertaining to upgrade of Crystal report 8 to Crystal report 2013 (to be invoked from thick client .NET applications)
    Is it possible to directly upgrade from 8 to 2013 ? Or should there be a move to intermediate version before going to 2013 ?
    How is the upgrade generally done ? (do we just open the report and save in new version, or do they have any upgrade wizard)
    What are the typical issues we may face while going from lower version to higher version (I understand queries may break, format and layout may change.  Are there any other issues specific to upgradation.
    Regards,
    Jain

    Hi Jain,
    Moved your post to .NET Forums.
    Since CR 8.0 is 12 or more years old there is no "upgrade path" now. The Database drivers have all changed and the Parameter API's have also.
    Best way is to get CR 2011 and manually open each and every report and update the DB connection using the Set Table Location, this requires updating the DB Client to current versions also.
    Note there are some old legacy DB sources no longer available so that can be a problem also.
    CR 8 is not Side By Side compatible with any other version so make sure it's not installed on the same PC. It will never work and cause all sorts of problems for you.
    Basic report layout stayed the same but Printing has changed a lot also so search here, lots of post on the subject.
    For more help need to know your data source also?
    And check the Overview Tab, on the left side, lots of resources and samples to get you started.
    Also, first warning is set your project to X86 and the full Framework, do not use the Client version.
    And the SDK is no longer shipped with CR Designer install, VS installer and redist packages are all available from here:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Don

  • Sap Crystal Reports 2013 Performance Issues

    Hi,
    We are planing to do the report migration to sap crystal report 2013. now we have crystal report xi Developer licensed version and we download the 30 days evaluation(trial) version of sap crystal report 2013 only for testing. we have 1 report that created in crystal report xi version it runs within 5 mins for 2 lakhs records and same report we are testing on sap crystal report 2013 evaluation(trial) version with same connection and same report parameters it took 10 mins for 2 lakhs records.every report take more time in sap crystal report 2013 evaluation(trial) version as compared to crystal report xi Developer licensed version.
    Why this happened? is it issue of evaluation(trial) version of sap crystal report 2013?
    Kind Regards,
    Ganesh

    Hi Jamie,
    what database are you using?
    Oracle
    what specific db version?
    Oracle  11g
    what connection method?
    Oracle Server
    Above same thing we r using for crystal report xi licensed version and sap crystal report 2013 evaluation(trial) version but now issues is that report takes 45 min in sap crystal report 2013 evaluation(trial) version for 2 lac records,but same report takes only 5 min to run in crystal report xi licensed version. is this issue of licensed bcoz now we are run report on sap crystal report 2013 evaluation(trial) version.

  • Cannot load report from server in Crystal Reports 2013 Viewer

    Hello,
    I am having trouble opening a report that is hosted on a Crystal Reports Server (2013) from the Crystal Viewer.  I've created and uploaded the reports using the report designer (version 2013).  The reports have been uploaded using the "Save As -> Enterprise" to save to my enterprise server.  This part works fine.  I then navigated to the Crystal Reports Viewer to open my report (that I just uploaded w/ the designer) from the server.  Depending on the report, one of two things happens:
    1.) I get a loading bar at the bottom right of the screen that says "Operation in progress . . ." followed by an error message:
    Unable to Refresh Report
    A problem occurred while refreshing on the server. The report may not be configured properly for refresh.
    Please contact your server administrator. (me)
    2.) I get a loading bar at the bottom right of the screen that says "Refreshing <file name of the report> (<server name>)" followed by... nothing.  The loading bar goes away and nothing happens.  It goes back to the screen that shows when the application first loads (blank canvas).
    I've taken some basic troubleshooting steps to try and rule out any potential issues that came to mind, but I've not been successful.
    Any help would be appreciated, thanks!

    Hi
    Check the below thread
    Crystal Reports 2013 data didn't refresh using OLE DB Provider for SQL Server
    With Regards
    Balaji Sampath

  • SAP tab in Crystal Reports 2013 issue

    We are using SAP Crystal Reports 2013 SP3 to build reports on BEX queries (BW 7.2). Creating a report via 'File' --> New connection --> BW MDX driver works fine, I can select bex queries & cubes and see the data. However SAP provided tab 'SAP' does not work as expected. When adding a new bex query using SAP--> Create new report from a query, I can see the list of queries and select one but it does not open and throws the following error -
    "An error occurred while generating a new report templete.
    No error"
    Using the "File" option any change to the .rpt file forces BO admin to update "DB logon" information in CMC (currently i cannot save .rpt file directly on enterprise from Crystal client due to some issue)  and we want to avoid this kind of maintainence using SAP authentication provided by using SAP tab, also the Crysal report prompts when run from BI launch pad request for prompt values twice (once for the report and once to pull list of values for each prompt) which can be avoided using SAP tab. I thought access to dev BW server is fine since the "File" tab works fine. Our BASIS team confirmed BOBJ dev servers have access to BW gateway. Am I missing something here, please help me with your experience and ideas to troubleshoot this as the only solution i could google was from a 2012 SAP recommended article to fix reginfo configuration files on SAP server
    I reinstalled Crystal Reports client twice to make sure intallation was not the issue.
    Thanks
    GORO.

    Hi Abhilash,
    Thanks for your response.
    Yes reports are working in CR 2013 designer.
    Getting Alignment and long spaces between the paragraphs issues even though report has properly designed on designer.
    After exporting to pdf getting above errors...
    -Srinivas

  • Unable to create a crystal report 2013 on the top of SAP BW 7.00

    Hello Team,
    We are trying to connect SAP Crystal Reports 2013 to SAP BW 7.00 SP26. This crystal report is being developed on the top of a BEx query accessing through OLAP.
    1.  We are getting an error- 'Internal Error: The reports applicatiton server failed'.
    2. Also, when we try to upload the same report from CMC, we get an error."...................Failed to read data from the report. Reason: Unable to open the OLAP Cube......."
    Please advise.
    Thanks.

    BI Platform
    -Abhilash

  • Where is the Manage Object function in Crystal Reports 2013 for the CMC?

    I recently upgraded to Crystal Reports 2013 after upgrading our Crystal Reports server to SAP Business Objects Platform 4.1. Before the upgrade, I could publish reports from Crystal Reports XI to the CMC then right-click on the report title in the Repository Explorer (in Crystal Reports) and I had the option to select Manage Object where I could set the default settings for the CMC. I am not seeing this option in the new version of Crystal Reports. Is there something I need to do to see this option or has this option been removed from Crystal Reports 2013?

    Hi Kelley,
    You're right, the option doesn't exist in CR XI R2 and above.
    All the options now need to be set in CMC.
    -Abhilash

Maybe you are looking for