Getting database and server info onto Crystal Reports

Hi There
I ran this query in Query Builder to show me all Crystal Report
SELECT * FROM CI_INFOOBJECTS WHERE SI_KIND = 'CrystalReport'
and found the information I need is held by SI_USER, SI_SERVER and SI_DB properties.  Any idea on how to extract just these 3 properties?
I tried selecting these 3 properties but I get no data back.
Please advise.
Many Thanks
Bola

Hi Joe,
Back in Septenber, I got this from one of the SAP engineers. Note that I haven't tried this solution so not sure if it works.  Let us know how it goes.
Hi Bola,
Try using below formula and check if it helps:
=Connection("query_name")
OR
=Connection(DataProvider(<obj>))
<obj> could be any object from the query. DataProvider(<obj>) will provide the query name to Connection function.
This will give detail on middleware and Database used.
Hope it will help.
Regards,
Yuvraj

Similar Messages

  • Get error when passing server name to Crystal Reports in Visual Studio 2012

    Hello,
    I work on Visual Studio 2012 with Crystal Report 13.0.12 (both developer and run-time). When I pass the name of the server to the Crystal Reports, I get an error -- Failed to open the connection.  Database Vendor Code 17.  I use SQL OLEDB as the provider.  It worked before.  Not sure what has happened.
    Any help is much appreciated!!!
    John

    Hi,
    See this: Failed to open the connection - database vendor code 17
    --dj

  • Database and Server Report

    Hi,
    I want to assist my friend (he is same like me, newbie in oracle) to give a report on health of oracle database and server; which is running in his small software development and data feeding company. There are around
    1. 50 users,
    2. windows XP professional,
    3. Oracle9i Enterprise Edition Release 9.2.0.1.0 – Production,
    4. one database, No Archive Mode, oracle home is : c:\oracle\ora92 and database is stored at D:\ORACLE\oradata\orcl, 3 control files, 3 redo groups and 11 dbfs
    5. 2.27 GB is free space on the drive of oracle home,
    6. more than 1 GB RAM is in the system,
    7. <what else more; I should describe, please let me know>
    He has to submit a report on current status, health, performance etc. of oracle database and server. How should we design and get the data, please guide me.
    Thanks & Regards

    You Mean Helath Check Report of the DB
    Tablespace size?
    Datafile Size?
    Default tablespace?
    UNDO management?
    SGA?
    buffer cache hit ratio?
    library cache hit ratio?
    There are so many other parameters..Performance cannot be predicted from remote site
    But you can provide certain information
    Here are some views which could be helpful
    DBA_TABLESPACE
    DBA_FREE_SPACE
    DBA_DATA_FILES
    V$CONTROLFILE
    V$LOG--Meaning less since you run in archived mode
    Number of Oracle Process allocated
    UNDO RETENTION
    SQL>show parameter process
    SQL>show parameter UNDO
    Do you have METALINK acces
    1019546.6
    this has everything then you can pass whatever they need
    and many more

  • Comparison between Crystal Report Server XI R1, Crystal Report Server XI R1 , Business objects Enterpirse XI R1 and BOXI R2?

    Hello Everybody,
    I am new to Business Objects Enterprise. I need to know what is differnce between   Crystal Report Server XI R1and Crystal Report Server XI R1 ; Business objects Enterpirse XI R1 and BOXI R2?
    As a beginner, it will be very much helpful for me to learn in a better way and to go in the right track.
    Thanks in Advance.
    Regards,
    Annapoorani

    Annapoorani,
      I will start off with the basic difference beteen Crystal Report Server and Business Objects Enterprise.  We can continue on after this initial bit of information.
      Essentially, Crystal Report Server is a much like a subset of the full Enterprise Product line.  Whereas CRS is used for storing and scheduling Crystal Reports,  the Enterprise product extends this usability to also include Desktop Intelligence Reports as well as Web Intelligence reports.  There are also added features available with the full Enterprise Suite (depending on the licensing and installation) that also provide Performance Management, Dashboards and other enhancements.
    In the sence of XI vs XIR2,  XIR2 is more up to date with fixes and service packs.  You will find the original XI products to be closer to an end of lifecycle when it comes to support. 
    As well, the newest release not mentioned in your line of questioning is Business Objects XI3.0.  Currently this is a java based deployment, but there will be a .NET version forthcoming.  Many new features have been added and you can find more information directly at www.businessobjects.com pages.  There is a full section on the website that outlines the various products.
    Edited by: Tony Foster on Jul 16, 2008 11:22 AM

  • RE: What's database field are used in crystal report file?

    Hi all
    Please help me a C# code that using Crystall Report API (Crystal Report XI- Develop license) to get the list of database fieldname that using in crystal Report file. (What's database field using in header section ,group section , detail section of report.....)
    We looking forward to hearing from you
    Thanks
    Son

    Hello Son,
    please use this code below to get a list of used database fields in a report :
    //File Name:          CS_Get_report_data_out_inproc.sln
    //Created:            April 11, 2008
    //Author ID:          FLI
    //Purpose:            This C# .NET sample Windows application demonstrates
    //                  how to retrieve report data and put the into a XML file
    //                  using unmanaged RAS.
    // Note this is available without a dedicated RAS with SP2 for XI R2
    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    namespace CS_Get_report_data_out_inproc
        public partial class Form1 : Form
            // CR Declarations
            ReportDocument boReportDocument;
            ISCDReportClientDocument boReportClientDocument;
            public Form1()
                InitializeComponent();
                //Create a new ReportDocument
                boReportDocument = new ReportDocument();
                // load the RPT file
                boReportDocument.Load("..
    ReportData.rpt");
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button1_Click(object sender, EventArgs e)
                //Access the ReportClientDocument in the ReportDocument (EROM bridge)
                boReportClientDocument = boReportDocument.ReportClientDocument;
                // Retrieve the Rowset Controller
                RowsetController boRowsetController = boReportClientDocument.RowsetController;
                // Retrieve the metadata (column headers) - this allows you to only retrieve the data that is on the report.
                RowsetMetaData boRowsetMetaData = new RowsetMetaData();
                Fields boFields = boReportClientDocument.DataDefinition.ResultFields;
                boRowsetMetaData.DataFields = boFields;
                // Now print out the data in XML file
                //(Note: This will print out the results of formulas too)
                StreamWriter sw = new StreamWriter("C:
    ReportData.xml", false);
                sw.WriteLine("<?xml version='1.0' encoding='utf-8'?>");
                sw.WriteLine("<ReportData>");
                sw.WriteLine("<Reportheader>");
                // Print out the titles
                for (int i = 0; i < boFields.Count; i++)
                    String boFieldName = boFields<i>.Name;
                    sw.WriteLine("<ReportheaderDetail>" + boFieldName + "</ReportheaderDetail>");
                sw.WriteLine("</Reportheader>");
                //Create the cursor which lets us loop through the data
                RowsetCursor boRowsetCursor = boRowsetController.CreateCursor(null, boRowsetMetaData, 1);
                Record boRecord;
                while (boRowsetCursor.IsEOF == false)
                    sw.WriteLine("<Customer>");
                    boRecord = boRowsetCursor.CurrentRecord;
                    for (int j = 0; j < boFields.Count; j++)
                        try
                            sw.WriteLine("<Detail>" + (String)boRecord[j].ToString() + "</Detail>");
                        catch (Exception err)
                            sw.WriteLine("<Error>" + err.Message + "</Error>");
                    sw.WriteLine("</Customer>");
                    boRowsetCursor.MoveNext();
                sw.WriteLine("</ReportData>");
                // CLose the file
                sw.Close();
                MessageBox.Show("XML File 'ReportData.xml' successfully created on C:");

  • 500 - Internal server error hosting Crystal Reports XI Server on IIS 7

    Hi. I have just moved a to IIS 7 running in 32 bit mode and despite a few stumbling blocks along the way, it is now up and running. The Crystal report documents output as .pdf format in their own frame with no problems but when I try and output the same reports in html 4.0 format, I get the following error: CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Invalid export options. Has anyone got any ideas what might be causing this? Any help would be appreciated.
    Edited by: foxdeveloper2000 on Dec 10, 2009 6:17 P M

    Hi Ludek, I tried the Process Monitor and it doesn't throw up anything obvious as is causing this, neither do the logs. I tried installing Crysyal X1 designer on the server and when I try html preview I get the following message:
    HTML Preview Configuration Required
    HTML Preview will be enabled when:
    You are logged on to Business Objects Enterprise. You can log on  using the Repository Explorer
    You have entered location of a Report Application Server. You can enter the Report Application Server Location on the Files->Options Dialog, Smart tag and html Preview tab.
    Please can someone explain what this means and how I do can get my reports to output in html format.
    Many thanks in advance

  • How to pass database login information to a crystal report using c#?

    Hi,
    I need to pass database logon information to a crystal report dynamically using c#.  I am developing a windows application using c# .Net.
    I looked some of the articles however I am not able to figure out the mistake I have did.  Please find below the code I have written so far; It would be great if you could help me out in solving the issue.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using System.Data.OracleClient;
    using System.Configuration;
    using CrystalDecisions.Shared;
    using CrystalDecisions.CrystalReports.Engine;
    private void Frm_report_Load(object sender, EventArgs e)
                setReportParameters(); // method to pass parameters to the Crystal report
                crystalReportViewer1.ReportSource = new Upper_Lower();  // Upper_Lower is the Crystal report I have used in my project
               TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
               TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
               ConnectionInfo crConnectionInfo = new ConnectionInfo();
               Tables crTables;                            
                    crTables = new Upper_Lower().Database.Tables;
                    crConnectionInfo.ServerName = "oops";
                    crConnectionInfo.DatabaseName = "";
                    crConnectionInfo.UserID = "new";
                    crConnectionInfo.Password = "new123";
                    foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in crTables)
                        crtableLogoninfo = CrTable.LogOnInfo;
                        crtableLogoninfo.ConnectionInfo = crConnectionInfo;
                        CrTable.ApplyLogOnInfo(crtableLogoninfo);
    Thanks & Regards,
    Karthik.

    Hi,
    Try using this code ,
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
            ReportDocument rd = new ReportDocument();
            rd.Load(Server.MapPath("Report name"));
            rd.SetDatabaseLogon("User Name", "Password", "Server Name", "Database Name");
            CrystalReportViewer1.ReportSource = rd;
    [See Also.|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm]
    Hope this helps!!
    Sincerely,
    Nikhil Dharme

  • How to get the coloumns (fields) width in crystal report

    hi,
    how to get the coloumns width, date(get and set) and page size in crystal report using ras sdk .
    thanks

    Thanks

  • COM dlls in the Standard and Professional Editions of Crystal Reports

    Post Author: enz0
    CA Forum: Deployment
    Hi.
    Do the Standard and Professional editions of Crystal reports install all the com dlls?
    thanks

    Hi,
    The crystal reports trainign for SAP Business One is designed for partners and customers and provided for free to them.
    It's not available to non-customers. You will need to have a login to the partner or customer portal to use it.
    Alternatively you can use the regular Crystal Reports training resources or available books to get yourself skilled for Crystal Reports. Being able to work with Crystal Reports is 90% of the work where as the SAP Business One specific's are in the area of ....
    - Release 8.8: the datasource connections; working with variables in the report; intergration and distribution of reports
    - Release 2007: linking the reports into the SAP Business One menu and making them secured available to the end users.
    Best regards,
    Peter

  • Are Adobe promoting the alternatives to Database and Server Behaviours

    The apparently disastrous depreciation of Database and Server Behaviours in Dreaweaver CC seem to have left a nasty taste in the mouth for many users. I am not a very experienced web developer, to the point where I cringe when describing myself as such, and I assume, possibly naively, that if Adobe have made them optional now, that there is an alternative; if not, the decision seems dimwitted in the extreme, and I did not expect that to be the case with a company who's software I have admired and found useful for so long.
    So, assuming there is an alternative method to create dynamic data driven websites in Dreamweaver, can people please suggest what they are, and possibly point me towards the Adobe support and tutorials that encourage and explain their use. It must be in Adobe's interest to to get Dreamweaver's users to adopt the new technologies, and, at the moment, I cannot believe there is no adequate alternative.
    I have seen many complaints about the depreciation of the support, but no one seems to be saying "don't use those, this is what you need to do the job". If anyone can do that for me, it would be greatly appreciated, and I imagine others would also benefit.
    And if the alternatives are inadequate, then perhaps we could discuss how to get Adobe to repair a broken product.

    Rob Hecker2 wrote:
    As the web has evolved it makes sense that websites are no longer created by one person using one tool (DreamWeaver).
    I agree with you there, depending at what level you are. A large design company will have specialists in all areas whilst a small one man set up will not. These small one-man band businesses usually attract low paying clients who will not have a budget to employ 'specialists' which is where DW server behaviours fitted in perfectly. Although it's benefited me enormously by learning how to manually connect and query databases I still think it was and is pretty lazy on the part of Adobe NOT to update the behaviours which were an important part of the program for many.  3rd party developers have produced extensions at a considerable cost, over and above what it costs to run DW. They quickly rolled out these extensions when it became clear Adobe had decided to upset many of its customers by not including any alternative in CC/CC 2014 - so don't tell me it would have taken many hours development and financial resources which Adobe just could not afford. That's bollocks. This is purely a decision by some wanker at top level in Adobe that is probably smoking crack and don't know their *** from their elbow, or what their customers really want.
    Rob Hecker2 wrote:
    It always seemed to me that by adding support for PHP/MySQL at all, Adobe was just going to frustrate people.
    NO, the frustration is that Adobe introduce components and then doesn't develop them any further preferring to introduce a bag of dog poo into their programs like fluid grids instead of concentrating on what they do best.
    Rob Hecker2 wrote:
    PHP programmers do not use Dreamweaver for PHP Development. I recall a questionnaire on a website where the question was "What tools do you use for PHP development?" Dreamweaver was not even on the list of choices.
    Serious php developers don't  - you're right - but for those who don't program php/mysql on a daily or even weekly basis, but occasionally have the need for it, they do. Most websites can benefit from having a backend database these days and at a time when databases are main stream Adobe decide to ditch what was a premium attraction of the software, completely senseless decision. A few years ago when static sites were main stream Macromedia were ahead of the game an introduced the Server Behaviours. I guess the top brass in charge at the time (Macromedia) weren't smoking crack all day and instead listening to what their customers wanted.

  • Dynamically fetch data from database and display it in the report

    Hi,
    We have a requirement in developing a report which needs us to dynamically fetch data from the database and display it in the report.
    We have a column called WORKER in the report.
    For each worker there is a measure(PSA) associated with it.
    In the report we have to display both the WORKER and the PSA column.
    What we want is, when we display the list of the workers, the corresponding workerid_id of the worker will be passed and the value of his PSA will be fetched from the database and displayed in the report.
    Or anything similar to this.
    We also have drill applied on this WORKER column. So after any drill up or drill down also the value for PSA should change.
    Is there any way of doing this?
    Please help if possible.
    Thanks,

    hi,
    data : count type i value 0.
    data : Begin of itab occurs 0 ,
    plan_version like hrhap-plan_version,
    APPRAISAL_ID like hrhap-APPRAISAL_ID,
    AP_START_DATE like hrhap-AP_START_DATE,
    AP_END_DATE like hrhap-AP_END_DATE,
    AP_STATUS like hrhap-AP_STATUS,
    AP_STATUS_SUB like hrhap-AP_STATUS_SUB,
    OBJ_DATE_SET like hrhap-OBJ_DATE_SET,
    REVIEW_DATE_SET like hrhap-REVIEW_DATE_SET,
    AP_DATE_SET like hrhap-AP_DATE_SET,
    AP_DATE_EARLIEST like hrhap-AP_DATE_EARLIEST,
    AP_DATE_LATEST like hrhap-AP_DATE_LATEST,
    CHANGE_DATE like hrhap-CHANGE_DATE,
    CHANGE_TIME like hrhap-CHANGE_TIME,
    CHANGE_USER like hrhap-CHANGE_USER,
    end of itab.
    <b>select * from hrhap into corresponding fields of table itab.</b>
    loop at itab.
    write :/ itab-plan_version under 'plan_version',
    itab-appraisal_id under 'Appraisal Id',
    itab-AP_START_DATE under 'Start Date',
    itab-AP_END_DATE under 'End date',
    itab-AP_STATUS under 'Status',
    itab-AP_STATUS_SUB under 'Substatus',
    itab-OBJ_DATE_SET under 'Objective setting date',
    itab-REVIEW_DATE_SET under 'Review date set',
    itab-AP_DATE_SET under 'appraisal date',
    itab-AP_DATE_EARLIEST under 'Earliest appraisal date',
    itab-AP_DATE_LATEST under 'Latest Appraisal date',
    itab-CHANGE_DATE under 'Change Date',
    itab-CHANGE_TIME under 'change time',
    itab-CHANGE_user under 'change user'.
    count = count + 1.
    endloop.
    write : 'No of records' ,count.
    rgds
    anver
    if hlped mark points.

  • How to embed the Word Document and PDF file into Crystal report?

    How to embed the Word Document and PDF file into Crystal report?
    I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
    Is there any solution to show word doc / PDF file in CR?

    Symptom :
    When embedding a pdf document into a Crystal Report, only the one page shows.
    Reproducing the Issue
    Environment:
    Crystal Reports OLE object
    Cause
    An OLE object only displays the first page.
    Resolution
    Embed multiple objects, one for each page
    Or
    Use a hyperlink to the object instead
    Hope this helps!
    Regards,
    Vinay

  • Get error when passing a server name to Crystal Report

    I am developing a desktop application using VS 2012 with CRforVS_13_0_9 and CRRuntime_64bit_13_0_10 installed.  The database is SQL Server 2012 Express.  I use SQL OLEDB in Crystal Report to connect the SQL database.  Here is part of the codes.
    Dim crTableLogoninfo As New TableLogOnInfo
    Dim crConnectionInfo As New ConnectionInfo
    Dim crTables As Tables
    Dim crTable As Table
    With crConnectionInfo
    .ServerName = Login.sServer
    .DatabaseName = Login.sDatabase
    .UserID = Login.sDBUserID
    .Password = Login.sDBPassword
    End With
    Try
    crTables = CReport.Database.Tables
    For Each crTable In crTables
    crTableLogoninfo = crTable.LogOnInfo
    crTableLogoninfo.ConnectionInfo = crConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogoninfo)
    Next
    CrystalReportViewer1.ReportSource = Nothing
    CrystalReportViewer1.ReportSource = CReport
    I get an error "Failed to open connection -- Database vendor code 17" when I run a Crystal Reports through my application.  The problem is Crystal Reports does not like the server name which is passed.  The purpose for passing a server name is to connect to different server if needed.  I am not 100% sure the error occurs after VS 2012 or SQL Server 2012 express was updated.
    Any ideas how I can fix this problem?
    Thanks,
    John

    Hi John
    First, you want to check the error code in your database documentation. The error is being passed from the db client through the report engine totally unmodified. Googling the error will also be a good idea.
    And, seeing as you are using SQL Server 2012, make absolutely sure that the SQL Native 11 client is installed.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Install and configure Tomcat post-Crystal Reports Server implementation?

    Scenario - have Crystal Reports Server 2008 V1 already installed using WACS and IIS. Everything runs great.  Want to add in SAP Crystal Dashboard Design. Looking through the documentation for Dashboard Design tells me I need to:
    1. Install SAP BusinessObjects Enterprise or Crystal Reports Server.
    2. Install SAP BusinessObjects Xcelsius Enterprise 2008.
    3. Install Live Office.
    4. Install SAP BusinessObjects Web Services.
    5. Add the Live Office keycode to the Central Management Console
    Made it past 3 and am hung up on 4. According to documentation for Unified Web Services, it looks like I need Tomcat  installed, but Crystal Reports Server doesn't offer an expand installation option.  There also doesn't seem to be any good documentation included with SAP Crystal Dashboard Design on installing web services - if it's required, why isn't it included and where can I find the documentation (assuming it's different than the Unified Web Services Administrator's Guide I found).
    It seems odd that a customer who might want to purchase an add-on for their Crystal Reports Server implementation wouldn't be able to easily add to their product..
    1)  Can I install web services to Crystal Reports Server using just the WACS or is Tomcat required? The admin guide indicates WACS is not supported for apps that use web services, like Live Office. Is that an absolute?
    2)  If Tomcat is required, can I install and configure it for an existing Crystal Reports Server 2008 V1 implementation?
    3)  If i can install Tomcat on a server with an existing Crystal Reports Server 2008 V1 implementation, is there a specific guide to doing so?

    Hi Colin,
    What is the exact version of BO/Crystal Enterprise.
    If it is BOXI R2 then follow below mentioned steps.
    To manually install the ActiveX Viewer on the client computer:
    1. Copy the ActiveXViewer.cab file from the server to the client computer, and extract its contents to a temporary folder.
    2. Move the files Crviewer.dll, Crviewer9.dll, Sviewhlp.dll, and Swebrs.dll to the System32 folder. Keep this folder visible.
    3. On the Start menu, click Run. The Run dialog box appears.
    4. In the Open box, type "regsvr32" and then drag and drop the Crviewer.dll file icon from the System32 folder onto the Run dialog box.
    5 Click OK.
    Repeat steps 3 and 4 for the files Sviewhlp.dll, and Swebrs.dll.
    You may still be prompted by the browser, choose more options and never install to avoid being prompted.  The viewer should work after that.
    Thanks,
    Purna.

  • Database, user name, password for Crystal report

    We're running BOE XI 3.1 and we use WebI reports.  One of our departments uses Crystal reports, and they'd like to be able to run them in our BOE environment so that they can refresh reports over the Web.  They uploaded a report to BOE (using Add -> Crystal Reports) but when they try to refresh it they aren't prompted for the database or a password, and the refresh fails.
    How do you specify the database / data source / data connection (or whatever it's called) for a Crystal report? How do you specify the user name and password to use for authenticating to the database?
    Thanks,
       Laura

    I am fairly new on this forum but we have been doing exactly what you are talking about with Crystal Reports published to BO XI 3.1 for a while.  There are a few things we have found that have to be done to make this work right...
    - Use the EXACT same ODBC/database connection setup on both the Crystal Report developer's machine and on the BO server
    - On the developer's machine use integrated security for the database connection
    - Then after you upload the report to BO, go into CMC and open the Crystal Report's properties.  In there under "Default Settings" you will see an option for Database Configuration.  The User and Password under the "Use original logon informstion from the report" should be empty.  Put in a valid userid and password that has access to the database.
    - Also, in the Database Configuration screen make sure the Server and Database boxes are filled-in - they will be greyed out and you can't change them (this is why you have to make sure the ODBC/database info is the same).  If they are wrong, you will need to fix the ODBC/database connection in the original RPT file.
    - Finally, you need to scroll to the bottom of the Database Configuration page and select the radio box "Use same database logon as when report is run" and then Save and Close
    Now when users run the report it will use the user and password you entered to do it.  The disadvantage is you are not using integrated security but then the users also never get prompted for a password.  We tried very hard to get integrated security to work but could not manage it.
    Hope this helps!
    Larry

Maybe you are looking for