Crystal Report Source is MS SQL Stored Procedure Causes Login Popup

My environment is this:  Visual Studio 2010 with CRforVS_13_0_9 installed.  MS SQL Server is source for all report data.  I use three different databases for all my reports.
I have a number of working CR reports that work fine in IDE and at runtime.  However, one report works in IDE report designer Main Report Preview but does not work at runtime.  Instead, it pops up the Database Login dialog box.  This particular report is the only one that I have that uses a Stored Procedure for report source data.  The following code is used for all reports.  Can someone please help me to identify what is causing this anomaly?
     ' _Options contains parameter name and value pairs, if any
     Dim oReport As New ReportDocument()
     Dim FullReportName = "MA_CustomerUsage"
     oReport.Load(FullReportName, OpenReportMethod.OpenReportByDefault)
     DoCRLogin(oReport)
     If _Options.ParameterList IsNot Nothing Then ImplementCRParameters(oReport)
     With CrystalReportViewer
          .SelectionFormula = _SelectionFormula
          .ReportSource = oReport
          .Zoom(zoomPageWidth)
          .ShowParameterPanelButton = False
          .ToolPanelView = ToolPanelViewType.None
     End With
     Private Sub DoCRLogin(ByVal oRpt As ReportDocument)
            Dim oCRDb As Database = oRpt.Database
            Dim oCRTables As Tables = oCRDb.Tables
            Dim oCRTableLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
            Dim DatabaseName = oCRTables(0).LogOnInfo.ConnectionInfo.DatabaseName
            Dim oCRConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo() _
                With {.DatabaseName = ScanInvenConStrSetting("Initial Catalog=", DatabaseName),
                      .ServerName = ScanInvenConStrSetting("Data Source=", DatabaseName),
                      .IntegratedSecurity = True}
            For Each oCRTable As Table In oCRTables
                oCRConnectionInfo.DatabaseName = oCRTable.LogOnInfo.ConnectionInfo.DatabaseName
                oCRTableLogonInfo = oCRTable.LogOnInfo
                oCRTableLogonInfo.ConnectionInfo = oCRConnectionInfo
                oCRTable.ApplyLogOnInfo(oCRTableLogonInfo)
            Next
     End Sub
     Private Sub ImplementCRParameters(ByRef oReport As ReportDocument)
            Dim oparamFields = New ParameterValues
            Dim oFieldDefs = oReport.DataDefinition.ParameterFields
            For Each CRParameter In _Options.ParameterList
                Dim oFieldDef = oFieldDefs("@" & CRParameter.Name)
                Dim oDiscrete As New ParameterDiscreteValue()
                oDiscrete.Value = CRParameter.Value.ToString
                oparamFields.Add(oDiscrete)
                oFieldDef.ApplyCurrentValues(oparamFields)
            Next
     End Sub
     Private Function ScanInvenConStrSetting(ByVal Src As String, ByVal DBName As String) As String
            Dim MyDB As String = String.Empty
            Select Case DBName.ToUpper
                Case "Database1".ToUpper
                    MyDB = Global.My.Settings.Database1ConnectionString
                Case "Database2".ToUpper
                    MyDB = Global.My.Settings.DatabaseConnectionString
                Case "Database3".ToUpper
                    MyDB = Global.My.Settings.Database3ConnectionString
            End Select
            Dim ndx1 As Integer = InStr(MyDB, Src, CompareMethod.Text) + Src.Length
            Dim ndx2 As Integer = InStr(ndx1, MyDB, ";", CompareMethod.Text)
            If ndx2 = 0 Then ndx2 = MyDB.Length
            ScanInvenConStrSetting = Mid(MyDB, ndx1, ndx2 - ndx1)
     End Function

Check what else is different with the report:
1) Connection type (ODBC vs. OLEDB, vs. Native, etc)
2) Check for subreports
3) Check that the report uses the SQL Native 10 Driver
Enable the report options "Verify on 1st refresh" and "Verify stored procedure on 1st refresh".
Comment out the db logon code as well as the parameter code and let the report prompt. Does that work?
If it does, add the db logon code but leave the param code commented out. Does that work?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter

Similar Messages

  • Is i possible to base a report on a pl/sql stored procedure

    Is i possible to base a report on a pl/sql stored procedure?
    If Yes please give directions on how to do it.
    /morten

    Hello Morten,
    In Reports 9i, with new feature JDBCPDS its possiable to create a report against a existing stored procedure.
    Using JDBCPDS, user can access any JDBC-enabled data source. You can access database like Oracle, DB2, Sybase, ODBC Data Sources, etc using supporting
    JDBC Drivers. User can also connect ODBC Data Sources like SQL Server, MS-Access, Excel etc.
    User can create a JDBC Query angainst a SQL Query or Stored Procedure in any of mentioned dataSource.
    Following is the syntax of the Oracle Stored Procedure, which can be used as Data Source with JDBCPDS.
    Steps to create a JDBCPDS Report through Report Builder : http://otn.oracle.com:8877/reports/help/ - > JDBCPDS- > How To
    //----------Package definition for Ref cursor ----------/
    package test_Procedure as
    type empcurProcedure5 is ref cursor;
    end test_tryProcedure5;
    // -----------Procedure definition ---------//
    test_Procedure(p_emp_cv out test_tryProcedure5.empcurProcedure5,
    p1 in NUMBER) is
    begin
    update emp set sal=sal + 50 where deptno > P1
    open p_emp_cv for select * from emp where deptno > P1;
    end test_Procedure;
    Procedure first parameter will be Ref Cursor and will be used to return the resultSet to JDBC Query.
    User should create first this procedure in Database. Then in JDBC Query Dialog, user can call this stored procedure by specifying procedure name.
    test_Procedure(40)
    Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more Connection and
    JDBC-Driver information.
    With Regards
    Reports Team

  • Crystal Report with Optional Parameters from Stored Procedure

    I have a client who created a Crystal Report. This report is linked to a Stored Procedure which allows for input on two criteria. Both of these critera are static values. However, the second of these parameters is setup to allow the user to enter up to 20 values. For example, the Stored Procedure needs the CARDCODE, and a set of DOCUMENTS. So the parameters/prompts would look like this...
    BP CardCode:
    Document1:
    Document2:
    Document3:
    ...etc...
    The report will just display basic document information for those documents that were entered.
    With 8.8, these parameters were changed to be REQUIRED.... not OPTIONAL. According to SAP note 1500777, this is a known bug and will be fixed in future versions. This note also states to change the criteria for the filter. However, when using a Stored Procedure, this does not appear to be an option, as the selection is defined by the data connection (and the parameters defined in the SP).
    Am I missing something? Is there a way to make the suggetion in the above note work with my Stored Procedure?
    Or, is there another way to make these parameters optional? (Do I need to change the SP?)
    Thanks!
    ~ terry.

    I have a client who created a Crystal Report. This report is linked to a Stored Procedure which allows for input on two criteria. Both of these critera are static values. However, the second of these parameters is setup to allow the user to enter up to 20 values. For example, the Stored Procedure needs the CARDCODE, and a set of DOCUMENTS. So the parameters/prompts would look like this...
    BP CardCode:
    Document1:
    Document2:
    Document3:
    ...etc...
    The report will just display basic document information for those documents that were entered.
    With 8.8, these parameters were changed to be REQUIRED.... not OPTIONAL. According to SAP note 1500777, this is a known bug and will be fixed in future versions. This note also states to change the criteria for the filter. However, when using a Stored Procedure, this does not appear to be an option, as the selection is defined by the data connection (and the parameters defined in the SP).
    Am I missing something? Is there a way to make the suggetion in the above note work with my Stored Procedure?
    Or, is there another way to make these parameters optional? (Do I need to change the SP?)
    Thanks!
    ~ terry.

  • How to Pass parameters to Crystal report 10 based on Oracle Stored Procedur

    Hi,
    I use the following code to pass the parameters:
    Rep.Tables[0].ConnectBuffer := Connection_Str;
    Rep.Tables[0].AliasName := 'REP';
    Rep.Connect.Propagate := True;
    Rep.ParamFields.ByName('Lang', '').CurrentValue := IIF(BiDiMode = bdRightToLeft, '2', '1');
    Rep.ParamFields.ByName('SESSION_ID', '').CurrentValue := IntToStr(Session_id);
    Rep.WindowState := wsMaximized;
    Rep.Show;
    The 1st parameter 'Lang' which created from crystal report pass well,
    but the 2nd parameter 'SESSION_ID' which created from Oracle Stored Procedures give the following Error:
    Error: 202 Parameter Name could not be found u2013 ParamFields.ByName
    However in MS SQL Server the above code work fine with the 2 Parameters.
    Any one has solution,

    Hello,
    Click on the businessobjects Tab above and then select Samples and dowload the sample app you for your SDK. There are a few samples for changing/setting Parameters.
    The Parameter collection has all parameters.
    Thank you
    Don

  • Crystal reports, Push method using a stored Procedure

    Could someone 'PLEASE' help!  I am trying to create and populate a Crystal Report via a stored procedure in a vb.net  asp.net web site..  I have created a dataset1.xsd and I have dragged my Stored_Proc onto the dataset.  I then use the 'DataBase Expert' and select ADO.net Datasets and select my storedProcedure from dataset1 as my selected dataset.  After that I just drag the fields onto my report.  Then via ado.net shown below I populate the dataset.  I can loop through the dataset and it does get populated correctly from the stored_proc.  yet when the report pops up in a web browser the fields are empty.  I have found that this method works fine if I drag an actual table from my database onto my dataset, but I need to populate the dataset via joins and a parameter. 
    Could someone please tell me what I'm missing!
    ***********Code Sample**************
    Dim conStr As String = System.Configuration.ConfigurationManager.AppSettings("adoConnString")
            Dim sqlConnection As New SqlConnection(conStr)
            Dim Command As SqlCommand = New SqlCommand()
            Command.Connection = sqlConnection
            Command.CommandText = "usp_GetInquiryByID"
            Command.CommandType = CommandType.StoredProcedure
            Dim Parameter As SqlParameter = New SqlParameter("@intInqID", 108)
            Parameter.Direction = ParameterDirection.Input
            Parameter.DbType = DbType.Int16
            Command.Parameters.Add(Parameter)
            Dim Adapter As SqlDataAdapter = New SqlDataAdapter(Command)
            Dim ds As New DataSet1
            Adapter.Fill(ds, "Inquirys")
            CrystalReportSource1.ReportDocument.SetDataSource(ds)
            CrystalReportSource1.DataBind()
    Duckkiller53

    Hello Scott,
    It'll be difficult to migrate CR 10 reports to SQL Server 2005, since it's not a supported combination:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr10_supported_platforms.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr10_supported_platforms.pdf]
    Also, CR 10 will be going out of support at the end of the year, so the supported platform list will not be expanded. 
    It's not a recommended combination for production use.
    Sincerely,
    Ted Ueda

  • Crystal report XI - problem to use stored procedure

    When I add a stored procedure in my new report I can't see my argument (parameter). I don't know if I forget something.
    I use an Oracle database and My procedure is :
    CREATE OR REPLACE PROCEDURE Rech_Objet_Dans_Vue (pNomVue VARCHAR2, pTexteVueContient VARCHAR2) AS
    --Date de création: 6 mars 2008
    --Utilisateur: turgema01
    --Procédure créée dans le but de faire une recherche dans le texte d'une vue qui est de type LONG. Comme il n'est pas possible d'effectuer
    --    une fonction sur un champ de type long, nous utilisons cette procédure pour sortir les noms des vues contenant notre critère de recherche
    -- Exemple d'utilisation : EXECUTE Rech_Objet_Dans_Vue('DEC%', '%GAC_PROJ_LOGIC%')
    -- Nous donnera le nom des vues dont le nom de la vue est comme ''dec% et dont le texte de la vue contient '%gac_proj_logic%'
    TYPE TYP_REF_CUR IS REF CURSOR ;
    CVUE TYP_REF_CUR ;
    -- Variables de réception du contenu de la requête
    TEXTlongTOchar VARCHAR2(32767);
    NomVue ALL_VIEWS.view_name%TYPE ;
    BEGIN
      OPEN CVUE FOR 'Select view_name, TEXT From all_views WHERE OWNER = ''FMDTEST'' AND view_name LIKE '''|| pNomVue ||'''';
       LOOP
         FETCH CVUE INTO NomVue,TEXTlongTOchar ;
      --TEXTlongTOchar := SUBSTR(TEXTlongTOchar, 1, 254); Inutile d'afficher le code de la vue puisque qu'on ne peut afficher plus de 254 caractères
      IF TEXTlongTOchar LIKE pTexteVueContient THEN
         DBMS_OUTPUT.PUT_LINE (NomVue);
      END IF;
       EXIT WHEN CVUE%NOTFOUND;
    END LOOP;
    CLOSE CVUE;
    END;

    It's been a while since I've looked at Oracle stored procedures, but I recall specifying a cursor in the first argument, from which Crystal retrieves the data. 
    Subsequent parameters are used to pass data into the stored proc, and should be exposed in the designer. 
    Example that I have:
    CREATE OR REPLACE PACKAGE vantech IS
        TYPE cursor_weak   IS REF CURSOR;
        TYPE cursor_strong IS REF CURSOR RETURN tueda2%ROWTYPE;
    END vantech;
    CREATE OR REPLACE PROCEDURE tueda2_sp_strong (
        tueda2_cursor IN OUT vantech.cursor_strong,
        tueda2_id    IN      tueda2.id%TYPE ) AS
    BEGIN
        OPEN tueda2_cursor FOR
            SELECT *
            FROM tueda2
            WHERE tueda2.id >= tueda2_id;
    END tueda2_sp_strong;
    CREATE OR REPLACE PROCEDURE tueda2_sp_weak (
        tueda2_cursor IN OUT vantech.cursor_weak,
        tueda2_id    IN      tueda2.id%TYPE ) AS
    BEGIN
        OPEN tueda2_cursor FOR
            SELECT *
            FROM tueda2
            WHERE tueda2.id >= tueda2_id;
    END tueda2_sp_weak;
    Sincerely,
    Ted Ueda

  • How to create a report with a PL/SQL Stored Procedure method

    Hi,
    We are working in oracle applications 11i on oracle database 9i.
    I have a custom procedure that is used to send Payslip SMS messages to staff.
    I am thinking about creating a request for that procedure so the HR user can run it himself at the end of every month from the HR responsibility.
    any hints , guidelines or references will be appreciated...
    thanks...

    See the example in MOS Doc 73492.1 (Creating a PL/SQL Concurrent Program in Oracle Applications)
    More details in the Developer Guide - http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf - Chapters 16 and 17
    Srini

  • MS SQL Stored Procedure problem

    Hi,
    I am using BO XI R2, Crystal Report XI and MS SQL Database.
    I found a strange error when generating the report using my java application if the crystal report is using MS SQL stored procedure. The error encountered :
    com.crystaldecisions.sdk.occa.managedreports.ras.internal.a: Cannot open report document. --- Custom table prefix specified in the InfoStore does not exist.  This is a configuration problem. Please contact your system administrator.
    cause:com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Custom table prefix specified in the InfoStore does not exist.  This is a configuration problem. Please contact your system administrator.---- Error code:-2147467259 Error code name:failed
    detail:Cannot open report document. --- Custom table prefix specified in the InfoStore does not exist.  This is a configuration problem. Please contact your system administrator.
    This is when the code executed is:
       reportClientDocument = reportAppFactory.openDocument(report, 0, Locale.ENGLISH);
    If the report does not use the stored procedure, it's ok.
    If i run the report  (with stored procedure) from CMC using the default table prefix (in database config tab), it's able to generate the report.
    If i select custom table prefix and specify the custom table prefix value with the same value as in the default table prefix, it could not generate the report and error stated that the table could not be found.
    Please enlighten me if you have use MS SQL database for reporting with BO XI R2.
    Thanks.

    That means it's not a SDK-specific error. 
    Once it's resolved in InfoView, it'll likely be resolved with your app.
    You might want to open a support case with SAP. 
    Sincerely,
    Ted Ueda

  • Creating XML report using PL/SQL Stored Procedure

    Hi Friends,
    I am working on an xml report with the xml source as PL/SQL Stored Procedure.
    I am referring the exercise shown in the following link to understand the process:
       http://orclapp.blogspot.com/2012/02/developing-xml-publisher-report-using.html
    In the example shown in the above link I could not understand the following:
    1) In the following procedure, the out parameter 'retcode' is not used at all.
       What is the importance of this parameter.
        PROCEDURE REPORT (errbuf  OUT VARCHAR2, retcode  OUT VARCHAR2, p_product_id   IN     NUMBER)
    2)  After the xml data is prepared and put to 'l_result' Clob variable, the following
        Loop is executed. I am not able to appreciate why the following loop is required.
         LOOP
             EXIT WHEN l_length = l_retrieved;
             IF (l_length - l_retrieved) < 32000
             THEN
                SELECT SUBSTR (l_result, l_retrieved + 1) INTO l_xmlstr FROM DUAL;
                l_retrieved := l_length;
                fnd_file.put_line (fnd_file.output, l_xmlstr);
             ELSE
                SELECT SUBSTR (l_result, l_retrieved + 1, l_offset)
                  INTO l_xmlstr
                  FROM DUAL;
                l_retrieved := l_retrieved + l_offset;
                fnd_file.put_line (fnd_file.output, l_xmlstr);
             END IF;
         END LOOP;
    3) In the example it is not explained how the concurrent program gets the xml data?
       I assume it is written to a file using the following line of code:
        fnd_file.put_line (fnd_file.output, l_xmlstr);
       I would appreciate if anyone can throw some light into my above queries so that I can understand the process clearly.
    Thanks & Regards
    Hawker

    Hi 32000 in the code is a 'safe' size smaller than the max available 32767, the loops purpose is to move through the entire thing in chunks that will be manageable in the limits of the data type.
    Btw; if you are in Oracle e-business suite then you can also use Oracle reports very simply to create XML output.
    If you have reports developer all you need to do is put raw sql (without any 'artifice' to create XML) in the report SQL and then set the reports output to XML in the program definition in Oracle e-business.
    best regards,
    Robert.

  • Unable to get the data from ms sql stored procedures using crystal report 10

    Dear,
    I am using the crystal report 10 and MS SQL 2000. I created stored procedures and after making the connection, i am unbale the data from that procedure. When i run stored procedure on MS SQL server it works fine.
    Please help me.
    Best Regards
    Pankaj
    [email protected]

    Dear,
    I am using the crystal report 10 and MS SQL 2000. I created stored procedures and after making the connection, i am unbale the data from that procedure. When i run stored procedure on MS SQL server it works fine.
    Please help me.
    Best Regards
    Pankaj
    [email protected]

  • Actuate 7 PL/SQL Stored Procedure Call Before the Report Run.

    Hi,
    I need a small help to call a pl sql stored procedure in actuate 7.
    I wrote a code a on component content
    Function runProc(procName as String, connection As AcDBConnection )
    ' Insert your code here
    Dim statement As AcDBStatement
    Dim results as string
    ' Prepare statement
    Set statement = connection.Prepare("BEGIN " & procName & "; END;" )
    If statement Is Nothing Then
    results = "Failed to prepare statement."
    results = results & " " & connection.GetSpecificErrorText( )
    results = results & " " & connection.GetGeneralErrorText( )
    Exit sub
    End If
    ' Execute sprocoutparam
    If statement.Execute() = 0 Then
    results = "Stored procedure " & procName & "execution failed."
    results = results & " " & connection.GetSpecificErrorText( )
    results = results & " " & connection.GetGeneralErrorText( )
    Else
    results = "Stored procedure " & procName & " execution success."
    End if
    ShowFactoryStatus(results)
    End FunctionNow this Code I am calling on the Chart Start Method
    Sub Start( )
        Super::Start( )
        ' Insert your code here
        Dim ProcName as String
        Dim connectionObject As AcDBConnection
        ProcName="DELETECUSTOMER(1234)"
        runProc(ProcName, connectionObject )
    End SubNow when i Run the Report i get this Error !
    NewReportApp::Frame::Chart%Start(9): Invalid procedure reference. - (runProc)
    1 Semantic Error(s) found
    Thanks,
    Asif

    hi,
    Finally Figured Out Here....
    Steps to Call the Stored Procedure In Actuate 7
    1 – Right Click on Content – Frame and go to properties and method Tab.
         1 – Click on New Button to you create own custom method.
         2 – Write the following code :
    Sub runProc(procName as String, connection As AcDBConnection )
         Dim statement As AcDBStatement
         Dim results as string
         Set connection = GetConnection()
         'Prepare statement
         Set statement = connection.Prepare("BEGIN " & procName & "; END;" )
              If statement Is Nothing Then
                   results = "Failed to prepare statement."
                   results = results & " " & connection.GetSpecificErrorText( )
                   results = results & " " & connection.GetGeneralErrorText( )
                   MsgBox "Procedure Not Called....Badddddd"
                   Exit sub
              End If
         ' Execute sprocoutparam
              If statement.Execute() = 0 Then
                   results = "Stored procedure " & procName & "execution failed."
                   results = results & " " & connection.GetSpecificErrorText( )
                   results = results & " " & connection.GetGeneralErrorText( )
                   MsgBox "Procedure Not Called....Badddddd" & results
              Else
                   results = "Stored procedure " & procName & " execution success."
                   MsgBox "Procedure Called....Wowwww"
              End if
              ShowFactoryStatus(results)
    End Sub2 – Now let call the stored procedure before our actual report query runs.
         1 - Right Click on Content – Frame and go to properties and method Tab.
         2 - Select the Start Method and Click on Override button.     
         3 - Write the following code:
    Sub Start( )
         Dim ProcName as String
         Dim connectionObject As AcDBConnection
         Set connectionObject = GetConnection()
         ProcName="XXTEST ()"
         runProc( ProcName, connectionObject )
        Super::Start ( )
    End Sub3 – Now design your report as usual using the Textual Query window.

  • Pl/sql stored procedure as data source

    Hi I am a newbie
    I have a pl/sql stored procedure inside a package which uses a SYS_REFCURSOR as it returns a result set.
    Can I use this procedure as a Data Source using the wizard?
    When I use the Data source configuration wizard I get a list with only the tables and views.I don't see any stored procedures
    Thanks

    Here is a sample procedure..
    CREATE OR REPLACE PROCEDURE TEST_USER.TEST_PROCEDURE1 ( p_cursor OUT SYS_REFCURSOR)
    AS
    BEGIN
    OPEN p_cursor FOR
    SELECT C1,C2
    FROM TEST_USER.test_table4procedure;
    END;
    When I execute the procedure, I see the results. The goal is to put the results of the procedure into a different table.
    Unfortunately I have close to 0 zero knowledge in both java and jython.
    Please help.
    NOTE: For the life of me, I have no clue why the "other" system wants it to be a stored procedure, when we can use a view/table and make everybody's life easier (aka K.I.S.S.)
    Regards,
    Dave Null

  • Added new parm to an existing SQL stored procedure CR 11 doesn't like it

    Hi
    I have added a new parameter to an existing SQL stored procedure (SQL 2000).  This stored procedure is currently being called from a Crystal XI report.  It prompts for a date which works great.  (The report was created with this parameter).  I added a new parameter to the stored procedure.  When I do a preview in Crystal, it prompts for the new parameter, but is NULL when I look at the SQL query and it brings back no data.  If I try to verify the database, it tells me that I am missing parameter @ProcessType (varchar(5))--(name of new parameter).  I have physically added this parameter to the crystal report with the select expert and still no luck.  I have already tried renaming the procedure but am unable to update datasource location because of this parameter.  The report is very detailed and I do NOT want to create a new report.

    Unfortunately, I have tried and retried to do this.  Nothing changes.  I usually would get a message like database has changed, proceeding to fix report.  I don't get this.  It merely tells me database is up to date and only returns the 1 parameter, yet when I go to the datasouce and try to update it, it tells me that I have not supplied the new parameter.
    I have tried everything, from closing Crystal reports and then going so far as to reboot my machine, just in case their was some kind of caching going on.
    I have even asked other people I work with to look at it to make sure I am not doing something dumb...

  • Query Engine report error with Crystal Report 9 And MS SQL SErver 2000

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...
    Refer the above statement highlighted in BOLD. That statement is WRONG. Select what ???? Try any one of the below statement,
    select ''
    --or
    select 0
    --or
    select null
    Regards, RSingh

  • Pass date range parameter  to SQL stored procedure.

    Hi,
    I'd like to pass a date range parameter from Crystal Reports to a sql stored procedure. Does anyone know if this is possible?
    I've had no problem passing standard datetime (single value) paramaters to and from but am struggling with getting a range value parameter to work.
    Environment: Crystal Reports 10/XI and SQL 2000 MSDE version or SQL 2005 Express Edition.
    Any help would be appreciated.

    C5112736 wrote:>
    > And then these 2 formulas 'Formula # 1' and 'Formula # 2' can be used to pass on to the stored procedure.
    Can someone please demonstrate exactly how to use formula results as date parameters to a SQL stored procedure?  Keep in mind, there are two parameters to the stored procedure.
    I have gleaned this much: Use Add Command and insert the procedure with
    EXEC ServerName.dbo.usp_sprocName;1 '{?StringParameter}'
    but if I try to do
    {CALL ServerName.dbo.usp_SprocName({@Formula1},{@Formula2})}
    then it gives the error "No value given for one or more required parameters". 
    Both of the parameters are VARCHAR(50).
    I have finally found this link: [http://msdn.microsoft.com/en-us/library/ms710248(VS.85).aspx|http://msdn.microsoft.com/en-us/library/ms710248(VS.85).aspx]
    This Microsoft site defines the format of the ODBC escape sequences, but I still do not know how to convince Crystal to insert it's parameter results or formula results.
    Pulling what's left of my hair out . . .
    ~ Shaun

Maybe you are looking for

  • Can I upgrade my Laptop Hardware?

    I have HP pavilion G6 Notebook Q6470PA#ACJ is product code Inter Core I5 2340M 2.4 GHz and graphic card is AMD 6470M Hard Disk is 600 GB Can I upgrade My grpahic card or Hard Disk space? If yes , how can i do it?

  • Print one cheque for many open items

    Hi all, has anyone encountered the Problem where they have to pay a vendor say more the 50 items but need to print this out on one cheque. im having a problem where the F110 programme prints uses 4  cheques, voides the firt three due to overflow, and

  • Setup Error when Formatting iPod

    I have a 4G iPod 20GB. When the setup prompts me to plug in the iPod, and then to format it, I get this error: assertion b failed at .\iPodFormatFAT32.cpp line 1064 Then the setup shuts down. Has anyone else experienced this?

  • Apple tv and home sharing using lots of data??

    Just purchased apple tv and turned on home sharing to listen to songs in my iTunes library through my home theater.  I am not streaming video or listening through iCloud. My satellite data usage went through the roof. About 350MB in alittle over an h

  • Which drone is right for you: Tool to help your career

    Have you ever thought about how a drone could help you with your career? If you haven't then maybe it is about time you did. They are pretty powerful now and gaining popularity on all sorts of workplaces in surprising ways. Today's drones can be valu