Cant edit sql expression in crystal reports XI

when i right click on a sql expression it tries to log into the repository (which we dont use)..
If I actually log into the repository, the sql expression code still isnt there..
how do I edit my sql expressions..

Hi Shanon,
If the report is saved to your Business Objects server then the report would prompt for log on repository.
If the report is saved to your desktop and your database is available then it wont prompt you.
Thanks,
Naveen.

Similar Messages

  • EDITING SQL SCRIPT IN CRYSTAL REPORTS

    I just installed Version 12 and am trying to edit SQL scripts in Crystal Reports that were created in Version 8.  When opening the Database tab on the Main Menu, the Query Panel is greyed out and not accessible.  I can view the SQL Query but cannot edit it.  If someone can advise me what to do I would be very appreciative.
    Edited by: Frank Romano on Mar 18, 2009 4:17 PM

    Hi Frank,
    Here is the SAP Note that says that you cannot edit SQL from Crystal 9 and later
    Symptom
    In Crystal Reports (CR) 8.5 and earlier, it is possible to edit the SQL statement in the 'Show SQL Query' dialog box. Doing so allows the report designer to modify the SQL statement that CR generates. Starting with Crystal Reports version 9, users are no longer able to modify the SQL in the 'Show SQL Query' window.
    How can you control the SQL statement that Crystal Reports sends to the database?
    Resolution
    To control the SQL statement that Crystal Reports 9 and later uses, use the 'Add Command' feature to create a Command Object. The 'Add Command' feature replaces the ability to edit SQL statements in the 'Show SQL Query' dialog box. Use this dialog box to write your own SQL command (query) which will be represented in Crystal Reports as a Table object.
    More Information
    Additional information about creating and using Command Objects ('Add Command') can be found on our support site and within the Online Help file contained in Crystal Reports.
    On our support site search for the technical brief, cr_query_engine.pdf and knowledge base article c2016641 at
    http://support.businessobjects.com/search
    Keywords
    OBJECT ADD COMMAND EDIT SHOW SQL QUERY DATABASE ACCESS MENU MODIFY SQL Crystal Reports Show SQL query Command object , c2017389
    Regards,
    Raghavendra

  • How to enable show SQL Query in Crystal report tool

    Hi,
    How can we enable the show SQL Query under Database tab in crystal report...
    We have a requirement to modify the SQL query in Crystal reports.
    Thanks,
    Gana

    Gana,
    CR has an "Add Command" feature that will allow you to use hand-coded SQL as your data source.
    Look at Defining an SQL Command in CR's online help (F1).
    If a command was used in the original report creation, it's a simple matter to go in and edit that SQL.
    If the report was not originally built w/ a Command you may find it difficult to switch over. In most cases it easier to start over from scratch, creating a new, blank report, that uses the command.
    Jason

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

  • Passing parameter into SQL statement in Crystal Reports

    Hi all,
    I would like to call Crystal Reports in JSP. I can handle it well now. But I hope to let user input their selection criteria before printing out the report. I know how to get the parameter value in JSP, but I really dunno how to pass these parameter values into the SQL statement in Crystal Report. Actually, is it possible to do so?
    If anyone has idea, please tell me. Thx Thx!
    Regards,
    Betty

    Dear Sir,
    I want to use Crystal Report as a web base using JSP. But, I am getting how to call .rpt file in .jsp file & passing of parameter.
    If you have any idea, please reply as early as possible
    Thanking U.
    My userid = [email protected]
    Regds
    Pankaj..

  • 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

  • Where to find the SQL log by crystal reports

    i want to watch the sql log by crystal report loading,but i don't know how to find it , somebody knows it? thanks advanced!

    Hi Wang,
    If you mean to look at the SQL query CR generates, then open the report in the CR Designer > Go to the Database option on the top > Click Show SQL.
    -Abhilash

  • 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 Edit SQL Query in Crystal XI?

    Post Author: sk8skiier
    CA Forum: Data Connectivity and SQL
    I'm wondering if any of you can help me.  We've recently upgraded from Crystal Reports 6 to Crystal Reports XI, the version on my machine is 11.0.0.2178 and is the Professional version.
    In Crystal 6, it was very easy to change the data that you wanted returned by editing the sql query, but in XI, I can only find a way to view the query, not edit it.  Am I missing something?
    Thanks for the help, I appreciate it.

    Post Author: yangster
    CA Forum: Data Connectivity and SQL
    Good news and bad news.  Bad news is you can't edit the viewed sql statement anymore in any version of Crystal 9 or higher.Good news is you can write custom sql commands instead of dealing with having to join tables.  So if you know the sql you want to produce that was in version 6 just copy and paste it into the add command feature and edit it in there and you will be exactly where you want to be.

  • SQL expression in the report title

    How can I add SQL expression in the title or in narrative text.
    For example I want to say:
    "Sales Report for Categories: ?X? (for dates ?Y1? - ?Y2?)"
    where ?X?, ?Y1? and ?Y2? are result of SQL statements:
    I can query ?X?: 'select category_name from category_table where date > current_date -7'
    ?Y1? 'select (current_date - 7) from dual'
    ?Y2? 'select current_date from dual'
    Thanks

    Hi,
    No need to craete any presentation variable if its CURRENT_DATE-7 and CURRENT_DATE
    Just pull two columns and change fx of those two columns to CURRENT_DATE-7 and CURRENT_DATE
    Add narrative view instead of title view and in narrative give @n and @m where n and m are positions of columns from left starting from 1.(if columns are at 2 and 3 position then @2 and @3).Give rows to display as 1.You can even add some html tags to get color code,bold etc to narrative view.
    Dont forget to hide the columns that you pulled.
    Regards,
    Srikanth
    Edited by: Srikanth Mandadi on Oct 10, 2010 8:43 AM

  • SQL Expressions in Crystal XI

    I am developing Crystal reports to be dispursed with our Great Plains products.
    I am finding that in order for the SQL Expressions to successfully execute I have to enter database.tablename.  The problem is we cannot hard code the database name for the product.  I have set the ODBC etc, but when the report is called from the reportviewer via the COM object the expressions fail.  Any thoughts?

    Hi Carolyn,
    You are an OEM Partner so what I suggest is you create a case on line, talk to your other Rep's there on how to get a User account and/or create the case. A rep will work with you on this issue directly to find a solution or work around.
    Also be aware that XI is out of support so no changes can be done to the product. Best effort only trying to resolve the problem.
    I suggest you log the case first with the Report Design Team and then if you still have issues with the application you can create a new case for the RDC app.
    Thank you
    Don

  • SQL Exception in Crystal Reports

    When i am trying to connect through the JDBC connection from the File -> Log On or Off Server ,i am getting this error
    SQL Exception:[SQL State]null:[Error Message]
    java.io.IOException:Failed to load
    Please help me out with this

    Hi
    Instead of going in File -> Log On or Off Server
    Try to click on File --New -- Expend create new connections and try to create a JDBC connection.
    Also try to search 'HOW TO CREATE JDBC connection for CRYSTAL REPORTS' to find a SAP note.
    -Sastry

  • Cannot Edit Universe Query in Crystal Reports.

    Hi,
    We have Crystal Reports 2008 SP5 installed on a Terminal Server where our report developers can go to develop reports. We have a 4 node BOXI R2 SP4 cluster on the opposite side of a firewall, and have opened the firewall ports so that Crystal Reports can connect to this BOXI cluster and a universe on that cluster, and the developers can publish their reports.
    For some developers, and the issue is intermittent for them, if they open one of those Crystal Reports to edit the universe query, they go into Database Expert and right click and choose Edit query, nothing happens. The Query Editor window does not open. They don't get any errors, other than the Universe Query editor window refuses to open. No errors on the BOXI server side either.
    They can work for a few days and everything works fine, when suddenly this behavior starts. When they report the issue to me and I try it myself, it works fine. I've checked their access rights repeatedly and have even given a user temporary full admin rights to rule out any rights issues, but they stll get this behavior.Just as strange, the problem suddenly will disappear. Often, they will send me an message several hours or days later stating that everything is OK again and they can edit their universe queries in the same reports that refused to work earlier.
    I've also checked the BOXI cluster nodes to see if possibly one of the services had a missing -requestport setting, and was choosing a random port that the firewall could be blocking, but everything looks fine. If I login to the BOXI cluster servers and try one of the reports, I can edit the query just fine.
    Any suggestions? I'm at my wits end.
    Edited by: Perry Provst on Nov 11, 2010 9:18 PM

    I had the same issue and it was because the Universe is having Oracle as Database and I dont have any Oracle drivers installed on my machine. Once i have installed Oracle drivers i was able to view/edit the query panel.
    Hope this would help you.

  • Using Sql Functions in Crystal Reports

    Can SQL table-valued functions be used in Crystal Reports?  The only options I see in the Database Expert are Tables, Views, and Stored Procedures.

    Hi Dan,
    Are you referring to user-defined SQL functions? If yes, then these are not accessible in Crystal Reports.
    You would need to create a stored procedure which calls the function and does the processing and use this procedure in CR.
    - Abhilash

  • Mapping Access 2010 Query Expressions In Crystal Reports

    Hello,
    I am new to Crystal Reports.
    When I change the datasource of a Crystal report to an Access 2010 query that has an expression in it, it is not able to map that calculated field. The expression in question is a simple iif statement that yields a yes or no, given the condition that's met. It works fine in Access and is very basic.
    But I can't get it to map in Crystal - so I tested it by changing the expression in Access to defect:"x" - even simpler. It still shows up in Crystal as unmapped when I point to the query and hit the Crystal update button.
    Can Crystal map expressions in an Access 2010 query, or does it just handle straight table fields that occur in a table or query?
    Regards,
    Dan

    Hello Dan,
    When pointing your report from one data source, to another one, the reason it does not initially map the field, it is because they are seen as defined with different data type. One is defined with 255 characters, and the other one is seen as a Memo. In the "Map Fields" window, uncheck  the option "Match type", and you will then be able to map your expression field manually.
    Note that the MS Access provider, send the information to Crystal Reports regarding the data type, and the fact it is different, it is because the provider used send different information to Crystal Reports, and if a field is defined with more than 255 characters, it will be seen as a memo field.
    There is nothing that can be done in Crystal Reports to change the data type as it is provided by the database provider.
    By design, it does not list a memo field as a database field you can group by, because large string generally contains a description, comments, ... and this type of information is generally always different, so there is no reason to group by those field with that data type.
    Having said that, it is possible to group by a formula that contains the memo field to give the flexibility to bring back a portion of the characters that the memo field contains. To do so:
    1. Create a formula that uses the memo field like:
         {Database.MemoField}   
    2. Save and close the formula.
    3. Under the menu "Insert", select "Group"
    4. In the "Insert Group" window, select the formula created in the previous
    steps to group by.
    This information is available in the SAP Knowledge Base Article:
         1214731 - Unable to group on a memo field in Crystal Reports
    I hope the above information answered your questions.
    Patrick

Maybe you are looking for

  • Use Of LOV In Query Panel

    Hi All, I would like to have LOV in query panel one which is created using view critiria. Kindly let me know the best way to implement this one............... Regards Anandkumar S.M.

  • Dual monitor Apple TV

    Hello I have just purchased Apple Tv 3rd gen. And I have a mid 2011 15'' MBP that supports Airplay. I was now wondering if it was possible to run e.g. my MBP Desktop as Desktop1 and the Apple tv as an extended desktop, lets call it desktop 2 so that

  • Price update on the Invoice Level

    Hello gurus,    If I want to update my pricing on the Invoice level, what are the steps that I need to follow to carry out the configuration? As of now, we have the pricing setup only for sales orders and the same prices are copied on to the Invoice,

  • Static data in runnable objects of threadpool

    hi all, I have a threadpool and schedule Runnable objects into it. The runnble objects are run as per schedule. But I want to declare and initialize a static data in the runnable object. And I expect it to be initialised only once ie, the first time

  • Inbox Search (CRM5.1)

    Hi Gurus, need some help here. I have a requirment, that I only need to do search for service ticket by using quick search drop down. But once i select that it will bring over all the interaction details. How i can restrict the search only for servic