How can I change Overridden Qualified Table Name with a programm

Hallo have the the Problem
to change more then 500 Reports more than one time
I want to change to change qualified Tabelname with a programm ( I wan't del the qualifier )
manuel with the report designer I set the replace qualified Tablename and then verifiy Database is ok
I want to do this with a program but the Qualifiers is write protected
How can I change the Qualifier by programm.
thanks for help

Hello, Jörg;
As I mentioned, you can remove the Qualifier in the report designer but we do not recommend it. It is not supported at runtime in an application. We expect a table location to be fully qualified or you may get incorrect data.
There is a way to change the fully qualified location at runtime and get and set the qualifier. The following code gets what is saved in the report.
'Definitions in Module.bas
Public crxApplication As New CRAXDRT.Application
Public External_Report As CRAXDRT.Report
Public ReportFileName As String
Public crxTable As CRAXDRT.DatabaseTable
Private Sub Get_Qualifiers()
'Get the fully qualified table location
'Change it if necessary and set the new location "owner.dbo.tablename"
'Verify the Database
' Assemble the qualified table name for each table.
For Each crTable In External_Report.Database.Tables
    Dim strQualTableNamePart As Variant
    Dim strQualTableName As String
    strQualTableName = ""
    ' Obtain the table's qualifiers.
    Dim i As Integer
    For i = 1 To crTable.Qualifiers.Count
        If i > 1 Then
        strQualTableName = strQualTableName + "."
    End If
    strQualTableNamePart = crTable.Qualifiers.Item(i)
    strQualTableName = strQualTableName + strQualTableNamePart
    Next
    ' Obtain the table's name.
    If (strQualTableName <> "") Then
        strQualTableName = strQualTableName + "."
    End If
    strQualTableName = strQualTableName + crTable.Location
    ' Display the fully qualified table name.
    MsgBox "Fully qualified location " + strQualTableName
    crTable.Location = strQualTableName
Next
'Should be the equivalent of:
'External_Report.Database.Tables(1).Location = "Xtreme1.dbo.Customer"
'If the structure of the database has changed, verify the database
'External_Report.Database.Verify
End Sub
Elaine

Similar Messages

  • Is it possible to change Overridden Qualified Table Name in code?

    Hi,
    Environment: Crystal Reports XI R2, 2008, Sql Server 2005
    I had about 1000 reports to change. Several changes are the standard, so i had created several tools that i use to make that change in all reports.
    However i can't find a way to change Overridden Qualified Table Name and remove the Catalog and Owner information, so it seems that the only way is using CR editor and make these changes one by one... not a good idea!
    Does anyone managed to do this???
    Thanks,
    Carlos Crespo

    Hi,
    <P>Thanks for your input.</P>
    <P>I use CR in two ways:<BR>
    a) to develop reports to use in our projects - In this case we don't have major issues with this, and we chance the location of the database in code at runtime;<BR>
    b) to develop reports to use in ERP softwares from third parties - and here we are having some issues - not always but some times.<BR>
    We know that they change the location of the DB in code also (no specific info however).<BR>
    <P>An example:<P>
    We change a report on my development PC, against a DB called TEST;<BR>
    We send the report to the customer, who runs it on its system, trying to read data from a db XYZ;<BR>
    If the customer also has a TEST db, in some reports the system reads some tables from XYZ, but others he gets the info from TEST db. In one example our customer has an invoice where all data was from the production DB, except the COUNTRY table that was read from a copy of the TEST db. After TEST was removed, the data was read from the production DB....<BR><BR>
    And to get you an idea: we're talking about hundreds of customers - some of them have 600 SQL DBs in the same server (small Dbs, around 70/500 MB in size) - so we can only hope that the user doesn't create a DB with the same name we used to develop the report...<BR><BR>
    And what i don't understand is WHY we can define Overridden Qualified Table Name  in same tables, and not in others.<BR><BR>
    Example:<BR><BR>
    One of the reports has 6 sub-reports. <BR>
    I can define Overridden Qualified Table Name  in the main report (except for a View), and in 2 of the subreports - but not in the other 4...<BR>
    The zero in front of the table name shows  a table where Overridden Qualified Table Name has been defined, and the original Catalog and Owner was removed - the 2 shows a table where Overridden Qualified Table Name has been defined, but the original catalog (PRITESTEDOC75) and owner (dbo) remains.<BR><BR>
    I even tried to export the sub-reports, change this info in the sub-report, and then import it again (a suggestion from Business Object support), but it doesn't work...<BR><BR>
    Main Report:<BR>
    Artigo     0     <BR>     
    CabecDoc     0     <BR>     
    LinhasDoc     0     <BR>     
    ModosExp     0          <BR>
    Clientes     0          <BR>
    CondPag     0          <BR>
    DocumentosVenda     0     <BR>     
    Moedas     0          <BR>
    MoradasAlternativasClientes     0     <BR>     
    OutrosTerceiros     0<BR>          
    ArtigoIdioma     0          <BR>
    Paises     0          <BR>
    ArtigoLote     0     <BR>     
    TDU_CC_INFODOCVND     0     <BR>     
    Clientes_Fac     0     <BR>     
    Paises_Fac     0          <BR>
    V_Entidades     2     PRITESTEDOC75     dbo        (V_Entidades is a View, not a Table)<BR><BR>
    Sub-Report 1:<BR>
    GCP_VND_CalculaTotaisDocumento     2     PRITESTEDOC75     dbo (GCP_VND_CalculaTotaisDocumento is a SP)<BR><BR>
    Sub-Report 2:<BR>
    CnfTabLigCBL     2     PRITESTEDOC75     dbo<BR><BR>
    Sub-Report 3:<BR>
    LinhasNumSerie     2     PRITESTEDOC75     dbo<BR><BR>
    Sub-Report 4:<BR>
    ResumoRetencao     0          <BR>
    Historico     0          <BR>
    OutrosTerceiros     0          <BR>
    EntidadesPublicas     0          <BR>
    Clientes     0          <BR><BR>
    Sub-Report 5:<BR>
    1 ResumoRetencao     0     <BR>     
    2 Historico     0          <BR>
    3 OutrosTerceiros     0          <BR>
    4 EntidadesPublicas     0     <BR>     
    5 Clientes     0     <BR><BR>
    Sub-Report 6:     <BR>
    1 ResumoIva     2     PRITESTEDOC75     dbo<BR>
    2 CabecDoc     2     PRITESTEDOC75     dbo<BR>
    3 Iva     2     PRITESTEDOC75     dbo<BR><BR>
    Best Regards,<BR><BR>
    Carlos Crespo<BR>

  • Catalog and owner remain after setting Overridden Qualified Table Name-2008

    Hi all - when using Crystal Reports 10, I could remove the hardcoded catalog and owner (database and owner/schema) for a table or view by setting the "Overridden Qualified Table Name" to be the same as the table or view listed in "Table Name".  (This is in the Set Datasource Location, properties of an individual table or view).
    When using Crystal Reports 2008, when I set the "Overridden Qualified Table Name", the Catalog and Owner remain.  This is causing a problem for the processes that we use to actually run our reports as the reports are trying to be run against the database listed in catalog.
    Is there some setting in Crystal Reports 2008 which is needed in order for these hardcoded database names to be removed as they were in Crystal 10?
    Thank you

    Hi Sharon, thank you for the reply.  I did not verify the database after making the change as this was not necessary in Crystal Reports version 10.  I just did that now and reopened the "Set Datasource Location" section and it appears to be the same in that the catalog and owner are still present.
    I found this thread - Delete catalog and owner info from tables on ODBC (RDO) report - which is the same question that I have, but it was never answered either.
    Any thoughts are appreciated.
    Thanks!

  • HT204053 I have an iCloud account on my Mac which has a different account name to that on my iPhone. How can I change the Mac account name to that on the iPhone?

    Hi,
    I have an iCloud account on my Mac which has a different account name to the iCloud account on my iPhone. How can I change the Mac account name to match the iPhone one? Kuranda.

    You can't change it in one step. Sign out of the one now on the Mac, sign onto the right one.

  • How can I change my iCloud account name ?

    Howe can I change my iCloud account name?

    I know this is a year later, but someone may want to know.  Go to http://appleid.apple.com login and you can change it there.

  • How can I change the displayed account name under mailboxes in my mail post iCloud merger?

    How can I change the displayed account name under mailboxes in my mail post iCloud merger?

    Hi ..
    You would have to sign out in order for your account name to not be visible.
    Click your account name then click Sign Out.

  • How can I change the email address associated with my iCloud account?Ask your question.

    How can I change the email address associated with my iCloud account?

    sschultz365 wrote:
    When my iPhone updated, it reloaded an old email address as my iCloud address and I don't know the password associated with that email address.  How do I delete the old account and set up a new one with my new email?
    To change the iCloud ID ("email address") you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can I change the email address associated with my iCloud account?

    How can I change the email address associated with my iCloud account? Somehow, accidentally have my wife's email address on my iCloud account and on hers as well.

    iCloud FAQ
    http://support.apple.com/kb/HT4436

  • How can I change the Apple ID associated with my iCloud account? I changed it in my itunes but the old id is still hijacking my icloud!

    how can I change the Apple ID associated with my iCloud account? I changed it in my itunes but the old id is still hijacking my icloud!

    Hello pscorning1,
    I apologize, I'm a bit unclear on the exact nature of your question. If you have already changed the information associated with your current Apple ID (*not* created an entirely new Apple ID), you may find the following article about updating the various Apple ID services helpful:
    What to do after you change your Apple ID email address or password - Apple Support
    Sincerely,
    - Brenden

  • HT204053 How can I change the iCloud id associated with my iPad?

    How can I change the iCloud ID associated with my iPad?

    To change the ID for:
    iMessage, go to Settings>Messages>Send & Receive, tap the ID sign out, sign back in using the other ID.
    FaceTime, do the same thing in Settings>FaceTime.
    iTunes, do this in Settings>iTunes & App Store.
    iCloud, start by saving your photo stream photos to your camera roll by opening your My Photo Stream album, tap Select, tap all the photos you want to save, tap the share icon (box with upward pointing arrow), then tap Save to Camera Roll. Then go to Settings>iCloud, tap Delete Account and provide the password when prompted, then sign back in with the ID you want to use.  This will delete the account and iCloud data from your phone but not from iCloud.  Provided you are signing back into the same account and not changing to a new account, your data will be synced back to your phone when you sign back in.  However, if you are setting up a new account with a new ID, when you delete the account be sure to choose Keep on My iPad, then choose Merge when you sign into the new account to upload your data. 

  • HT204053 How can I change the apple ID associated with my iCloud account?

    How can I change the apple ID associated with my ICloud account?

    Hello pscorning1,
    I apologize, I'm a bit unclear on the exact nature of your question. If you have already changed the information associated with your current Apple ID (*not* created an entirely new Apple ID), you may find the following article about updating the various Apple ID services helpful:
    What to do after you change your Apple ID email address or password - Apple Support
    Sincerely,
    - Brenden

  • How can I change my email account name to my alias?

    The Verizon email address all my friends, family, and business associates have used for more than 8 years (Jxx Sxxxx) turns out to be an alias. My primary account name seems to be JSxxxx. I recently changed to high speed enhanced and these things happened:
    Outlook, where I receive my email, continues to receive all mail addressed to Jxx Sxxxx, just as it always has. If I compose a new email or hit the reply button, my outgoing emails SHOULD show up in the recipient's mailbox as Jxx Sxxxxx. Instead, they appear with the sender name Mxx Sxxxx (the name of my husband, the account owner). I need my own name back in order to get my emails read by business associates and others who don't know who Mxx Sxxxx is. 
    In addition, only email addressed to JSxxxx comes to my regular Verizon account (accessed at webmail.verizon.net). NO email addressed to Jxx Sxxxx comes to that account, which means that if I am away from my computer I cannot access my email at all.
    How can I change my so-called account name to my alias without losing all the emails in my Outlook account? That is, how can I get rid of my primary account name, and substitute my alias?  

    Verify Account https://forums.adobe.com/thread/1465499 may help
    -wrong email https://forums.adobe.com/thread/1446019

  • How can find  database field and table name

    how can find the underline database field name,table name from java page. Example. in oracle apps when we go purchaseing super user then supplier base then supplier and find supplier detail .

    Hi,
    depends on your model. If you work with ADF BC then you can use ViewLinks to access parent or detail infromation programmatically. See the developer guides for more information. Note that you wont access the tables directly but the collections that represent the records
    Frank

  • How can i change an iCloud account name?

    Our main office computer has it's icloud acocunt name of an ex-employee. How can I change this as we'd all like to forget her.
    Cheers

    You can't change it in one step. Sign out of the one now on the Mac, sign onto the right one.

  • I update my iCloud storage today but I paid with my wife's credit card and now anytime that I sended an email appears the name of her instead of mine to all my contacts ??? how can I change and put my name in my emails ??

    hi please I need help , I paid with my wifes credit card the upgrade in my icloud storage today but now any time I send an email appears ....from: my wifes name instead of my name ....how can I change this ,thank you

    You might want to make sure your credit card is listed in the billing information associated with your Apple ID (see http://support.apple.com/kb/ht1918).
    Also, to change the From name that appears when you address emails on and iOS device, go to Settings>Mail,Contacts,Calendars...tap your iCloud email account, tap you iCloud account at the top, tap Mail at the bottom, then enter the name you want to use in the Name field at the top.
    To change the From name on your Mac Mail, go to icloud.com, sign into your account, open Mail, click the gear shaped icon on the bottom left and choose Preferences, go to the Accounts tab and enter the name you want to use in the Full Name field and click Done.  Then quit Mail on your Mac and re-open it.  Your new From name should now appear in the drop-down list when you compose a new email.

Maybe you are looking for

  • What's going on with Mail this morning?

    Is anyone else having problems accessing Mail? I can't access it on iCloud.com or my iPhone. (Not at home to check my laptop.) My internet connection is not the issue; that's working fine on my work computer and on my phone. I'm not getting any passw

  • Crashing when trying to generate menu

    I am using premiere elements 4.  I create slideshows in another program and bring into PE to create chapters and menu.  I just imported a MPEG and have no problems until I go to generate the menu.  It crashes everytime, the minute I click on the menu

  • Why is the sound on my computer not working?

    It makes the start up sound but it won't play music or anything on the internet, like youtube?

  • Y axis Time chart

    Hi group, I am new to Numbers and wondering whether it can do what I want (and how to do it!). I've never worked with charts before... Basically, I want to create a chart with Addresses on the X Axis and Years on Y Axis. I want to be able to say that

  • CS4 not showing design view

    On my website, www.benefitswriter.com, a friend and professional designer designed it. But with the way he coded, I can't use the design view. If I use the Live View, I can see the page but my properties box is unavailable. That's problematic since I