How to close database connections in Crystal Reports

I am using the following code to connect to database. I can either pass JNDIName or I can provide values for others by leaving JNDI name empty.
If i use JNDI name, it will use a connection from the connection pool of App Server (in my case Weblogic), but it is not releasing the connection after use. Connection remains even if I logoff from the application. If i keep my max connections as 15 in weblogic, after clicking the page with crystal report 15 times all will remain active and users will not be able to login to the application.
If i use connectionString and others without using JNDI Name, it directly connects to database. So it creates a connection in database server directly without using connection pool of weblogic. If i check weblogic, it shows no connection in use as expected, but if i check database, i can see the no. of connections increasing everytime a user clicks a crystal report page.
When the connection touches the maximum allowed connection in server, every application using the same server goes down
How can I close the connection which was created for the viewing the report?
String reportName = "/reports/BankBalance.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null)
         clientDoc = new ReportClientDocument();
         clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
        // Open report
        clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
       String connectString = ""; // jdbc:sybase:Tds:DBSERVERNAME:9812/DBNAME?ServiceName=DBNAME
       String driverName = "";    // com.sybase.jdbc3.jdbc.SybDriver
       String JNDIName = "DS_APP";
       String userName = "";
       String password = "";
       // Switch all tables on the main report and sub reports
       CRJavaHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
     // logon to database
      CRJavaHelper.logonDataSource(clientDoc, userName, password);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
               // Create the CrystalReportViewer object
                      CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
     String reportSourceSessionKey = reportName+"ReportSource";
     Object reportSource = session.getAttribute(reportSourceSessionKey);
     if (reportSource == null)
          reportSource = clientDoc.getReportSource();
          session.setAttribute(reportSourceSessionKey, reportSource);
     //     set the reportsource property of the viewer
     crystalReportPageViewer.setReportSource(reportSource);
     crystalReportPageViewer.setHasRefreshButton(true);
     crystalReportPageViewer.setToolPanelViewType(CrToolPanelViewTypeEnum.none);
     // Process the report
     crystalReportPageViewer.processHttpRequest(request, response, application, null);

the sample shows how to clear RAS and Enterprise resources after viewing report.
1. If you use unmanaged RAS - as I can see you using setReportAppServer, then remove the enterprise related stuff : instantiating and cleaning code.
The sample code is meant to give you an idea on how you can release the resources after done with viewing report. In your case all you need to do for cleaning is call close() on ReportDocumentObject. The sample will need to be modified for your requirements.

Similar Messages

  • When and How to close database connection in JSP?

    Hi there,
    I am using MySQL and JDBC 3.0, in my system, When and How to close database connection in JSP?
    Thanks in advance.
    Lonely Wolf
    <%@ page session="true" language="java" %>
    <jsp:include page="checkauthorization.jsp" />
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <%--
    Execute query, with wildcard characters added to the
    parameter values used in the search criteria
    --%>
    <sql:query var="availablecomputerList" dataSource="jdbc/Bookingcomputer" scope="request">
    SELECT * FROM computer where status=0
    order by s_code
    </sql:query>
    <html>
    <head>
    <title>Search Result</title>
    </head>
    <body bgcolor="white">
    <center>
    <form action="checkin.jsp" method="post">
    <input type="submit" value="Back to Check-in Page">
    </form>
    <c:choose>
    <c:when test="${availablecomputerList.rowCount == 0}">
    Sorry, no available computer found.
    </c:when>
    <c:otherwise>
    The following available computers were found:
    <table border="1">
    <th>Computer</th>
    <th>Description</th>
    <th>Status</th>
    <c:forEach items="${availablecomputerList.rows}" var="row">
    <tr>
    <td><c:out value="${row.s_code}" /></td>
    <td><c:out value="${row.description}" /></td>
    <td><c:out value="${row.status}" /></td>
    </tr>
    </c:forEach>
    </table>
    </c:otherwise>
    </c:choose>
    </center>
    </body>
    </html>

    when should you close the connection? when you're done with it.
    how should you close the connection? like this: conn.close();
    that said, doing this in a JSP page is bad form and not recommended
    JSP's typically don't contain ANY business or data logic

  • How to disconnect the database connection using crystal report

    Post Author: cp_pramodu
    CA Forum: Crystal Reports
    Hi All,
    We have developed an application using .Net and Crystal Reports 10 for generating Adhoc reports from Business system (db sybase 12). We are using the below mentioned script for opening rpt files.
    Try
           ReportDocument1.Load(sReportName)
           For Each table In ReportDocument1.Database.Tables
                  ' Get the TableLogOnInfo object.
                  logonInfo = table.LogOnInfo
                  ' Set the server or ODBC data source name, database name,
                  ' user ID, and password.
                  logonInfo.ConnectionInfo.ServerName = sReportServerName
                  logonInfo.ConnectionInfo.DatabaseName = DBName
                  logonInfo.ConnectionInfo.UserID = UserName
                  logonInfo.ConnectionInfo.Password = Password
                  ' Apply the connection information to the table.
                 table.ApplyLogOnInfo(logonInfo)
    Next
    'Me.Cursor = Cursors.WaitCursor
    Me.CrystalReportViewer1.ReportSource = ReportDocument1
    'Me.Cursor = Cursors.Default
    Catch ex As Exception
    'Response.Write(ex.Message)
    Finally
    Me.Cursor = Cursors.Default
    'ReportDocument1.Close()
    'ReportDocument1.Dispose()
    End Try
    Each time user opens the report a new connection is established to the database, can we disconnect the connection established from crystal reports, while closing crystal report. At the same time i want to setup an Idle time for these connections. In database level, i will not be able to set idle time in database level, as it affect our electronic channels.
    Waiting for a reply.
    Thanks & Regards,
    Pramodu. C. P

    Hi,
    If you are reworking the application can you not build in the functionality to re-establish a connection if there is a failure? That is, a submission from the application server to the database server detects a failure, etc. and then re-establishes the connection. If you need a more frequent check than during a user-initiated roundtrip, you may be best served by using the "dummy query" technique on some time interval.
    From my understanding using HA Event Notification would require a RAC database (plus a multi-threaded application and services correctly configured on the RAC-side).
    In the documentation I see this:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14250/oci09adv.htm#sthref1495
    "Applications must connect to a RAC instance to enable HA event notification."
    In any case, this has the potential to be a bit complicated...
    Regards,
    Mark

  • Unable to close JDBC connection in crystal reports

    Hi,
    I have configured crystal reports to use a connection acquired from a datasource created in weblogic server to generate a report. I was hoping that by calling ReportClientDocument.close() i would be closing the connected used to generate the report but that doesnot seem to be the case. I run into a situation where all my connections from the connection pool are being held by the reports and therefore get an exception in the application.
    Can anyome please let me know if calling ReportClientDocument.close()  will ensure that the database connection used for generating the report is closed? If no, please let me know what needs to be done in the code to ensure that a connection acquired for generating a report is closed.
    Thanks in advance
    VAMSI

    Hi Sanjay,
    Once connected right click on the connection an try adding filtering. Check off all except Tables and if you still don't see anything try adding table filtering to see if they show up now.
    Thank you
    Don

  • Save Database connection in crystal report

    We have build a crystal report that is saved in Business view manager. When we run the report from infoview, it always asks for database connection after we enter the parameters.
    How can we save the database connection details in crystal so that it never ask for database connection when running the report from infoview?
    I have a very little idea about business view manager and infoview. Thanks in advance for any help.

    Hi Stratos,
    We're having the same requirement: I want to store RPTs on BOE and execute them without having to login to the DB every time.
    Our BOE-Version: XI (12.3.0.601)
    Regards,
    Chrigu

  • How to close database connections

    I am using the following code to connect to database. I can either pass JNDIName or I can provide values for others by leaving JNDI name empty.
    If i use JNDI name, it will use a connection from the connection pool of App Server (in my case Weblogic), but it is not releasing the connection after use. Connection remains even if I logoff from the application
    String reportName = "/reports/BankBalance.rpt";
    ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
    if (clientDoc == null)
    clientDoc = new ReportClientDocument();
                   clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
    // Store the report document in session
    session.setAttribute(reportName, clientDoc);
    String connectString = ""; // jdbc:sybase:Tds:DBSERVERNAME:9812/DBNAME?ServiceName=DBNAME
    String driverName = "";    // com.sybase.jdbc3.jdbc.SybDriver
    String JNDIName = "DS_APP";
    String userName = "";
    String password = "";
    CRJavaHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
    CRJavaHelper.logonDataSource(clientDoc, userName, password);
    // Store the report document in session
    session.setAttribute(reportName, clientDoc);
    // Process the report
    crystalReportPageViewer.processHttpRequest(request, response, application, null);

    the sample shows how to clear RAS and Enterprise resources after viewing report.
    1. If you use unmanaged RAS - as I can see you using setReportAppServer, then remove the enterprise related stuff : instantiating and cleaning code.
    The sample code is meant to give you an idea on how you can release the resources after done with viewing report. In your case all you need to do for cleaning is call close() on ReportDocumentObject. The sample will need to be modified for your requirements.

  • How do I connect from Crystal Report version XI to Oracle 10G express?

    I'm new to oracle 10G express and I'm developing an application that needs reports to preview some data from oracle tables.
    The oracle database is installed on the server and I installed the client on my machine. I need to use the crystal report 11 to report the output. Thus, I designed a crystal report that should simply read a table on oracle and though I need to be able to connect to the oracle 10G Express Edition database. I tried to create a connection from the crystal report using the Database Expert >> Create New Connection >> Oracle Server and I include the following parameters.:
    - Service: host:1521/XE
    - Username: username
    - Password: password
    Then when I tried to connect the crystal report crashes always.
    Is there any way to create a connection to the Oracle Database 10G express from Crystal Report 11?
    Please advise...

    Thank you bala,
    First, How I should start the Listener on the database server?
    Listener.ora content:
    SID_LIST_LISTENER =
    +(SID_LIST =+
    +(SID_DESC =+
    +(SID_NAME = PLSExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +(SID_DESC =+
    +(SID_NAME = CLRExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +)+
    LISTENER =
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +)+
    +)+
    DEFAULT_SERVICE_LISTENER = (XE)
    How to configure the tnsnames.ora on the client side?
    tnsnames.ora content:
    XE =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = XE)+
    +)+
    +)+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    ORACLR_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = CLRExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    Now I`m trying to initialize this on one machine (database & client) and so the crystal report will be on the same machine where the database exist; Additionally, this machine has OS Windows 7 Ultimate 64bit and include the Oracle 10g Express Database & Oracle 10g Express Client software.
    Please check the files content I included above and give me the way on how to establish a connection from the crystal report to the database where both are installed on the same machine.
    Thanks in advance...

  • Database Connector Error when I connect SAP Crystal Report to dbase

    When I connect SAP Crystal Report to dbase the error is "Database Connector Error", only when exist a field the type memo. I need to used this type of field, somebody that known how can I resolve this problem or some idea?
    Thanks a lot for your help.

    Hi,
    there are sevaral SAP Notes for your problem. Can you specify the databaseof the source?
    i.e. MS SQL Server -> Note 1212769
          dbase -> Note 1209347
    regards
    -Phil

  • Connection to database in sap crystal reports enterprise xi 4.0

    Hi,
    When we are trying to connect to database in sap crystal reports enterprise xi 4.0 ,i am geting the below error.please advise.
    Error:
    Failed to establish a connection.The cause was:
    Connot connect to SAP BussinessObjects Enterprise at this time.Please try again later.

    Thanks for your quick response Henry....
    I checked all this things and all are working fine.
    Now I am able to connect to BOE server.
    The cause behind the issue was in "CMC > Applications > Web
    Service > Access URL:"  the URL was having different server name which we have changed earliar, I just correct the URL and issue got resolved.
    But now when I am trying to access BOE Server through Crystal Reports for Enterprise 4.0 client tool directly not from launch pad, it probes me the same error. (Note: I used the same parameters which i got from launch pad token to this)
    Is that a only way to use Crystal Reports for Enterprise 4.0 from launch pad ??

  • How do we create a jndi connection in crystal reports XI

    how do we create a jndi connection in crystal reports XI when the data soiurce is configured on websphere 6.1

    You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
    As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
    If you are still having issues then post another message.
    Geoff

  • How to dynamically set connection string for report in C# code?

    Hi,
    I have installed CRVS2010. I have created new Crystal Report WPF Application and new report. I would like to set connection string for report in code dynamically.
    Is this possible?
    Thanks
    Ivana

    Lots of posts in this forum on how to set database connections. WPF should not be a consideration as it's just a viewer. The report engine is still the same. Search these forums. Use the search box at the top right corner of this page. Look at samples here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Note that none of the samples above are using WPF, but like I said, the WPF is just a different viewer and will not impact how the report engine logs on to a database. (I think of it as a gray car vs. a red car. Same engine, just the color is different)
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Jdbc Connection And Crystal Reports

    Hi there;
       A tipical jdbc connection , that i found in my "googles" was something like this;
          PropertyBag connInfoProperties = new PropertyBag();
          connInfoProperties.putBooleanValue("Trusted_Connection", false);
          connInfoProperties.put("PreQEServerName", SERVICE);
          connInfoProperties.put("Server Type", "Oracle Server");
          connInfoProperties.put("Database DLL", "crdb_oracle.dll");
          connInfoProperties.put("ServerName", "");
          connInfoProperties.put("Server", SERVICE);
       And so - one .....
    But What I'm looking for is some thing is about passing one connection aready stabilished ; I mean , I want to prepare my connection envirorment before I pass it to crystal;
    Some thing like this connection "getConnection" result function; how can i pass it into crystal report?
    final class GetConnection {
      /** Uses JNDI and Datasource (preferred style).   */
      static Connection getJNDIConnection(){
        String DATASOURCE_CONTEXT = "java:comp/env/jdbc/blah";
        Connection result = null;
        try {
          Context initialContext = new InitialContext();
          if ( initialContext == null){
            log("JNDI problem. Cannot get InitialContext.");
          DataSource datasource = (DataSource)initialContext.lookup(DATASOURCE_CONTEXT);
          if (datasource != null) {
            result = datasource.getConnection();
          else {
            log("Failed to lookup datasource.");
        catch ( NamingException ex ) {
          log("Cannot get connection: " + ex);
        catch(SQLException ex){
          log("Cannot get connection: " + ex);
        return result;

    //boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
                PropertyBag boMainPropertyBag = new PropertyBag();
                //boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
                //In the main property bag (boMainPropertyBag)
                PropertyBag boInnerPropertyBag = new PropertyBag();
                //Set the attributes for the boInnerPropertyBag
                boInnerPropertyBag.Add("File Path ", @"C:\CrystalReports\sc.xml");
                boInnerPropertyBag.Add("Internal Connection ID", "{680eee31-a16e-4f48-8efa-8765193dccdd}");
                //Set the attributes for the boMainPropertyBag
                boMainPropertyBag.Add("Database DLL", "crdb_adoplus.dll");
                boMainPropertyBag.Add("QE_DatabaseName", "");
                boMainPropertyBag.Add("QE_DatabaseType", "");
                //Add the QE_LogonProperties we set in the boInnerPropertyBag Object
                boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
                boMainPropertyBag.Add("QE_ServerDescription", "NewDataSet");
                boMainPropertyBag.Add("QE_SQLDB", "False");
                boMainPropertyBag.Add("SSO Enabled", "False");
                //Create a new ConnectionInfo object
                CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo =
                new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
                //Pass the database properties to a connection info object
                boConnectionInfo.Attributes = boMainPropertyBag;
                //Set the connection kind
                boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
                //*EDIT* Set the User Name and Password if required.
                boConnectionInfo.UserName = "";
                boConnectionInfo.Password = "";
                //Pass the connection information to the table
                boTable.ConnectionInfo = boConnectionInfo;
                //Get the Database Tables Collection for your report
                CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables;
                boTables = rptClientDoc.DatabaseController.Database.Tables;
                //For each table in the report:
                // - Set the Table Name properties.
                // - Set the table location in the report to use the new modified table
                boTable.Name = "Orders";
                boTable.QualifiedName = "Orders";
                boTable.Alias = "Orders";
                rptClientDoc.DatabaseController.SetTableLocation(boTables[0], boTable);
                //Verify the database after adding substituting the new table.
                //To ensure that the table updates properly when adding Command tables or Stored Procedures.
                rptClientDoc.VerifyDatabase();
                MessageBox.Show("Data Source Set", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
    You'll have to adjust for your driver.
    Thank you
    Don

  • Open and close database connection jsp page

    hi there, i wanna know about how to open database connection to Mysql at the beginning of the page and close the connection at the end of the page. The jsp page contain all processing code.
    plz help me...thx thx

    <html>
    <head>
    <basefont face="Arial">
    </head>
    <body>
    <%@ page language="java" import="java.sql.*" %>
    <%!
    // define variables
    String id;
    String firstName;
    String lastName;
    // define database parameters, change this according to your needs
    String host="localhost";
    String user="root";
    String pass="";
    String db="test";
    String conn;
    %>
    <table border="1" cellspacing="1" cellpadding="5">
    <tr>
    <td><b>id</b></td>
    <td><b>first name</b></td>
    <td><b>last name</b></td>
    </tr>
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user 
    + "&password=" + pass;
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    // generate query
    // change this query according to your needs
    String Query = "SELECT id, firstname, lastname FROM abook";
    // get result
    ResultSet SQLResult = SQLStatement.executeQuery(Query);
    while(SQLResult.next())
       id = SQLResult.getString("id");
       firstName = SQLResult.getString("firstname");
       lastName = SQLResult.getString("lastname");
            out.println("<tr><td>" + id + "</td><td>" + 
         firstName + "</td><td>" + lastName + "</td></tr>");
    // close connection
    SQLResult.close();
    SQLStatement.close();
    Conn.close();
    %>
    </table>
    </body>
    </html>hi :-)
    i've got that on the net as part of the tutorial on jsp (long long time ago)
    you just have to be resourceful in finding solutions :-)
    try google :-) there are lot's of tutorial available in there ;-)
    goodluck ;-)
    regards,

  • Has anyone Connected a Crystal Report directly to a Microsoft Project file (MPP)?

    Post Author: Brian Morris
    CA Forum: Data Connectivity and SQL
    Iu2019m aware I can save Microsoft Project Files (MPP) to an Access Database, Excel document etc. and there are ways to connect to a Microsoft Project Server.
    I wanted to know if anyone has managed to connect directly to one though. Currently we use MPPs to report project status and other deliverables, and itu2019s been an annoyance to have to save the project file then export the data over into a new excel document when ever we have changes (since not all users have project or need all the data in the file).
    Preferably, a user should be able to save that project file and anyone that has the Crystal report should be able to run the report against the MPP file. In addition to this, it would be extremely helpful in getting a formalized and nicely formatted report when running reports against rational and MMP files, thus giving an alternative from SODA reports in Microsoft word, which doesnu2019t always work well.
    Thanks!

    Post Author: Brian Morris
    CA Forum: Data Connectivity and SQL
    Ok, I answered my own question on the connection issue, but I'm having issues with the predefined fields that enter into the report. The Database Expert shows the correct table names, but when I select them and look at the fields, they are all showing fields that are part of the "Project" table. when I use "Add Command" and use SQL to do a "Select * From TableName" ,where TableName is the name of the respective table, I get the data I'm looking for. Has anyone else run into this error? Is the error on Crystal Reports side or the Data provider's OLE DB driver? Has anyone with a fully patched system encountered the same errors?
    Current SetupCrystal Version: 11.0.0.1282CR Professional; Product Type:FullOLE DB Driver: Microsoft Project 10.0 OLE DB Provider
    I have pasted my findings below, hopefully other people won't have the same issues I did trying to find this information. if anyone else wants to test and see if they get the same issues I did it would be greatly appreciated.
    Connecting a Crystal Report XI to a Microsoft Project File (MPP)
    Prerequisites (as I know them)
    -          Have an installation of Crystal Reports on the machine (a given)
    -          Have Microsoft Project 2000/2003 installed OR  the Microsoft Project OLE DB provider which is installed with Microsoft Project (NOTE: Microsoft 2007 supposedly no longer supports OLE DB and requires an OLAP cube be made or a SOAP connection be used, which I donu2019t deal with personally)
    Creating the connection
    Start Crystal Reports
    Click u201CBlank Reportu201D on the start page
    in the u201CDatabase Expertu201D window, under u201CAvailable Data Sourcesu201D, Select u201C+u201D next to u201CCreate New Connectionu201D
    Select the u201C+u201D beside u201COLE DB(ADO)u201D
    If a u201COLE DB (ADO)u201D  window does not come up, double click u201CMake New Connectionu201D 
    In the u201Cprovider:u201D box Select the u201CMicrosoft Project 10.0 OLE DB Provideru201D
    The name may be different depending on the version of project you install and the patch you have on the machine
    Select u201CNext >u201D
    Under u201CDatabase:u201D copy/paste in the path and project file name
    I donu2019t believe the other fields u201CData Source:u201D, u201CUser ID:u201D, or u201CPasswordu201D need to be filled out, and in fact, I got an error when entering in data into them
    Example: u201CC:\Projects\Project Name\Current Schedule.mppu201D
    Select u201CNext >u201D
    In the Advaned information window, verify the project Name is the path of the project.
    I have not found the use of u201CEnterprise Modeu201D (default: 0), u201CAlways Loadu201D (default: 0), u201COLE DB Servicesu201D(default: -5), or u201CEnterprise RUID Listu201D (default: blank), removing them or changing them did cause errors though.
    Click u201CFinishu201D
    Adding in Tables and extracting data
    You now have a connection to the project File you listed. There is an issue Iu2019ve found though that all the tables you see listed are filling their fields in from the u201CProjectu201D Table, rather then their respective tables (Example: u201CAssignmentsu201D is pointing at u201CProjectu201D rather then the obvious connection u201CAssignmentsu201D). You can, however, use the u201CAdd Commandu201D and select the table you want with just a little SQL code:
    Select *
    From Assignments
    After creating the command, highlight it and hit u201CF2u201D. You should be able to edit the name and change it from u201CCommandu201D to something more meaningful. At the current time Iu2019m unsure if the issue with the default tables all pointing toward the project table is an error on the provider side or Crystal Reports end, and if one of the new patches will fix it. I will update this document accordingly when I have more information and do more testing. I will note however, there is no way to change which table these preset fields point to.
    Thank you for your time.

  • Why we need ABAP if we can connect With Crystal Reports to SAP R/3

    Hi,
        I am new to Crystal reports.I came to know that we can connect SAP R/3 by using SAP InfoSet,SAP Table Cluster and Function connectivity in Crystal Reports.So we can generate reports for SAP R/3 database with out need of ABAP.So why we need to go ABAP module.Is there any disadvantages if we dont use ABAP to generate reports or we can use always Crystal Reports to generate Reports for R/3 database?

    Hi,
    it is correct that you can built a Crystal Report without the need to use ABAP, but we have lots of customers that have invested over the years into ABAP Routines and Crystal REports is able to leverage those as well. So with Crystal Reports you have the choice to leverage existing ABAP Functions as a source for reporting - which might help to leverage complex processing on the backend - or to use InfoSets and tables.
    regards
    Ingo

Maybe you are looking for

  • Uninstall purchased PS and LR4 before installing from creative cloud?

    I'm a new CC subscriber with purchased copies of Photoshop (CS6) and LR4. Do I uninstall either or both before downloading the CC versions of both apps? Thanks, -- Sam

  • How do I get audiobooks into the audiobooks folder?

    There is an audiobooks folder on the first menu on my ipod but I can't figure out how to get audiobooks into it. When I make an "audiobooks" playlist it just puts it under the playlists menu but i want to see it under the audiobooks menu.

  • Should be an easy one, just cant find the solution.

    When I try to logon to a remote computer on the local network, rather than gain control of the machine I get a Padlock appear on the screen and I am unable to control it. Remote desktop remotes that the computer is on the Login window, but this is no

  • 2.1.3 does not support sample project files

    I just purchased Aperture 2.1.1, installed, and then updated the software to 2.1.3. I then imported the sample projects to play with before I start to mess with any of my photos. I will get an unsupported image format Red message when triing to view

  • Slow loop with DAQmx read

    Hello, I am trying to read 8 channels at once using the NI9213 and DAQmx (see image attached). With this setup, the loop takes ~500ms each iteration. What can I do to improve this? Thanks, JP Solved! Go to Solution. Attachments: slowloop.PNG ‏21 KB t