XNET Change Database Keep Alias

I have a need to allow users to change a database file used in an XNet database at run-time.  My intention was to start by deleting a database with a constant name something like "XNet Database".  If this alias doesn't exist then the Remove Alias will return an error which I just clear because I don't care.  Next I use the Add Alias and set the database name to "XNet Database" using the new file the user provides.
Then if the user chagnes the database file to a new one, my software performs a Remove on "XNet Database" and then an Add using the new file.  The problem is after doing the remove and then add, all references to the "XNet Database" will be for the first file, not the second one the user choose.  If I close the software and re-open then it will use the new alias.  So is there a way to force a close of a database in the software, so that I can use the same database name, but assign a new database file?
I also tried generating random database names.  Something like "XNet Database %d" where %d can be a random number.  In my code I still remove all aliases, then add an alias using the new file the user selected.  The problem with this is after doing this 7 times I get the following error:
Error -1074384592
NI-XNET:  (Hex 0xBFF63130) Too many open files. NI-XNET allows up to 7 database files to be opened simultaneously. Solution: Open fewer files.
So this confirms my suspicions that the database is still in memory, even after performing the remove alias.  How can I force a close of a database, so that I can allow my users to use a new database file?
EDIT: okay so I missed the Close Database Polymorphic.  Doing a Close All before the remove seems to fix it.  If I don't close all and just try to close that one database it doesn't work.  In my situation I think I can live with just closing all.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Hi,
On the original instance, do:
$ sql
SQL> connect as sysdba
SQL> spool filenames.txt;
SQL> select * from dba_data_files;
SQL> select * from v$logfile;
The list of datafiles and logfiles for all the tablespaces should be in 'filenames.txt'.
$ sql
SQLDBA> connect internal;
SQLDBA> startup mount [DBNAME];
SQLDBA> ALTER DATABASE RENAME FILE '<old path>/filename' to '<new path>/filename';
In order to change the Control File, Take Current SPFILE Backup, Shutdown the DB Modify the Parameter Files (your Control Files). Start the DB, and perform the Above. !!
Coming to your Second Question, If you are using the DBCA, you have the Option to Select the Appropriate Paths, while in the process of DB Creation, at that time you can specify.
Else
If you are creating DB manually, then can specify the path while you creating your DB.
- Pavan Kumar N

Similar Messages

  • Changing databases from MS SQL Express to MySQL in a  Report at runtime

    Hi all,
    I have an issue in changing databases from MS SQL Express to MYSQL or vice versa in a Report at runtime.
    Here is what I do:
    I create a very simple report with the Crystal Report Designer 2008 V 12.3.0.601.
    This report uses a stored procedure to retrieve it's data. I connect to the Database with JDBC.
    I have two Databases with similar schema and procedures: MS SQL Express an MySQL.
    When I create the report with MSSQL all parameters have the '@' character, as they are named. ok.
    I deploy this report in a JSP application with the crystaldecisions SDK an show it in html viewer format.
    The connection to the MSSQL DB gets established by my JSP and the CRJavaHelper.
    I pass the parameters through my URL to the JSP and finally to the CRJavaHelper (addDiscreteParameterValue)
    and everything works fine.
    The challenge starts, when I try to change the Datasource of this report to MySQL at runtime (which is a requirement in my project).
    I successfully can establish the DBConnection, but my stored procedure just doesn't get called!
    The report just displays totally empty, no Exceptions etc. are thrown. In the DB logfile I see the effort to find my procedure
    and that's all. The Statements called by the SDK finds the correct Procedure, but there's no call to the procedure.
    Of course I know, that MS SQL names it's procedures slightly different (';1' at the end), but even when I rename the table Alias to the correct name in CRHelperJava, I get no call to the procedure in MySQL. I also renamed the parameter-fields in changeDataSource(..) by casting the table to IProcedure and working on its methods. Still no success.
    What am I missing to do or what do I do wrong?
    Any suggestions or even solutions?
    Best Regards,
    Tom

    after all I have managed to set param Values, now I'm stuck because the parms seem to have dissappeared in the formula fields. E.g. I receive this Exception:
    <br><br>
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
    Dieser Feldname ist unbekannt.---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:733)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
         at com.crystaldecisions.sdk.occa.report.application.RowsetController.getSQLStatement(SourceFile:1485)
         at org.apache.jsp.report_jsp._jspService(report_jsp.java:360)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.crystaldecisions.reports.dataengine.DataEngineException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
    Dieser Feldname ist unbekannt.
         at com.crystaldecisions.reports.dataengine.DataSourceManager.do(SourceFile:692)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.new(SourceFile:607)
         at com.crystaldecisions.reports.dataengine.DataSourceManagerCoordinator.a(SourceFile:505)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.a(SourceFile:1060)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:729)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:699)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.i(SourceFile:1308)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.k(SourceFile:1297)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1310)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
         ... 32 more
    Caused by: com.crystaldecisions.reports.formulas.FormulaException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
    Dieser Feldname ist unbekannt.
         at com.crystaldecisions.reports.formulas.o.a(SourceFile:1041)
         at com.crystaldecisions.reports.formulas.o.do(SourceFile:1013)
         at com.crystaldecisions.reports.formulas.o.new(SourceFile:688)
         at com.crystaldecisions.reports.formulas.o.else(SourceFile:459)
         at com.crystaldecisions.reports.formulas.f.void(SourceFile:65)
         at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:345)
         at com.crystaldecisions.reports.formulas.r.a(SourceFile:89)
         at com.crystaldecisions.reports.formulas.FormulaInfo.a(SourceFile:570)
         at com.crystaldecisions.reports.formulas.FormulaService.compile(SourceFile:347)
         at com.crystaldecisions.reports.reportdefinition.FormulaCompiler.a(SourceFile:139)
         at com.crystaldecisions.reports.reportdefinition.FormulaFieldDefinitionBase.compile(SourceFile:928)
         at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:1360)
         at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:1348)
         at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:4225)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.do(SourceFile:687)
         ... 41 more
    <br><br>
    where dataProc is my stored procedure and @DurationMin is a function field.
    do I have to call verifyDatabase() when I have changed DBs and set the param Values?
    Is there a defined sequence to execute these steps?
    Edited by: tomspengler on Dec 8, 2011 1:55 PM

  • How to Change Database of Report before Exporting?

    I am having difficulties changing the database that the report should run against.
    We are using Oracle.  In the past when scheduling a report through CE, I would manipuate the Desktop.ReportLogons object.  For Oracle I simple changed the CustomServerName, CustomUserName, and CustomPassword properties.  Everything worked fine when the report was scheduled and ran.
    Now I am doing an on-demand report without an interactive viewer.  I am doing everything in code using RasAppFactory and the ReportClientDocument.
    I am looking at the DatabaseController of ReportClientDocument.  I thought I could just use the LogonEx method passing in the server, user, password, and an empty string for the database since for Oracle connections you only specify server and not database.  However, it is still trying to connect to the defined database.
    Can someone point me to an Oracle specific example of how to properly change database info when report runs?
    Do I need to be using other methods like one of the SetTableLocation methods?
    Thanks in advance for any help.

    Hello, Stephen;
    You are correct, with Oracle you do not need the Database property.
    The person logged on to Business Objects Enterprise through the RAS .NET application would need rights to make the change in database connections. Can the usr with the same logon make the change directly in Enterprise?
    The ReportClientDocument separates the Server Name and Database from the User ID and Password with the PropertyBag. The convenience methods such as LogonEx will only change the User ID and Password. To change all four properties you need the full RAS logon code.
    The full logon for RAS would use code as shown below.
    Elaine
    ==========================================
    Imports System
    Imports Microsoft.Win32
    Imports CrystalDecisions.Enterprise
    Imports CrystalDecisions.Enterprise.Desktop
    Imports CrystalDecisions.CrystalReports.TemplateEngine
    Imports CrystalDecisions.ReportAppServer.ClientDoc
    Imports CrystalDecisions.ReportAppServer.Controllers
    Imports CrystalDecisions.ReportAppServer.ReportDefModel
    Imports CrystalDecisions.ReportAppServer.DataDefModel
    Imports CrystalDecisions.ReportAppServer.CommonObjectModel
    Imports CrystalDecisions.ReportAppServer.ObjectFactory
    Partial Class Logon
        Inherits System.Web.UI.Page
        Dim mySampleReportName As String = "SimpleSetLogonInfo.rpt"
        Dim crServerName As String = "myOracle"
        Dim crDatabaseName As String = ""
        Dim databaseUserName As String = "tester"
        Dim databasePassword As String = "tester"
        Dim crDatabaseController As DatabaseController
        Dim crDatabase As Database
        Dim crTableOld, crTableNew As Table
        Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            ConfigureCrystalReports()
        End Sub
        Private Sub ConfigureCrystalReports()
            DatabaseLogon_managedRAS()
        End Sub
        Private Sub DatabaseLogon_managedRAS()
            Dim mySessionMgr As New SessionMgr()
            Dim myEnterpriseSession As EnterpriseSession
            Dim myReportAppFactory As ReportAppFactory
            Dim myInfoStore As InfoStore
            Dim myInfoObjects As InfoObjects
            Dim myInfoObject As InfoObject
            Dim myReportClientDocument As ReportClientDocument
            Dim myEnterpriseService As EnterpriseService
            Dim myObject As Object
            myEnterpriseSession = mySessionMgr.Logon("administrator", "", "CMS_Server", "secEnterprise")
            myEnterpriseService = myEnterpriseSession.GetService("InfoStore")
            myInfoStore = New InfoStore(myEnterpriseService)
            myInfoObjects = myInfoStore.Query("Select SI_ID From CI_INFOOBJECTS Where SI_NAME='" + mySampleReportName + "' And SI_INSTANCE=0")
            myInfoObject = myInfoObjects(1)
            myObject = myEnterpriseSession.GetService("", "RASReportFactory").Interface
            myReportAppFactory = CType(myObject, ReportAppFactory)
            myReportClientDocument = myReportAppFactory.OpenDocument(myInfoObject.ID, 0)
            'Convenience methods not to change Database or Server name from what is in the report
            'myReportClientDocument.DatabaseController.logon("UID", "PWD")
            'myReportClientDocument.DatabaseController.LogonEx("myServerName", "myDatabase", "UID", "PWD")
            crDatabase = myReportClientDocument.DatabaseController.Database()
            crDatabaseController = myReportClientDocument.DatabaseController()
            ' Loop through all the tables in the main
            ' report and set their new table information.
            For Each crTableOld In crDatabase.Tables
                crTableNew = GetNewTable(crTableOld, crServerName, crDatabaseName, databaseUserName, databasePassword)
                crDatabaseController.SetTableLocation(crTableOld, crTableNew)
                crTableNew = Nothing
            Next
            crDatabase = Nothing
            crTableOld = Nothing
            myCrystalReportViewer.ReportSource = myReportClientDocument
        End Sub
        Private Function GetNewTable(ByVal crTableOld As Table, ByRef serverName As String, ByRef databaseName As String, ByRef userName As String, ByRef password As String) As Table
            ' Create crTableNew as a new table, then fill its properties.
            Dim crTableNew As New Table
            Dim crAttributes, crLogonInfo As PropertyBag
            ' Set some of the properties of the new table object.
            crTableNew.ConnectionInfo.UserName = userName
            crTableNew.ConnectionInfo.Password = password
            crTableNew.ConnectionInfo.Kind = crTableOld.ConnectionInfo.Kind()
            crTableNew.Name = crTableOld.Name
            crTableNew.Alias = crTableOld.Alias
            ' Make a copy of the connectionInfo.Attributes and apply them to the new table.
            crTableNew.ConnectionInfo.Attributes = crTableOld.ConnectionInfo.Attributes.Clone(True)
            crAttributes = crTableNew.ConnectionInfo.Attributes()
            ' Check to ensure the connection info Kind is correct then change the a
            ' appropriate properties in the PropertyBag.
            ' These will vary from report to report using ODBC, OLEDB or Native drivers
            ' To find out your properties
            ' open your report in the Crystal Reports Designer and go to Database,
            ' Set Location menu. Check the properties of your connection and note
            ' the name of the properties that will change.
    'ODBC to Oracle "Data Source Name" and "Table Name" with "Owner"
    'OLEDB to Oracle "Provider" "Data Source" and "Table Name" with "Owner"
            If crTableNew.ConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE Then
                crLogonInfo = CType(crAttributes("QE_LogonProperties"), PropertyBag)
                crLogonInfo("Data Source") = crServerName
                'MS SQL Server OLEDB
                'Leave out for Oracle
                'crLogonInfo("Initial Catalog") = crDatabaseName
            End If
            ' Adjust the qualified name, then return the new table object if the table name has changed
            crTableNew.QualifiedName = "Owner." & crTableNew.Name
            Return crTableNew
        End Function
    End Class

  • FRM-40208: Form running in query-only mode. Cannot change database fields.

    Hi,
    I am using forms 6i where it is calling a form from a menu in query like call_form(,query_only). Now an error is occurring on call of that form ‘FRM-40208: Form running in query-only mode. Cannot change database fields.’ Though this is been handled to give a certain message from on_error message from a package from library.
    Now the issue is that the error keeps on popping even after the ok button is pressed. There are number of records from the table. How can we handle the error. Any suggestion would be really appreciated!!!
    Regards,
    Rajesh

    thanks Gred but i have resolved the issue. it seems that each row was going into query_only mode (program written such a way). therefore the error was showing even after the OK button. handled the issue from ON_ERROR trigger. anyway thanks for your time Gred!

  • Help!! database keeps crashing

    I've been working on this problem for 4 months. The database keeps crashing randomly. Sometimes it would not produce any error in the alert log and sometimes it would give me multiple ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x77FCB491] [ADDR:0x38] [UNABLE_TO_WRITE] [].
    I'm starting to think it is backup exec 11d using rman that is causing the problem. I also heard that running rman with backup exec can strain the database.
    What else can I look at?
    Is ADDM a good method to use to diagnostic this problem and how do i access it?

    Refer to Metalink note 466370.1.
    Snippet:Symptoms
    These errors were encountered and the DB crashed.:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc]
    [PC:0x7C34126B] [ADDR:0x0] [UNABLE_TO_WRITE] []
    ORA-27300: OS system dependent operation:CreateThread failed with status: 8
    ORA-27301: OS failure message: Not enough storage is available to process this command.
    ORA-27302: failure occurred at: ssthrddcr.
    You may observe this in the trace file.:
    "Current SQL information unavailable - no SGA."
    Changes
    This could be triggered by hardware issues or an increase in volume or by day to day operations.
    Cause
    Insufficient memory
    Solution
    Ensure that the existing memory is functioning properly.
    If there is no hardware issue, then you have simply run out of available memory and you need to purchase more.
    Check your OS log for hardware errors.

  • Crviewer and changing database

    the tutorial on  Adding Ability to Change Database Location at Runtime
    says
    In this tutorial you will change the name of the Database server, not the name of the Database.   It is not possible to change the name of the Database with the CrystalReportViewer control.
    since this seemed pretty clear i have not tested it
    but
    since it does not seem sensible  - after all you can change the connection string
    i wondered why it said this if not completely true

    Correction.
    There are a number of ways of handling database connections.
    1) CR Viewer SDK. Viewer SDK will only allow you to log on to the connection the report was designed off of. It will not ( as the note says) allow you to "change the name of the Database with the CrystalReportViewer control."
    2) CR Engine SDK. This SDK will allow you to change the logon information
    3) InProc RAS SDK. This SDK will allow you to change the logon info, change the database driver, add tables, remove tables and more.
    One thing to keep in mind; InProc RAS SDK does not ship with any VS bundles. But it does ship with Crystal Reports for Visual Studio 2010 and all "stand-alone" versions of CR.
    Oh, one more thing. See KB [1553921  - Is there a utility that would help in writing database logon code?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]. It may prove to be quite useful.
    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]

  • When transferring data from an old hard drive to a new one, is there a way to keep alias files and folders in tact?

    My mac and I rely HEAVILY on the use of alias files and folders. The simple version of my question is: When transferring data from an old hard drive to a new one, is there a way to keep alias files and folders in tact?  These are not symlinks or symbolic links, they're all alias files and folders. 
    Is there any software out there that might help me with a solution?  Are there any tricks or tips you can give me to try?

    Use either Setup Assistant at first start, or Migration Assistant on subsequent occasions and all will be transferred intact. Given your wording I presume you are Unix savvy and will appreciate the problems that duplicate userids would cause, so of you use MA for the migration, make sure the target Mac has no userid equal to that on the source and you will be fine.
    SA does not have these issues since it runs before any user account is created, so it can simply copy over everything. But MA runs after the fact and only solves the issue partially by changing the UID in the user directory, leading to permission problems.

  • How to change the Existing alias with new alias name...MAXL SCRIPT

    HI Experts
    I need to change alias name of the existing member with new alias name.
    please send me maxl code to change the alias name .
    My thought is
    1) Old alias should be replaced with new alias name .
    2)There is one account that should be rolled out to another parent..these parents are already exsist
    3) I need a MAXL Script to change the new alias name .
    please suggest ASAP.
    Thanks
    USER

    John
    I heard that we can replace existing alias name with new alias thru MAXL
    i.e replace alias name XXXX member with YYYY ;
    please correct me if iam wrong ,might be Maxl command is wrong but this is the idea.
    Thanks
    USER

  • How to change the application alias for a web project in NW7.2

    Hi,
    a simple question, but I could not manage to solve it: How do I change the application alias (the url) of a web project? I'm using Netweaver 7.2 and all the tutorials I found refer to earlier versions and do not work anymore.
    In particular, I would like to change e.g. "server.com/vendor~webbappname" (the standard url of the web project) to "server.com/mywebapp".
    Thanks in advance for your help!

    Hi,
    Try customizing the <context-root> element in the web.xml deployment descriptor, for example:
    <?xml version="1.0" encoding="ASCII"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
              http://java.sun.com/xml/ns/javaee/application_5.xsd"
               version="5">
               <display-name>YourWebApp</display-name>
               <module>
                   <web>
                   <web-uri>YourWebApp.war</web-uri>
                   <context-root>mywebapp</context-root>
              </web>
         </module>
         <module>
              <ejb>YourWebAppEjb.jar</ejb>
         </module>
    </application>
    Afterwards, rebuild and redeploy your application.
    I hope that helps.
    Regards,
    Yordan

  • Re: Regarding Requests to change a user alias / username / displayed name

    On Feb 12, 2008 11:43 AM, Eric W. wrote:
    "We have seen several requests from users to make changes to their public alias. Unfortunately this is not possible at this time, however we are looking into this suggestion. "
    Dear Eric W.:
    Is there any update on this request? It is coming up on two years since your announcement was posted. Looking through this forum, this seems to be a very common, frequent and popular request. For privacy reasons, I can see a great need for the ability to change one's alias.
    The current alternatives (create new alias, let old one fade away, etc.) are not acceptable.
    Please provide an update on the progress of this request.
    Thank you.

    romad,
    This is not a bug, it is a design choice. I have stated that we are looking at this option, but so far the we have not made a decision to change it. We continue to evaluate it, and if there is a change made it will be communicated at that time. Until then I cannot give an ETA because it is possible that this will never change.
    Eric W.

  • Changing Database connection at runtime in CR2008

    Hi,
    I have a VS2008 application which is using CR2008 to generate pdf reports for the user. Problem is I am not able to change the database connection to any server other than the one that was used to create the report template.
    My environment has CR2008 SP2. I have tried reports with no paramter as well as the ones with parameters both dont seem to work.
    I have already tried a couple of things:
    a) report document refresh after loading it
    b) setting the database connection as
    this._crReport.DataSourceConnections[0].SetConnection(dbServerName, dbName, dbUserId, dbPwd);
    c) setting the database connection as
    tbls = this._crReport.Database.Tables;
                    bool test = false;
                    foreach (Table tbl in tbls)
                        tblLogonInfo = tbl.LogOnInfo;
                        tblLogonInfo.ConnectionInfo = connInfo;
                        tbl.ApplyLogOnInfo(tblLogonInfo);
                        test = tbl.TestConnectivity(); ** note this alwys return a true for the changed database server
    I have read a couple of thread but none has worked for me...Is this a known issue with CR2008?
    Thanks
    Kajal

    Hi Kajal,
    I am assuming that you are not changing the schema of the report at any point of time. I would suggest you to try pointing to the other database through designer to make sure that you can hit the database and the schema is correct. You can also create a udl file to check the database connectivity.
    Then just for testing purpose you can try the following code:
    ReportDocument reportDoc = new ReportDocument();
    reportDoc.Load("path of the report");
    reportDoc.SetDatbaseLocation("uid","pwd","Servername","tablename");
    reportDoc.SetParameterValues("Parameter-Name","values");
    CrystalReportViewer.ReportSoure=reportDoc;
    Does that help?
    Thanks.

  • Issue with changing database location at runtime

    I am having a similar issue to:
    Re: Issue with changing database location at runtime
    where I am using Crystal Reports 2008 SP 3 fix pack 3.3 and a OLE DB connection to a SQL 2008 R2 server. Running on a computer on the network where the report can see the original development server is fast, other computers where that server is not available are hanging 20 seconds before coming up.
    I am using the same code from the Crystal Sample app to change the connection on each table. I found that the slowness comes the first time the ReportDocument object is accessed to get the collection of database tables, before the connection info is set.
    Fix pack 3.4 was mentioned in that post.  Does fix pack 3.4 fix that issue? I don't see fix pack 3.4 on the downloads page (https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm)

    I just found on the reports that were having the issue there was a SQL Expression.  Per this thread:
    Re: Report load is slow after changing database servers
    There was an issue with that and the fix is not out til the end of Feb so I found a way not to use the SQL Expression and the speed is much better.
    However, your information provided led me to this post:
    Cannot Change Table Location, but Only for One Report
    And I am also experiencing an issue where the table location is not changing on one subreport and I will look into that as a possible solution.
    Thanks so much for your help.

  • SSRS 2012, SQL Server 2012. Problem with changing database

    Hi all!
    I have a problem with changing database for SSRS.
    I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
    I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
    connection (it's successed) and push Next again. Then I see this error message:
    Error
    The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
    OK   
    I'm confused, cause I have compatible versions of programs and THIS error.
    Please, help me.
    Thanks.

    Hi Kirill,
    From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
    When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
    Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
    http://technet.microsoft.com/en-us/library/cc645993.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Database column alias problem

    When joining the firstname and surname fields in my inital SQL query of my interactive report i.e
    INITCAP(INDSNAME)||' '||INITCAP(INDFNAME) AS FULLNAME,
    When clicking through to the record detail page I am getting the following error from the page item where in the source I am specifying FULLNAME under Source value or expression
    Column FULLNAME not found in table MYTABLENAME
    How can I get around this?
    Many Thanks

    Hi Bas
    Thanks - it will just be a view as basically I just want to print the data via jasper
    In my IA report under column attributes there is one called FULLNAME which is derived from INITCAP(INDSNAME)||' '||INITCAP(INDFNAME) AS FULLNAME,
    So how can I get the data displayed in the FULLNAME column in the IA report into a single record view.  At the moment my IA report the Link Column is currently linked to a 'Link to custom target'
    the target is a 'Page in this Application'  in this case page 9
    and in Item1 under Name the value is P9_ROWID and the value is #ROWID#
    Database column alias problem 

  • Change database connection for FRS Report

    currently we are using ASO BSO model and all FRS reports are retrieve against BSO Database.Now we are converting to ASO only model. can i use the same report against ASO database .
    There is a option of chang database connection under tool in workspace . will this work or do i have to make all reports again
    can you please help me with this
    thank you

    IN some cases even if the report has additional dimensions it will work. After you change the connection. Open the report in designer. The new dimensions will automatically update. Save the report and you should be good to go. If dimensionality is exactly the same you don't even have to do that, just change the connection, point ot the new database and run the report.

Maybe you are looking for

  • Close period.

    Dear sir, I'm closing period (Febrary. 2008). I go to Tcode (OB52), and I choice variant (D-customer). and now I want to ask you that "How can I continue so that I can close, I know that closing period (Febrary. 2008) means closing (match. 2008). Gui

  • Trouble with updates of Asset Master Record via BAPI_FIXEDASSET_CHANGE

    Good day, I'm using functional module BAPI_FIXEDASSET_CHANGE in order to update time dependent data in Assets Master Record. Although I'm updating only time dependent data and net worth valuation, some other fields are being changed too - country dep

  • Trying to track down and verify an ip address

    Ok when i have skype open i notice that it polls this IP address 74.57.165.79 modemcable079.165-57-74.mc.videotron.ca. which is a videotron ip in montreal does that jive as a skype location?

  • Is there a limit to Number of Tracks in DVDSP

    I have a client who want to put package 80 seperate interviews. Is there a limit to the number of video tracks that DVDSP can handle? Help appreciated

  • Elements 12 photomerge-Panorama

    When selecting Photomerge Panorama in Elements 12, program crashes with error message "editor 12 has stopped working". Was working fine until last week then suddenly this started happening every time I attempt to run Panorama. Other Photomerge functi