CR11R2: two Databases - doesn't work

Hi!
I've developed a CR-Viewer with .NET 2.0 and CR11 Release 2. The Viewer works fine with reports which have only one datasource (ODBC) with one database. But a few reports of us have one datasource with two databases.
The first database-Name is IMS and the second fibgs.
Our Viewer needs to update the Connection (ODBC-Name, Database-Name, DB-User and password) for each table.
The info of table.LogOnInfo.ConnectionInfo.DatabaseName is always IMS and thats not correct. The tables/views which are in the database fibgs aren't available after the Datasource was updated.
So my question is: How can I get the correct Database name of each table. (In Crystal Reports the correct name is shown).
Thanks a lot!

Hi!
Thanks! But my problem is, to find out which table is part of which database. I've already have two datasources. Here my code, perhaps it is better to understand:
foreach (CrystalDecisions.CrystalReports.Engine.Table tbl in cr.Database.Tables)
            li = tbl.LogOnInfo;
            string oldDbName = li.ConnectionInfo.DatabaseName.ToUpper();
            if (oldDbName.Length >= 2)
                //Here is the problem => always IMS!!!
                if (oldDbName.Substring(0, 3) == "IMS") 
                    // IMS-Table
                    try
                        li.ConnectionInfo = p_ImsCi;                       
                    catch (Exception ex)
                        MessageBox.Show("Fehler bei der Zuweisung der
iMS-Verbindungsinformationen bei
Tabelle " + tbl.Name + "." + Environment.NewLine + ex.Message);
                else
                    // GYPSILON-Table
                    if (p_GypCi.DatabaseName != "" & p_GypCi.ServerName != "")
                        try
                            li.ConnectionInfo = p_GypCi;                           
                        catch (Exception ex)
                            MessageBox.Show("Fehler bei der Zuweisung der
Gypsilon-Verbindungsinformationen
bei Tabelle " + tbl.Name + "." + Environment.NewLine + ex.Message);
                    else
                        MessageBox.Show("Die Logon-Informationen für die
FiBu-Datenbank sind unvollständig.",
"iMS Report Viewer", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        return false;
                // Nun weisen wir li wieder der Tabelle zu
                try { tbl.ApplyLogOnInfo(li); }
                catch (Exception ex)
                    MessageBox.Show(tbl.Name.ToString() + " " +
ex.Message + Environment.NewLine +
"(ApplyLogOnInfo->" + tbl.Name + " )");
            else
                // Alter Datenbankname hat weniger als 3 Zeichen -> FEHLER
                MessageBox.Show("Die Logon-Informationen für folgende
Datenbank sind unbekannt: '" + li.ConnectionInfo.DatabaseName +
"' '" + li.ConnectionInfo.ServerName + "' '" +
li.ConnectionInfo.Type + "'", "iMS Report Viewer",
MessageBoxButtons.OK, MessageBoxIcon.Information);
                return false;
            //check connectivity
            bool StatusConnectivity = false;
            try
                StatusConnectivity = tbl.TestConnectivity();               
            catch (Exception ex)
                MessageBox.Show("Fehler bei der Verbindungsprüfung." +
Environment.NewLine +
ex.Message + " -> " + tbl.Location + "(" +
tbl.LogOnInfo.ConnectionInfo.DatabaseName + " " +
tbl.LogOnInfo.ConnectionInfo.ServerName + ")" +
Environment.NewLine);
We've got about 300 reports and a couple of them have two databases in one ODBC-Connection.
Any other idea? Thanks!!!

Similar Messages

  • Two parameters doesn't work with me !!!

    at [ SET_VIEW_PROPERTY Built-in ] I execute all parameters without any problems except 2 parameters :-
    First Parameter:-
    DIRECTION
    it's compiled okay , but at run time doesn't work at all.
    Second Parameter:-
    VIEWPORT HEIGHT, VIEWPORT WIDTH
    at compiled with errors at design time .... i did:
    SET_VIEW_PROPERTY('CANVAS9',Viewport Height, Viewport Width,0,0);
    and
    SET_VIEW_PROPERTY('CANVAS9',Viewport_Height, Viewport_Width,0,0);
    but it insist to complied with errors ...... but the weird thing here is when i did that:
    SET_VIEW_PROPERTY('CANVAS9',0,0);
    it successfully complied but at run time give me:
    FRM-41057: No such Property for Set_View_Property.
    P.S: "CANVAS9" is Stacked Canvas , and I'm using DB 10gR2 , Developer Forms 32 Bit Version 10.1.2.0.2 (Production)
    and Windows XP SP2 64-bit

    Hi!
    All forms properties are constants of type number.
    So, if you set
    a view property and make the mistake
    to give 0 instead of the property, the form is compiled
    successfully but at runtime there is no property 0.
    Witch property you set with
    set_view_property ( 'view_name', 0, 0 )h1. ?
    You have forgot to tell forms which property you want to change
    and the compiler does not check if there is a property with the value
    0 at runtime. You just tell the name and the values. No property.
    Regards

  • After EFI firmware update the scrolling with two fingers doesn't work inside the browsers (both safari and chrome)

    I've got a new MacBook Pro Retina from october 2013 13" (8 gb Ram and 256 gb SSD).
    I had the "freezing" issue that was solved with the firmware EDI update.
    But after this update i have now another problem: often during web browsing the scroll with 2 fingers up and down the page stops working (but the trackpad is ok for everything else and if i go in other programs the scroll works as usual). The only solution is to restart the browser but the problem happens again and again.
    Both on Chrome and Safari. Especially on Safari everything freeze if i try to scroll on the right to go back to the previous page.
    Does anybody else have this issue?

    macmattia wrote:
    I've got a new MacBook Pro Retina from october 2013
    Does anybody else have this issue?
    Doesn't matter if anybody else has this issue. 
    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • RV082 DNS Local Database doesn't work

    I recently upgraded the firmware to 2.0.2.01-tm (from 2.0.0.19-tm). Now I noticed the RV082's local DNS server ("DNS Local Database" feature) does not work any more. Any URL-IPaddr combo I used to put in there was resolved prior to sending a request to the WAN's primary/secondary DNS server.
    It isn't a PC problem. I tested on different real and virtual machines, windows and Linux. Is there new "enable" switch somwhere? Anyone, any ideas? Suppose I log into the RV082 with puTTY, what can or should I do?

    You can try a factory reset and reload the configuration but the above step i suggested if it didn't work then next suggestion would to be factory reset and reconfigure manually and then test.
    So yes you can try that first then try what i suggested and if that don't work then it will be next step
    Factory reset and reconfigure manually.. Some times when upgrading it can cause some corrupted files and only way to fix is a factory reset and reconfigure (manually)..
    Jasbryan

  • [Solved]update-desktop-database doesn't work

    The output is:
    Warning in file "/usr/share/applications/epiphany.desktop": usage of MIME type "multipart/related" is discouraged ("multipart" is a media type that probably does not make sense in this context)
    The databases in [/usr/local/share/applications, /usr/share/applications] could not be updated.
    Can anyone help?
    Last edited by qq1693129601 (2015-01-14 04:37:39)

    toz wrote:You need the proper rights to modify the files in /usr/share/applications.
    Thank you, solved.

  • IMPORT FROM DATABASE doesn't work in Web Dynpro

    Hi all, I want to use the code at the bottom to get the last packages visited by a user I specify.
    But I'm getting this error:
    IMPORT var_1 ... var_N FROM DATABASE is not supported in the OO
    context. Use IMPORT name_1 TO var_1 ... name_n TO var_n FROM DATABASE
    ... instead. var_n DATABSE ... insted var_n FROM DATABASE.
    Could someone please show me how I can resolve this?
      TYPES : BEGIN OF ty_key,
                uname  TYPE euf4values-uname,
                object TYPE euf4values-object,
              END OF ty_key.
      TYPES : BEGIN OF ty_value_table,   " Last F4 Values
                obj_name    TYPE tadir-obj_name,
                encl_object TYPE tadir-obj_name,
                position    TYPE i,
              END OF ty_value_table.
      DATA : gs_key TYPE ty_key,
             f4_last_values TYPE TABLE OF ty_value_table,
             gs_value_table TYPE ty_value_table.
      gs_key-uname  = item_user.
      gs_key-object = 'K'.
      IMPORT f4_last_values FROM DATABASE euf4values(eu) ID gs_key.

    Did you check the online documentation ? [http://help.sap.com/abapdocu_70/en/ABAPIMPORT_MEDIUM.htm#&ABAP_ALTERNATIVE_4@4@]
    I see your code has differences from the example provided in the standard documentation.

  • Create app from database doesn't work

    hi all, i am new to developing in flex, and just set up a
    test-database (php, mysql) - i created a php project, and when i
    choose data->create application from database nothing happens
    ... just nothing ... any help would be very much appreciated, i am
    sure it's a no-brainer, but i just can't figure it out at this
    stage ... i run a full version of flex 3 pro

    Did you check the online documentation ? [http://help.sap.com/abapdocu_70/en/ABAPIMPORT_MEDIUM.htm#&ABAP_ALTERNATIVE_4@4@]
    I see your code has differences from the example provided in the standard documentation.

  • EA1 - Manage Database doesn't work

    Environment:
    Windows 2000
    Connected to Oracle 10.2 or 9.2 (Using oracle spatial)
    Right click on a connection and go Manage Database.
    It brings up a tab with this text in the middle of it
    Only Oracle connections are currently supported to display status.
    Am I doing something wrong here?

    You not doing anything wrong there's a bug logged on this.
    -kris

  • Recovering iphoto library: rebuilding database doesn't work

    My iphoto-library runs on an external HDD (using a MBP 256 SSD). It contains 38.000 photos, lots of albums and projects (photo albums) and a week ago it crashed. I accidentally removed the hdd while using iphoto. This happened to me before and with a simple recovery (update library. 'Werk bij' in Dutch. I work with a Dutch version) it was back.
    But now my library is completely gone. I tried recovering my library by using 'option+command'. It recovered my photos, but not my settings. See the screen print. No albums and projects...
    My masters, previews and projects (photo albums) are all there (in finder).
    Does anybody have a solution for my problem? How do I recover my setting/iphoto library?
    Thanks in advance.

    Have you tried Repair Disk?
    Connect the external drive and open Disk Utility from your main drive. (Applications / Utilities / Disk Utility)
    In DU, select the external drive, then First Aid and click Repair Disk.
    Good luck.

  • Sync with two computers doesn't work anymore?

    Hi there
    I used to sync with my iPOD with both computers that I use. Work and Home. that's because I mostly buy music with this work computer cause it has MUCH faster connection than I have @ home.
    About a week ago I purchased John Lennon songs. Before that I had to update to iTunes plus (7.0.3) so I did so. Then I though that I just sync with iPod so I can get those songs to home computer as well. This has worked to this day without any problems. It syncs only purchased music, videos and games but nothing else and that is fine for me.
    This time it was different. When I connected my iPOD to my work computer it sayd that if I want to sync this iPOD with my work computer, it must be fully erased first. Well that's not a bad idea so I did it. Then I got home and updated my iTunes and tried to sync it with that too to get Lennon inside it but no... It said that I now how to erase my iPod in order to use it with my home computer. and transfer john Lennon songs into it. I was like what the ****... this was working fine before this new iTunes.
    So. Am I now totally slaved to use only one computer with iPOD?
    If this is a standard way to do it today, then I just have to use 3rd party software to do it or just burn them to CD... But this is not why I get this device... I wanted this to be easy as ****.. Not a prison.

    You cannot "sync" with multiple computers, you need to use the iPod manually.
    See this.
    How to use an iPod with more than one computer.
    Or are you trying to transfer iTunes purchases from iPod to iTunes?
    You do this by using the file/transfer purchases menu in iTunes, but I think you'll still need the iPod set to manual.

  • Does anyone else have two Apple IDs? I can't get rid of one of them. It's associated with my iCloud account and I can't fix it. The password doesn't work.

    So, apparently I have two Apple IDs associated with my iPhone. One is an old aol address that got hacked and was shut down. Even aol doesn't recognize the email address anymore, and the password doesn't work. It's associated with my iCloud account, so now I can't access that account. My other Apple ID is with everything associated with my iPhone and everything works just fine. But now I can't get to my iCloud stuff. Has this ever happened to anyone else. The guy at the Apple store says he's never heard of it.

    Does the alert refer to "Local Items?"

  • After updating iTunes 10.5 and iPhone 4 iOS 5 my phone doesn't work at all.  It freezes while it is trying to do the Restore phone.  That means I have not have a functional phone for two days now.  Same thing happens with my iPad 2.

    I updated Itunes to v 10.5.  Mistake!!!!  Then updated iOS 5 to my iPhone 4 now my iPhone doesn't work as the applications freezes when trying to restore the phone.  Same thing happens with my iPad 2, so now I have two pieces of equipment that are completely non-functional.  Can any please tell me what to do?  How can I reinstall the previous versions of iTunes, or iOS which were working on my iPhone and on my iPad?  I hate iTunes and this has been the last drop that messed up my equipment.  Please help me.  I do not have another phone to call APPLE.  This ***** big time!! PLEASE HELP ME!!!

    Connect to a computer to restore.

  • Am unable to install CS5 on mac running yosemite. Tried installing JavaFor OSX, it still doesn't  work. Error message reads "inconsistency in the installer database"

    Am unable to install CS5 on mac running yosemite. Tried installing JavaFor OSX, it still doesn't  work. Error message reads "inconsistency in the installer database"

    remove your caps database.  this shows the location for cs3.  make the obvious changes for cs5.
    Error "...Installer Database is Corrupt..." when you install Adobe Creative Suite 3 products

  • My cable doesn't work after two months I bought my iphone 6. Whether could I get a new one from apple free charge?

    my cable doesn't work after two months I bought my iphone 6. Whether could I get a new one from apple free charge?

    It's covered under the same warranty as the phone. So long as it's not physically damaged, they should replace it for you.

  • New SMTP server has SSL. One of two Ethernet networked Macs works, the other doesn't. Help!

    We changed from Optimum to Verizon FIOS today. We have two Macs connected by Ethernet. The Mini running Mavericks and Thunderbird 24.6 was able to set the outgoing server as smtp.verizon.net on port 465 with connection security SSL/TLS with no authentication and it works fine.
    The other Mac is an ancient G4 running 10.3.9 and TB 2.0.23 and it does not accept running without authentication.
    With optonline, we ran on port 25 with no authentication.
    I tried putting in the user name and pw we entered on verizon.net, and that doesn't work. I tried the user name and pw from our pop mailbox, and that doesn't work. BTW, the incoming mail is working fine on both computers.
    What's going on? How do we fix it?

    But I don't know what user name and password to enter. When I enter the username and password from my Verizon account on the 2nd linked computer, it does not recognize it. Does it have to be entered on both computers? What do we select on the 1st computer running Mavericks? Normal password? Then do we enter our Verizon username and password?

Maybe you are looking for