Unused stored procedure parameters marked with a check mark in crystal reports

Post Author: epowers0213
CA Forum: General
Hello,
I have some Crystal Reports that currently use stored procedures as their datasources (I am in the process of modifying them to use datasets instead).  Some of the original reports have check marks next to stored procedure parameters which I cannot find as being used anywhere in the report.  Is this a legitimate possibility? (Some of them do not have check marks, however, so it is not consistent.)
More Info:  I am using Crystal Reports within Visual Studio 2005.  I have looked through each report in every way I can think of to find if a parameter field is being used anywhere - I have checked all formula fields, the formatting formulas for sections and individual fields, the record and group selection formulas and the grouping and sorting experts, along with any subreports (although some of them have no subreports).
(I have read on other forums that exporting a report definition file is another way to look for where fields or parameters are being used, but this does not appear possible within Visual Studio 2005.)
In some cases, I have gone ahead and replaced the stored procedure datasource location with a dataset (generated based on the same stored procedure).  When I do this, Crystal automatically deletes the stored procedure parameters from the report, and I have still been able to run the modified report successfully - at least it looks ok and nothing is complaining.  So is it possible that these parameters were actually not being used anywhere on the report although they were marked with a check mark?
Any help would be greatly appreciated!  I want to make sure I am not changing the function of these reports somehow without knowing it...
Thank you!

Are you referencing another database that Crystal can't see? Also, you can try and copy the SQL to a command object in Crystal to see if it behaves differently there.

Similar Messages

  • Drop unused stored procedures

    hi,
    i need to drop unused stored procedures from our Oracle9i database.
    How do I check and confirm that the stored procedures are no longer used by the application?
    Our application is using jsp, servlet and ejb. Some stored procedures might also be called from other stored procedures, triggers and PRO*C programs.
    best regards,
    dayang

    You are snookered in the absence of adequate documentation.
    Some stored procedures might also be called from other stored procedures, triggers and PRO*C programsThat's the easy bit - you can find which database objects use other database objects using the USER/ALL/DBA_DEPENDENCIES views. But programs outside the database? No chance.
    If you want to make yourself unpopular yoy could invalidate every single stored procedure and see who screams but that's not user friendly - besides some packages might only be used once a quarter, once a year even - financial routines are the obvious example.
    If you have logging in place you might try switching it on, but I suspect you don't have that.
    In short, if you don't know who's using a package you are better off leaving it in your schema. Just make a note for yourself to properly document your next system.
    Cheers, APC

  • Can i use Stored procedures and triggers with SDK

    hi all
    How to use the stored procedure and Triggers with SDK, can i get a sample code
    Regards
    Salah

    Hi, Salah.
    Use "Exec" in your query to run procedures.
    SAPbobsCOM.Recordset     oRS;
    oRS = (SAPbobsCOM.Recordset)pCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    oRS.DoQuery ("EXEC YourStoredProcName");
    Triggers are not supported in SDK.
    Regards,
    Aleksey

  • When you first download Pages, there is a welcome screen with a check mark, in a box, at the bottom left corner that says show this window when Pages opens. How do I recheck that box?

    When you first download Pages, there is a welcome screen with a check mark, in a box, at the bottom left corner that says show this window when Pages opens. How do I recheck that box?

    Alex,
    Go to Pages Help, Welcome to Pages.
    Jerry

  • Why is my phone number greyed out with no check mark in Messages under Settings?

    Why is my phone number greyed out with no check mark in Messages under Settings?

    The number for the iPhone is grayed out but if no check mark under you can be reached by iMessage at, can you select the number below start new conversations from?

  • I5 still using ios6 as of last night the phone will not connect to my Internet, in settings it says connected with the check mark however there is no wifi icon at the top of phone, have done everything possible to resolve... My i4 and pads are fine,

    I5 still using ios6 as of last night the phone will not connect to my Internet, in settings it says connected with the check mark however there is no wifi icon at the top of phone, have done everything possible to resolve... My i4 and pads are fine, I've had this phone for 8 months with no problems until last night , AT&T not any help,apple wants $ I thing it's a software problem.. Any one had this issue?

    - Restart the device. http://support.apple.com/kb/ht1430
    - Reset the device. (Same article as above.)
    - Reset All Settings (Settings > General > Reset > Reset All Settings)
    - Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    - Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    - Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • Every tune in my library is marked with an explanation mark and produces a report " The song ..... could not be used because the original file could not be found. Would you like to locate it?"  Probably yes - but how ?

    Every song in my library, both purchased or downloaded from a CD, is marked with an exclamation mark and produces a report " The song ......... could not be used because the original file could not be found.  Would you like to locate it ?"     Well, probably yes - but how ? and why necessary ?  HELP !

    It would help to have more background about your iTunes collection such as if you keep it on an external drive, or if you have moved or renamed anything recently.  iTunes is very sensitive to you renaming or moving files or folders involved with your media.  iTunes only keeps a reference to where a media file is located  and then goes to look for it when you try to play it. If you have changed things since it was added to itunes then it's like me sending you to look for a friend in my addressbook but that friend has moved.
    The other possibility is your computer is starting to lose files.  Again, the computer uses a reference database to tell it where on the drive to look for a file. If that database gets corrupt then it starts losing files.  Use Dsk Utility's first aid to verify your hard drive.

  • How to create an External Content Type with SQL Stored Procedures Parameters and query it in a SharePoint App

    Hi,
    I'm new to SharePoint 2013 I want to be able to query a MSSQL database from a SharePoint App I have tried to create an External Content Type (ECT) which is produced from a MSSQL stored Procedure, this procedure has several parameters which are needed to
    filter the data correctly.  From here I want to produce an external list which I can then query from a c# SharePoint app.  If I leave the filters in the ECT null then the list is of course empty or if enter a default values the results are limited
    for the app to query so are no good.
    I want to dynamically pass values to the ECT when querying from the app, is this not possible.  Should I just be returning everything in an external list and then letting the query in the app filter the data, this seems inefficient?
    Is this the best way to do this or should I be doing this differently?
    Please can someone point me in the right direction.
    Thanks

    Hi Pandra801,
    When you create a the external content type, please try to add a filter based on your select statement.
    http://arsalkhatri.wordpress.com/2012/01/07/external-list-with-bcs-search-filters-finders/
    Or, try to create a stored procedure based on your select statement, then create ECT using the SQL stored procedure.
    A step by step guide in designing BCS entities by using a SQL stored procedure
    http://blogs.msdn.com/b/sharepointdev/archive/2011/02/10/173-a-step-by-step-guide-in-designing-bcs-entities-by-using-a-sql-stored-procedure.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to change Stored Procedure Parameters to a value in a formula?

    My Client is using Crystal 8.5 on MSSQL 2005.  The crystal report is called from vb6 application, the client does not have access to the vb6 source code (they are upgrading vb.net), therefore I can only work in the crystal report.
    The vb6 code updates 2 formula fields Start_Date and End_Date in the crystal report.  I would like to pass these values as parameters to the stored procedure and suppress the "Enter Parameter Values" box.
    Stored Procedure: tcs_AMP_eSuper
        Parameters:  @startDate, @EndDate
    What I would like in crystal:
        {?@startDate} = {@Start_Date}
        {?@endDate} = {@End_Date}
    Thanks
    Barry

    Hi Barry,
    You can't run a Stored Procedure with Parameters unless you fill in the values and you can't get the values unless you prompt for them or provide then in the connection properties in code.
    So in your app just fill in the parameter values when logging in. Create your own Param UI or get them from somewhere from a preselected list. As long as they are valid then CR won't prompt for them.
    I don't understand why this is such a problem for you? Parameters will prompt, it's by definition. Create a UDL file, open NotePad and then rename it to *.udl. Double click the file and the OLE DB Provider log on UI will pop up. Connect to your SP with parameters and then save it. Open in edit mode and you'll see the SQL to open the SP with Values in the connection.
    Something like: exec YourSP;1, startdateValue, Enddate value
    So in code use that line in the log on method and the user won't get prompted. How you fill in those dates is up to you.
    Don

  • Stored Procedure in access with parameter name

    Hi, i'm new in JDBC.
    I came from Ado.Net.
    I want to call a stored procedure in access and set my parameters by name and not by index.
    When i try to call the SP with params by index it works as expected,
    but with param names it give me this exception:
    java.lang.UnsupportedOperationException
    Is there a way to call SP with parameter names?
    BogN,

    Well, it still doesn't work. Here is part of the code, have a look please.
    public DisplayQueryResults() {
       String studattUrl = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=D:/StudAtt/StudAtt.mdb";
       String mustbUrl = "jdbc:odbc:mustb";          
       try {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          studattConn = DriverManager.getConnection(studattUrl);
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          mustbConn = DriverManager.getConnection(mustbUrl, "sa", "");               
    private void getTable() {
       try {
          stmtStudAtt = studattConn.createStatement(resultSet.TYPE_SCROLL_SENSITIVE, resultSet.CONCUR_READ_ONLY);
          stmtMustb = mustbConn.createStatement();
          CallableStatement callSP = studattConn.prepareCall("{call mustbFaculty}");
          resultSet = callSP.executeQuery();
          displayResultSet(resultSet);
       }

  • HowTo: Using special characters in SQL passthrough stored procedure parameters?

    Hi all,
    I am creating a Visual FoxPro 5.0a application, where I am trying to call a stored procedure in my Oracle database with the following SQLEXEC command (SQLEXEC is the Foxpro function to send sql statements to the ODBC driver):
    lcSQL = "{Call Insert_FRB.NewItemPage('KABO)n$i,30000000000', '184927', '184927', 'MAIR2001011216151314', 'MAIR')}"
    /* Sorry the above command should of course not break accross pages*/
    lnSuccess = sqlexec(1,lcSQL)
    With the parameters given, I get the ODBC error: "Connectivity error: [Oracle][ODBC Oracle Driver]Syntax Error."
    I get the same error, when using the Oracle ODBC 32bit Test utility.
    The call works just fine, if I replace the "$" in the first parameter 'KABO)n$i,30000000000' with a "normal" character, e.g. 'KABO)nAi,30000000000'. Oracle handles the $-character just fine, the stored procedure is working properly when called directly in SQLPLUS8.
    I am using the Oracle ODBC driver sqo32_73.dll Version2.00.03.01.
    Questions:
    How do I have to submit the "$" to the ODBC driver, in order to be passed through to Oracle unchallenged?
    Does anybody know of other special characters, which are not accepted by the ODBC-drivers for Oracle?
    Thanks to any hints,
    Peter

    You could try downloading the Oracle 8.1.7 client and the latest
    Oracle8 ODBC driver, install them on your machine, and verify
    that the failure goes away. That's obviously the acid test.
    I can tell you that when I worked in the ODBC driver group we
    did identify and fix some bugs where our parser wasn't skipping
    string literals. If this particular bug wasn't fixed earlier,
    it almost certainly was then (I'm guessing that work was done 12-
    18 months ago).
    Justin

  • Pass values to stored procedure parameters

    I have a stored procedure in MS SQL 2005 that has a datetime parameter.  I want to be able to use the stored procedure but I only want to pass a date value and assume all times for this date. 
    When i add the stored procedure to the report it automatically creates the parameters and I don't know how to bypass them.
    Is it possible to create a date type parameter and then pass it to the stored procedure parameter?

    Hi Johua,
    Yes, you can create a date type parameter and pass it to a stored proc that accepts a datetime parameter.
    This will, however, need a container type of a report.
    1) Create a new report and also create a date parameter in this report
    2) Insert the original report as a subreport in, perhaps, the report header/footer section
    3) Create a formula with this piece of code:
         datetime({?Date},time(0,0,0));
    4) Link this formula with the subreport's stored proc parameter
    -Abhilash

  • Getting Stored Procedure Parameters Programmatically

    Hi,
    Does anyone know of a way to programatically return the paramaters of a stored procedure? I am building a code generator and have found the all_procedures view to get the stored procedures name now all I need is a way to get the parameters so I can execute the SP and get the column names they return.
    Thanks,
    Chuck

    Play around with this;;
    select OBJECT_NAME, PACKAGE_NAME, ARGUMENT_NAME, POSITION, DATA_TYPE, IN_OUT, DATA_LENGTH, DATA_PRECISION, DATA_SCALE from user_arguments where UPPER(object_name) = UPPER(:object_name) and package_name is null order by position
    The reference to package names is because this code will work for stand-alone procedures/functions. If the procedure/function is in a package then you would specify the package name to get the parameters.

  • Stored Procedure Parameters - Setting a default value

    Using SQL 2005, 2008, 2012
    This should be easy, but think that I am making it hard. Below is the stored procedure that I want to call. If I want to pass a 'N' to @SearchDBsFlag how can I retain the default values for @DBName and @PreviewTextSize? I do not want to explicitly pass the
    NULL, 100. I want it to pick up the default values that are defined in the stored procedure.
    Create Procedure [dbo].[ifs_util_Find]
    @SearchText varchar(8000)
    , @DBName sysname = Null
    , @PreviewTextSize int = 100
    , @SearchDBsFlag char(1) = 'Y'
    , @SearchJobsFlag char(1) = 'Y'
    , @SearchSSISFlag char(1) = 'Y'

    I did look up "flag coupling" and all I found was posts from you.
    Start with http://en.wikipedia.org/wiki/Coupling_(computer_programming). The terminology varies; what I call "flag coupling" is one version of Content
    coupling. 
    Cohesion:
    This is how well a module does one and only one thing; that it is logically coherent. The modules should have strong cohesion. You ought to name the module in the format "<verb><object>", where the "<object>" is a specific logical unit in
    the data model. There are several types of cohesion. We rank them going from the worst form of cohesion to the best
    1) Coincidental 
    2) Logical
    3) Temporal
    4) Procedural
    5) Communicational
    6) Informational 
    7) Functional 
    Coupling:
    If modules have to be used in a certain order, then they are strongly coupled. If they can be executed independently of each other and put together like Lego blocks, then they are loosely or weakly coupled. There are several kinds of coupling, which are ranked
    from worse to best: 
    1) Content 
    2) Common 
    3) Control 
    4) Stamp 
    5) Data 
    This is covered briefly in a chapter on writing stored procedures in my book on SQL PROGRAMMING STYLE. In the meantime, you can read DeMarco, Yourdon, Constantine, Myers or several other of the pioneers. 
    This is FAR more basic than SQL programming. This is what you are supposed to know before you write any code in any language. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

Maybe you are looking for

  • How to install windows 7 or Ubuntu??? Please help

    I tried to change the boot order, disable secure boot, enabled legacy boot order but nothing worked. I'm not able to boot from pen drive or DVD Drive. All these pen drives and  DVDs are booting in other systems but not mine. Please help me. Thanks &

  • Customer Refund - Customer Deposit

    Dear Experts, Here we have one scenario - We received 25000 INR Advance from Customer and Recorded Deposit, Customer used 20000 INR from Deposit, Now we have to refund 5000 INR to Customer what is the detail process we have to follow to do Customer R

  • MacBook Pro running slow if at all and font conflicts

    My MacBook Pro is really not responding and I keep getting pop ups that say there is a conflict with a font file.  I was just on it on Sunday morning and it worked just fine.  Later that evening these font conflicts appeared, but I hadn't done anythi

  • Reg. UWL Configuration

    Hi Friends,      I am trying to configure UWL in Portal 7.0. I am following a document which says that i have to register the systems in System Administration -> System Configuration -> Universal Worklist Administration. But I dont see any such link

  • Run-time Error '429' when copying queries from one userid to a new userid

    Hello, One of the users is having an issue when copying queries from an old user id to a new user id. She is getting the visual basic run-time error '429' - active x component can't create object while copying. This is not consistent.  From what I ca