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

Similar Messages

  • Error with Connection to JDBC MS SQL Server 2000

    Hi,
    I have this error:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]End of stream was detected on a read.
    And here is my connection statment:
    Connection conn = DriverManager.getConnection ("jdbc:microsoft:sqlserver://MYPC:8081","*****","*****");
    Any ideas?
    Many thanks in advance.

    java.sql.SQLException: [Microsoft][SQLServer 2000
    Driver for JDBC]End of stream was detected on a
    read.
    Any ideas?http://support.microsoft.com/?kbid=823896
    if that doesn't work, try this:
    http://www.mcse.ms/archive90-2005-9-1649153.html
    thanks.
    mp

  • Java and MS SQL Server 2000 problem, please help

    please help me. I am using java and MS SQL Server 2000, and I'm trying to access and verify the login. I'm getting the following error message: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
    Can any please help in this regard.
    String userNumber = (String)userNumField.getValue();
    char[] userPasswordArray = userPasswordField.getPassword();
    String userPassword = new String(userPasswordArray);
         try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                java.sql.Connection connection = java.sql.DriverManager.getConnection("jdbc:odbc:Dikolobe_Data");
                java.sql.PreparedStatement statement = connection.prepareStatement(
                        "SELECT USER_NUMBER, USER_PASSWORD, USER_CLASS, USER_STATUS " +
                        "FROM SYS_USER " +
                        "WHERE (USER_NUMBER = ? AND USER_PASSWORD = ?);");
                statement.setString(1, userNumber);
                statement.setString(2, userPassword);
                java.sql.ResultSet result = statement.executeQuery();
                if(result.next()) {
                    String userStatus = result.getString(4);
                    if(userStatus.equals("logged on")) {
                        String loginErrorMessage = "User with number: " + userNumber + " is already logged on.";
                        javax.swing.JOptionPane loginErrorPane = getNarrowOptionPane(72);
                        loginErrorPane.setMessage(loginErrorMessage);
                        loginErrorPane.setMessageType(javax.swing.JOptionPane.ERROR_MESSAGE);
                        javax.swing.JDialog loginErrorDialog = loginErrorPane.createDialog(null, "Login Error");
                        loginErrorDialog.setVisible(true);
                    else {
                        String userClassification = result.getString(3);
                        if(userClassification.equals("Administrator")) {
                            AdminHomePage newAdminHomePage = new AdminHomePage();
                            newAdminHomePage.setVisible(true);
                        else if(userClassification.equals("Educator")) {
                            EduHomePage newEduHomePage = new EduHomePage();
                            newEduHomePage.setVisible(true);
                        statement = connection.prepareStatement(
                                "UPDATE SYS_USER SET USER_STATUS = ? " +
                                "WHERE USER_NUMBER = ?");
                        statement.setString(1, "logged on");
                        statement.setString(2, userNumber);
                        statement.executeUpdate();
                        dispose();
                }

    Doesn't the following link give you enough information?
    http://www.google.com/search?q=invalid+descriptor+index
    Anyway .. This error means that the given ResultSet column index which you're trying to retrieve the value from is out of the range.

  • Differnce Between Oracle 9i And MS SQL Server 2000

    Hi,
    What are the difference between Oracle 9i And MS SQL Server 2000.
    Thnaks

    Some links
    http://www.google.lv/search?hl=lv&q=oracle+sql+server+difference&meta=
    http://asktom.oracle.com/pls/asktom/f?p=100:1:487512552646613::NO:RP::
    http://www.mssqlcity.com/Articles/Compare/sql_server_vs_oracle.htm
    http://www.wisdomforce.com/dweb/resources/docs/MSSQL2005_ORACLE10g_compare.pdf
    But you have to remember one big thing - I've not seen yet one compare that was completely indifferent to any of the included DB's. So you can be sure that every doc that you get on MS website will say that SQL server is better, every doc on Oracle website will say that Oracle is better. Every doc on other websites will say that better DB either is:
    1) DB that has payed for the reserach paper
    2) DB that was mostly used by the researchers
    So of course you should be very cautious about each paper you get.
    Gints Plivna
    http://www.gplivna.eu

  • Error with crystal report using SAP GUI

    Hi,
    While using crystal report in sap gui i get the following error. I already googled and only found one thing on this forum that talks about this and it was never solve. Can you please help me? Thank you
    Errors in Crystal Reports Installation(SupportsSAPQuery)
    Message no.ALVHT218
    Diagnosis:
    This function requires that Seagate Crystal Reports and the Functional Area drivers(InfosetDrivers) from Seagate software are installed.
    This sotware is either not available on your frontend or has been installed with errors
    System Response:
    The action has been terminated
    Once again
    thank you

    Hi
    Please check if you have installed all the SAP transports which are required for Crystal Reports to run based off SAP.
    Regards
    Sourashree

  • Query engine failed error for crytal report refreshing to new params in jsp

    Using licensed weblogic 8.1 server in production mode. Weblogic workhsop has inetegrated supprot for crystal reports 9. Using standalone report & accessing sql server through odbc, i got result for different parameters passed.
              Problem Area : Passing parameter to have specific report causes unexpected query engine failed error in com.crystaldecisions.report.web.viewer.CrystalViewer class. If viewer.refresh method is commented, then static (already saved) report is displayed through jsp. But using viewer.refresh method for dynamic report genertaion for new parameters through jsp gives above error.

    Hello
              I'm experiencing the same problem. Please let me know if you've any solution.

  • How to open Crystal report 9 with crystal report 8

    Hi All,
    I was using Crystal report 9(Seagate Crystal Report). I prepared report on crystal report 9.
    Now I am using Crystal report 8(Seagate Crystal Report).
    When I try to open my reports(that was build on version 9) it gives error: *"Failed to open document"*
    and *"Invalid report version".*
    Could any one please suggest me how I can open and use report of version 9 with version 8.
    Thanks in advance,
    Cheers

    This is the Oracle Forms-forum. Post your question in a crystal-reports-related forum.

  • Problem of Teststand3.1 database and microsoft SQL Server 2000 personal edition

    I have a problem when using teststand database function with Microsoft sql server 2000. the error(seen in attached screenshot3.jpg) is:
    "An error occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
    An error occurred executing a statement.
    Schema: Generic Recordset (NI).
    Statement: UUT_RESULT.
    [Microsoft][ODBC SQL Server Driver][SQL Server]unable to insert NULL value to column "ID", table "test.dbo.UUT_RESULT";This column is not alowed to be blank. INSERT Failed. Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    [Microsoft][ODBC SQL Server Driver][SQL Server]terminated.
    Source: TSDBLog"
     Here I listed my proceess.
    1, Configure in SQL Sever, please see attached screenshot0.jpg
       a, Open SQL
       b, build a new database with the name of test
       c, import the data from "C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Models\TestStandModels\Database\TestStand Results.mdb"
    2, Configure Microsoft SQL sever: please see attached screenshot1.jpg
       a, Open windows Control Panel and select "Data Sources (ODBC). Under system DSN tab, add a SQL server data source
    3, Configure teststand database option, see attached screenshot2.jpg
       a, configure logging option, enable
       b, configure datalink
       c, select schemas of "Generic recordset (NI)
       d, No change on the tabs of "statements" and "Columns/Parameters"
    4, run an seqence file with the proess model of SequentialModel.Seq.
    Attachments:
    Screenshot.zip ‏425 KB

    Thanks Scott,
      The database function is OK now after I changed imported tables in SQL Sever.
      Actually, I once tried anothor method that you refered by using the scripts
    located at: <TestStand>\Components\NI\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql. Attached is the error screenshots, please help me on this.
    Thanks
    Jacky
    Attachments:
    Error.jpg ‏59 KB

  • *****Error in Microsoft JDBC drivers for SQL Server 2000****

    hi guys,
    I am getting the following error in my application. The error seems to have thrown by Microsoft JDBC drivers for SQL Server 2000
    The application tries to execute the the following query when the error is thorwn:
    SELECT getDate(); // getDate is a function which returns currebt date time. The error is thrown occassionally. Other times the same query is executed correctly by the application.
    Can any one help with this one.
    The error is:
    java.lang.NullPointerException
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.setupTempFiles(Unknown Source)
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.<init>(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.chainInServiceImplResultSets(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.getNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonGetNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.getCurrentDate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.RecordUpdateControl.updateRecord(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processUpdate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processInterface(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.InterfaceHandler$ProcessRecord.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    rgds,

    Hi,
    Did you ever get an answer to this? I am also having this problem.

  • WebLogic Server 7.0 and MS SQL Server 2000

    Hi,
    I'm trying to create a connection pool in WebLogic Server 7.0 for MS SQL Server
    2000, but I always get the following error message:
    <Error> <JDBC> <001060> <Cannot startup connection pool "mcp-ConnectionPool
    " weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Login failed for user 'JavaUser'. Severity 14, State 1,
    Procedure 'null null'
    , Line 0 Unable to connect, please check your server's version and availability.
    at weblogic.jdbc.mssqlserver4.TdsStatement.microsoftLogin(TdsStatement.java:2823)
    at weblogic.jdbc.mssqlserver4.MicrosoftConnection.beginLogin(MicrosoftConnection.java:44)
    When I try to connect to the database with dbping, I get the following error:
    Error encountered:
    java.sql.SQLException: Login failed for user 'JavaUser'. Severity 14, State 1,
    Procedure 'null null'
    , Line 0 Unable to connect, please check your server's version and availability.
    I'm able to connect to the same database with WebLogic Server 6.0 (SP2) using
    the exact same settings. Does anyone have an idea of what is wrong here? Do I
    need an updated driver?
    Here is an extract from my config file:
    <JDBCConnectionPool CapacityIncrement="5" DriverName="weblogic.jdbc.mssqlserver4.Driver"
    LoginDelaySeconds="5" MaxCapacity="20" Name="mcp-ConnectionPool" Password="{3DES}A4GocdgagGc="
    Properties="user=JavaUser" Targets="myserver"
    Any help would be greatly appreciated,
    Koen

    Hi. This is very odd. Would you please try a simple standalone program,
    such as below? Tell me what it does in both environments.
    Joe
    import java.sql.*;
    import java.util.*;
    public class foo
    public Connection connection;
    public static void main(String args[])
    throws Exception
    Connection c = null;
    try
    Properties properties = new Properties();
    properties.put("user", "sa"); // change for your properties...
    properties.put("password", "");
    properties.put("server", "QA75");
    Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
    c = DriverManager.getConnection("jdbc:weblogic:mssqlserver4", properties);
    System.out.println("got a connection.");
    catch(Exception exception1)
    exception1.printStackTrace();
    finally
    if (c != null)
    try { c.close(); } catch(Exception ex) {}
    Koen Van hamme wrote:
    Hi,
    I'm trying to create a connection pool in WebLogic Server 7.0 for MS SQL Server
    2000, but I always get the following error message:
    <Error> <JDBC> <001060> <Cannot startup connection pool "mcp-ConnectionPool
    " weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Login failed for user 'JavaUser'. Severity 14, State 1,
    Procedure 'null null'
    , Line 0 Unable to connect, please check your server's version and availability.
    at weblogic.jdbc.mssqlserver4.TdsStatement.microsoftLogin(TdsStatement.java:2823)
    at weblogic.jdbc.mssqlserver4.MicrosoftConnection.beginLogin(MicrosoftConnection.java:44)
    When I try to connect to the database with dbping, I get the following error:
    Error encountered:
    java.sql.SQLException: Login failed for user 'JavaUser'. Severity 14, State 1,
    Procedure 'null null'
    , Line 0 Unable to connect, please check your server's version and availability.
    I'm able to connect to the same database with WebLogic Server 6.0 (SP2) using
    the exact same settings. Does anyone have an idea of what is wrong here? Do I
    need an updated driver?
    Here is an extract from my config file:
    <JDBCConnectionPool CapacityIncrement="5" DriverName="weblogic.jdbc.mssqlserver4.Driver"
    LoginDelaySeconds="5" MaxCapacity="20" Name="mcp-ConnectionPool" Password="{3DES}A4GocdgagGc="
    Properties="user=JavaUser" Targets="myserver"
    Any help would be greatly appreciated,
    Koen

  • How to connect Java and Microsoft SQL Server 2000

    hi,
    could anyone please teach me how to connect Java and SQL Sever 2000?? if possible could you guys provide me with an example??? i could hardly find any relevant resources about it...
    Thanks ~!

    thanks for the information...
    by the way hv any working module on it?? i'm new to
    both Java and Microsoft SQL Server... Thanks againFirst things first... you should read this:
    http://java.sun.com/docs/books/tutorial/jdbc/
    This is microsofts official JDBC Driver: http://www.microsoft.com/sql/downloads/jdbcregister.asp
    Install it and the documentation has some usage examples

  • How to save and retrieve an image in JSP/Java and MS SQL/server 2000?

    Hi All,
    I am uploading an image from the JSP page and want to store it in MS SQL server. I have made a column by the name "COMPANY_LOGO" with data type as image MS SQL/server 2000. How do I save the full image in the table and how do I display the thumb nail image on the JSP page???
    Regards,
    Raj

    BEFORE YOU POST A TOPIC HERE: Please be sure your topic is related to features or functionality of this site. This forum is not for general technology questions. Not sure which forum to use? Try searching for your topic in the "Search Forums" element on the left panel.
    Post your question in
    http://forum.java.sun.com/forum.jspa?forumID=45
    or
    http://forum.java.sun.com/forum.jspa?forumID=48
    Do not reply here

  • Move datafiles and logfiles (Portal 6.0 and Microsoft SQL Server 2000)

    Hello,
    I have installed EP 6.0 with KMC and TREX. The database is MS SQL Server 2000.
    The datafiles and the logfiles of the portal are respectively located in the directory "C:\Program Files\Microsoft SQL Server\MSSQL\Data" and in "C:\Program Files\Microsoft SQL Server\MSSQL\LOG".
    I want to move these files in the disk D.
    How can I do it ?
    Is the procedure described in the site http://support.microsoft.com/kb/224071 correct ?
    I thank you for your help.
    Regards,
    Anne-Marie

    Francesc,
    Microsoft Exchange Server Integration in EP6.0
    The Microsoft Exchange server (subsequently called the Exchange server) is integrated using the Microsoft Exchange server transport. This transport integrates the scheduling capabilities of Exchange Server with SAP Enterprise Portal 6.0. The following versions of Microsoft Exchange server can be integrated with the Enterprise Portal.
    · Exchange Server 5.5 SP4
    · Exchange Server 2000
    · Exchange Server 2003
    The transport uses Microsoft Collaborative Data Objects 1.2.1 (subsequently called CDO) to access data from the Exchange server.
    You can check for more details on;
    http://help.sap.com/saphelp_nw04s/helpdata/en/7a/ec015c8446d447a83776d40f31c84f/frameset.htm
    Regards,
    James

  • Siebel 8.1 and MS SQL Server 2000

    I am upgrading our Siebel 7.8 instance running on MS SQL Server 2000 to Siebel 8.1 and MS SQL Server 2008. My original intent was to upgrade the database first (so that we would be runing Siebel 7.8 on MS SQL Server 2008), and then upgrade the application to 8.1.
    I have been running into resource issues with regard to the SQL Server upgrade. My question is:
    Can Siebel 8.1.1 run on MS SQL Server 2000?
    Thanks.
    -- Ken

    Hi
    You can migrate your 7.8 to MSSQL 2008 as this is a supported platform.
    Usually in an upgrade you will upgrade your development db platform as a source of your 8.1 upgrade process.
    For information, a reference document is the Siebel System Requirements and Supported Platforms aka SRSP
    [SRSP 7.8|http://download.oracle.com/docs/cd/E11886_01/V7/CORE/SRSP_78/SRSP78.pdf]
    [SRSP 8.1| http://download.oracle.com/docs/cd/E11886_01/V8/CORE/SRSP_81/SRSP_81.pdf]
    Please refer to the online version as this document is frequently updated.
    Enjoy
    Evtloglvl

  • XA and MS SQL Server 2000

    I am currently working on a project that proposes to use XA transactions with MS
    SQL Server 2000. I have been searching for information on this subject and have
    found information that worries me with regard to MS SQL Server 6.5 and XA transactions.
    The information I have gathered argues against using MS SQL Server 6.5 with XA
    transactions, mainly because it allows only 1 active transaction at a time.
    Does anyone have any information as to whether MS SQL Server 2000 has the same
    problem? I am thinking of suggesting a different XA RM as I have found no information
    stating the contrary.
    Many Thanks,
    Mick.

    Mick;
    I have already tried SQL Server with Tuxedo, and believe: it´s works, but I still
    try it using Tuxedo with a big load.
    The file attached has two source files with a short comments explain how to do,
    and what to do.
    If you prefer, I can send you the MSVC++6 Project
    My regards,
    Andre David
    Systems Engineer
    "Anthony Fryer" <[email protected]> wrote:
    >
    If it still uses the 'dbenlistxatrans' function, then I think it's a
    safe bet to
    say that it still is a poor mans XA. Avoid SQL Server and XA is a good
    rule of
    thumb.
    "Mick Fisher" <[email protected]> wrote:
    I am currently working on a project that proposes to use XA transactions
    with MS
    SQL Server 2000. I have been searching for information on this subject
    and have
    found information that worries me with regard to MS SQL Server 6.5 and
    XA transactions.
    The information I have gathered argues against using MS SQL Server 6.5
    with XA
    transactions, mainly because it allows only 1 active transaction ata
    time.
    Does anyone have any information as to whether MS SQL Server 2000 has
    the same
    problem? I am thinking of suggesting a different XA RM as I have found
    no information
    stating the contrary.
    Many Thanks,
    Mick.
    [source_example_using_sqlserver.zip]

Maybe you are looking for

  • How to measure a VXI board's thermal / air flow performanc​e?

    I am looking for information on requirements and testing procedures as they relate to the VXI bus and cooling. Specifically, I would like to make some temperature measurements on some VXI cards to see if the increase in airflow temperature (temperatu

  • Error during installing oracle client on windows XP

    Hi everybody, I want to install Oracle Client on Windows XP. I downloaded and installed Client version 10g on several PCs. But one of them gives me error - 'oui.exe - error'. Cant start oui.exe. Is it problem of Windows XP or ? I just cant start GUI

  • Encrypt Decrypt in RSA or DSA

    hai all how to encrypt and dcrypt using RSA DSA ?????? how secured using RSA or DSA instead of SHA please explain Thans below a code using SHA public String encrypt(String password)throws NoSuchAlgorithmException MessageDigest sha = null; byte[] b1 =

  • Incorrect IDoc type ZSBC052 in the ALE definition of the source system

    hi guyz, i am getting the following error while checking the source system in bi. Incorrect IDoc type ZSBC052 in the ALE definition of the source system     RSAR     373      please guide through your expertise. regards, raps.

  • Debugging Forms on IE 5.0

    Hi, I've been developing Forms 6 applications e deploying them on the Web using JInititator. Now I'm trying to deploying the same applications using IE 5 JVM. I followed all steps described in the document entitled "Client Platform Support for Micros