How to extract embedded SQL from crystal reports 8.5

I have a report created in version 8.5 with data source as crystal query (.qry) published on Crystal enterprise server.
I have lost Qry file but the report is running by executing the embedded SQL. Is there any option where I can extract the SQL statement that is embedded in the report file.

Hi,
Go to 'Database' menu
select 'Database Expert....' submenu
It'll open 'Database Expert window. On right side of this window it shows 'Selected tables'. Under that it shows databsae name and the query used. Right click one it and you should see
Edit,
View, and
Add to Repository options.
Hope this will help.

Similar Messages

  • How to get actual error from Crystal Report

    We are using Crystal report in web service.
    We faced some problem due to crystal report unexpected error.
    Refer the below error message.
    Xception E NSF NSFZ1100 20100608 145511565 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
    Xception E NSF NSFZ1100 20100608 145511972 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
    at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e, Boolean suppressMessage)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e)
    at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPageNumber()
    at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPage()
    at CrystalDecisions.Windows.Forms.DocumentControl.ShowLastPage()
    at CrystalDecisions.Windows.Forms.PageView.ShowLastPage()
    at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.TotalPageCount(ReportDocument Rpt)
    at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.Print(BaseReport RptDefinition)
    at Biz.Nissan.Cats.CORE.REPORT.MCTLIST260Print.Print(IFData ifData)
    at Biz.Nissan.W3.CATS.BC.Service.DistributeService.ExecuteMpp()
    How we get the actual error from crystal report?
    Thanks in Advance

    Same as
    crystal report unexpected error in Web service (IIS)
    Closing this thread.
    Ludek

  • How Web intelligence is differ from Crystal reports

    How Web intelligence is differ from Crystal reports

    it depends on what's the business requirement that will influence what kind of reporting format you want to use.
    to list few differences:
    1. CR more suitable for complex reports webi used more for general adhoc tor quick reporting.
    2. CR can be published to enterprise or can be saved to the disk and can be accessed using crystal reports SDK: CRJ or CR.NET. Where as webi is strictly accesses only via Enterprise. There are no webi SDKs for accessing webi reports in unmanaged ( not published to enterprise) mode.
    3. CR SDK\ RAS more powerful than Report Engine SDK( used for webi)
    4. To view a CR you can use page server and cache server. To view a webi report, you use only webi processing server, no cache server available in BO framework. Similar for scheduling webi reports its the webi processing server that does it all.
    5.  CR offers more options to connect to database than for webi.
    6. CR has mutliple 3rd party exporting formats. Webi has fewer.
    7. CR can be designed from CR designer desktop tool, or CR.com or on demand or using RAS SDK ( at runtime). Webi report can be designed in webi rich client desktop tool or java reporting panel( JRP) available in Infoview or any app that can load this JRP applet. in 3.1 you can use Java Report Engine SDK to create webi report from scratch at runtime ( like RAS for CR).
    So not that 1 is better than other, it really depends on your business requirements are.

  • How to generate Bar codes from Crystal Report

    I understand that Bar Codes can be genrated from Crystal reports. I am using CR 2008 and trying to convert my Inventory items to bar codes. it does convert it and I can see the bar codes but it looks like; just a garbage and scanner does not recognze it plus the numners are missing @ the bottom.
    Anybody has ever tried this and have some simple instructions to start with.
    Any help will  be appreciated highly.
    Regards,

    Hi,
    What barcode are you using and what barcode font? 
    If you are using Code39 or Postnet then you need to make sure your values are formatted properly by creating a formula and using the barcode functions. 
    Have a search in the forum for barcodes.  It's been talked about a lot and you should find your solution. 
    Good luck,
    Brian

  • Connection to Embeded Database from Crystal Reports XI

    I am writing an application that uses a SQL Server Mobile Database.  I have not been able to determine how to connect to this database through Crystal Reports.
    1.  Is it possible?
    2.  How do I provide the connection string that uses only 2 parameters?
    Gene

    When you create a DSN the ODBC string expects information for Server, Database, Username, and Password.  When you are working with an Embedded Database, typically you have a filename and a password (which can be null).  I was not able to create a DSN for this connection.
    What I have been able to get working is the following:
    1.  Create an ADO DataSet Object within the application.
    2,  Create the CR attaching ot the DataSet Object.
    3.  In the application code where you are attaching the CR to a viewer you must
          a.  Define a Data Adaptor for the DataSet.
          b.  Define a Data Table and load the table from the DataSet GetData() method.
          c.  Define the full path to the report file.
          d.  Define a ReportDocument Object
          e.  Load the report path in the the ReportDocument Object
          f.  Define the DataTable as the Data Source to the ReportDocument Object
          g. Define the Viewer ReportSource as the ReportDocument Object.
    I have been able to use this approach on 3 separate reports and returned the correct data.  A lot of steps, but it is working.
    GFKerls

  • How to retrieve Statistics info from Crystal Report file

    In Crystal Reports designer,  if you go to File|Summary Info that dialog has two tabs. The second tab is called "Statistics" which contains the following:
    Last Saved By
    Revision number
    Total Editing Time
    Last Printed
    Created
    Last Saved
    How can I retrieve this information via either the .NET SDK or the RAS SDK?

    Hi David,
    Actually I did understood your question. I did say that some of that info is available from the hard drive file system.
    Use the Object Browser and find this source:
    public System.DateTime CreationTime { set; get; }
        Member of System.IO.FileSystemInfo
    Looking at the properties you'll see all the info you are looking for is there. As I said, some of the info is available from the Summary API's and some are available from the file system. The file system is not CR but basic Microsoft API's. Search their help for more info on how to use them.
    Thank you
    Don

  • How to generate Income Statement from Crystal Report

    Hi, Experts,
    I have:
    SAP BUSINESS ONE 2007A
    CRYSTAL REPORT 2008
    I have a problem with generating Income Statement related reports from CRYSTAL.
    For example,
    My revenue accounts are: '411000-00-00' and '412000-00-00', my expense accounts are: '510000-00-00' and '520000-00-00'.
    I'd like to generate the Income statement for Dec 1 - 31, 2008. Please advise how to generate this report. Thanks!
    Lorrie

    Hi, Experts,
    Currently, what I tested to generate the income statement is:
    1. find out the account detail table: JDT1. My database path: Company Name -> dbo -> Tables -> JDT1
    2. follow the standard report menu: add 'JDT1', show 'RefDate', 'ContraAct'; group by'Account', summarize by 'Account'.
    I have the following problems:
    1. with this method, I am not able to find the amount for each transaction. Because the amount does not have a name as 'RefDate' or some other fields.
    2. the 'Account' and 'ContraAct' are all shown as 'SYS00000001685'. It's sysmtem message but not the actual account number or contra account number.
    Thanks!
    Lorrie

  • Is there a way to Extract all formulas from Crystal Reports files?

    Hi:
    I have about 40 Crystal Reports (.rpt files).  I need to go through each one and look at formulas if a certain variable/value is used since it has currently changed.  It is taking way too long and not to mention inefficent to open each file, look through any place where there could be custom formulas such as when to suppress - etc.  Is there are way to easily exact all custom formulas from all those report into say a Text file so I can do a Search for it?  That would be the easiest way to find what I'm looking for.
    I have Crystal Reports XI.
    Thanks in advance for your help.

    One option is to use a tool such as rptInspector.  See: [http://www.softwareforces.com/Product/ri/pro/3/rptInspector.htm|http://www.softwareforces.com/Product/ri/pro/3/rptInspector.htm]

  • How to protect ECC performance from Crystal Reports execution?

    Hello,
    We built Crystal Reports (CR) which reports from SAP FI InfoSets. These reports may take a long time to execute and potentially can impact all ECC users.
    AFAIK CR are executed in dialog mode on ECC.
    We know that from CR perspective we can only limit the number of records returned.
    One of the options is to create a dedicated application server instance for CR. But it looks like a costly one.
    Other options:
    Move data to BW every 15 minutes and execute reports from there.
    Schedule reports at night to minimize users impact.
    We are using ECC 6 EP3, BW 3.5, BOE XI 3.1 (with SAP Integration Kit) and Crystal Reports 2008.
    Can you please let me know if any of you have the same challenge.
    Thank you,
    Serge

    Hi Ingo,
    I'm using [BusinessObjects XI Integration for SAP Solutions Installation and Administration Guide|https://websmp209.sap-ag.de/~sapdownload/011000358700001646962008E/xi3-1_bip_sap_install_en.pdf] (from 2008-12-02). There are some references to batch publishing from BW. The same applies to your document [BusinessObjects Integration Kit for SAP - Installation and ConfigurationSDN Community Day - BusinessObjects Enterprise with SAP|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a00ee3b2-5283-2b10-f1bf-8c6413e0898f].
    When we schedule CR in BOE it still runs in dialog mode on ECC.
    Could you please be more specific where we can define switch to make it run as background process on ECC.
    Thank you,
    Sergey
    Edited by: Sergey Vlasov on Apr 16, 2009 11:56 AM

  • How B.I accelerator differs from Crystal Reports

    Hi B.I's,
        I like to know which (B.I accelerator or Crystal Reports ) has better perfomance and fastest query response time

    Hi Bala,
    We have the BI Accelerator for high performance analytics (i.e. hardware and extra license fees) to make your large queries respond quickly.
    SAP BI Accelerator comes into picture to address performance problems of  BI queries.It is a plug-in appliance delivering:
    *Scalability in terms of expandable blade hardware infrastructure delivered by IBM or HP.Its used in all cases where aggregates can be used
    Real Time Info cubes:closed requests can be indexed by SAP netweaver BIA and open request will be read 4m database.
    Multi Provider:An indexed infocube as a part of multi provider will use BIA.Note overall query performance is defined by slowest Infocube in a MP enviornment.
    The tool used to create formatted reports is the Crystal Reports Designer, which is installed on the client.
    Before BW depends on Crystal reports to format reports.With BI 7.0 we don't need to depend on Crystal reports to format reports.we can format reports with Report designer.
    My perception with BIA is that this is a mistake in product marketing for SAP. It makes it sound like if you have lot of data, you're going have performance problems so you need to invest in additional hardware and we are going charge you an additional license because the one you already bought doesn’t do the job. SAP needs to rethink this.
    Assign points if useful...
    regards,
    rudra pradeep reddy

  • How to extract embedded images from a Pagemaker file

    this is using version 6.5
    select image.
    File > Export > Graphic
    set the file type and save

    >>says that this export technique does not work, it produces a low res screen version of the file.
    Are you certain the original files were any better?
    My preferred method of doing this works well, but it takes a few extra steps. I'd make a high-res PDF out of the PM file, then pick apart the PDF to extract the graphics. Are the graphics raster or vector? If they're raster, you can use Acrobat's Touch-up Object tool to open them in Photoshop. If they're vector, you can open the PDF in Illustrator and save out the graphics from there.
    HTH

  • Extracting SQL Queries from Crystal Reports

    I am trying to find a way or a utility to be able extract SQL queries from Crystal reports into a text file for documentation purposes.  These queries are not in the repository, they were entered into each of the reports when the reports were being built and I can't find a way to extract them.  Any ideas/suggestions?

    Hello,
    CR doesn't have the ability, and I don't recall if this has ever been asked previously. Great suggestion for the Idea Place tab in the up right corner of this page.
    If you find a developer it's quite simple to get:
                // log onto the server and then get the SQL.
                rptClientDoc.DatabaseController.LogonEx("van-w-13-dwilli", "xtreme", "sa", "pw");
                GroupPath gp = new GroupPath();
                string tmp = String.Empty;
                rptClientDoc.RowsetController.GetSQLStatement(gp, out tmp);
                // show the SQL but easy enough to save the SQL text to a file.
                MessageBox.Show(tmp, "Data Source Set and SQL Statement", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Of course you need to open the report first, lots of samples on how to...
    Thank you
    Don

  • How to write SQL in crystal report that can reuse SQL execution plan cache?

    I write the following SQL with crystal report parameter fields, and it is connecting to SQL 2005
    Select Name from Customer where CustID = '{?CustID}'
    The SQL profiler show that It is an ad-hoc query, how to write parameterized SQL which can reuse Execution Plan.
    Edited by: Chan Yue Wah on May 14, 2009 3:17 AM

    Since there are too many report, it is not possible rewrite all. Is that crystal report do not have option to change how it query the database ?

  • Upgrading from CR 10 Embedded Edition to Crystal Reports (server) xi

    We recently upgraded from CR10 Embedded edition to Crystal Reports Server Xi. In our application the users access the reports via a web page (where they enter the paratemeters) and the report is displayed using the Crystal Reports viewer. The CR server xi was recently installed and all the SDK references have been as mentioned in this document: https://boc.sdn.sap.com/node/724. But now when the reports are accessed via the web page we are encountering the error 'All of your system's 0 Concurrent Access Licenses are in use at this time or your system's license key has expired. Try again later or contact your administrator to obtain additional licenses.---- Error code:-2147217397 Error code name:enterpriseLogonFailed'
    Can anyone share your thoughts or provide suggestions?
    Thanks,
    in advance!
    SG.
    Edited by: Shekhar Gorthy on Aug 4, 2008 10:58 PM
    Edited by: Shekhar Gorthy on Aug 4, 2008 10:59 PM

    Hello SG,
    A common issue that arises when migrating from Crystal Enterprise 10 Embedded to Crystal Reports Server XI applications that use the Report Application Server (RAS) SDK.
    The RAS supports two modes of operation - "Unmanaged" and "Managed" reporting.
    With CE10Embedded, you'd be using Unmanaged Reporting, where you'd copy the Crystal Report rpt file to the RAS server, and reference it by path when opening it in the ReportClientDocument class instance.
    With Crystal Reports Server XI, you can use either Unmanaged Reporting, or Managed Reporting.  Managed means you'd publish the rpt file to be "managed" by the CR Server Central Management Server (CMS).  In code, you'd log onto the CR Server, retrieve the ReportAppFactory from the CMS, retrieve the report from the InfoStore, and pass it into the ReportAppFactory to create the ReportClientDocument.
    I'm assuming you're still using "Unmanaged Reporting" with Crystal Reports Server.
    If so, each report request will be authenticated in the CMS using the "Guest" account, and each request will use up a Concurrent Access License (CAL).
    If you're getting the exception on the first report request, then that likely means you have the complimentary copy of CR Server XI, that comes with zero CALs and five Named User Licenses.
    You won't be able to use unmanaged reporting with the complimentary version.  You may want to modify your code to use managed reporting.
    If you're getting the exception on the sixth or subsequent request, then that likely means you've purchased CR Server XI, and the base edition comes with 5 CALs.
    If you contact sales, you can inform them of the number of users you have, and how frequently they request reports, and sales can recommend a license to match your requirements.
    Sincerely,
    Ted Ueda

  • See sql query from crystal report without crystal report

    see sql query from crystal report without crystal report 

    Hi,
    Depends on datasource type but you could have a look at ODBC trace or if you have access to the SQL Server you could use profiler to monitor the session.
    Regards,
    Craig
    And this will only be of use if you know which Server/Insstance/Database the Report is connecting to...
    Please click "Mark As Answer" if my post helped. Tony C.

Maybe you are looking for