Crystal Reports 10 Datasource Location and SQL Query update

I am running Crystal Reports 10 accessing SQL Server 2008 database on Windows 7. Our product changed database names and I'm trying to update reports to point to the new database. Sounds nice and simple. The database has no structure changes yet, it's just a copy and rename of the old database. Both databases exist, same SQL instance, same permissions, etc. ...
Existing working report:
   Has an ODBC (RDO) location to database DbVersion1
   If I run Show SQL Query, the database name is in the query text (i.e. FROM DbVersion1.dbo.MyTable)
Attempted:
   In Set Database Location popup, I created a new ODBC (RDO) connection to database DbVersion2
   Updated Current Data Source for report to this new ODBC (RDO) connection.
   Ran Verify Database. Popup stated "The database is up to date."
But when I run "Show SQL Query", is still shows DbVersion1 in the text, and the report displays data from DbVerison1. When I display the Datasource Location for the report, it shows DbVersion2 as I changed to above. How do I "refresh" the SQL Query to recognize the new Datasource Location?
Thanks,
Gary

Hi Gary,
A possible couple of issues, CR 10 doesn't support SQL Server 2008 and it doesn't support Windows 7. We had to update CR XI R2 SP 6 and above to make SQL 2008 work. MS changed the name of their client dll so CR is not aware of the new drivers.
MDAC native driver may work but not sure....
Try OLE DB, it may work better.
Thanks
Don

Similar Messages

  • Creating Crystal Reports Dynamically from an incoming SQL query

    Hi,
    I have a requirement where a sql query will be entered by the user in a text box and in the back end java code, i have to create a crystal report dynamically based on that sql query and show it in the crystalviewer object.
    For example if the user writes "select x,y from xtable ", i should be able to create a report with 2 fields, and if the user says "select x,y,z from xtable" then i should be able create and show a report with 3 fileds...thsi report creation should be done in the click event.
    Is this possible in java? I have found something similar in .NET... pls have a look at this 
    http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm
    Thanks,
    Preethi

    Hi Preethi,
    Can you please share the steps with me? I am also looking for dynamic SQL being applied to the crystal report.
    Thank you so much for your help in advance.
    Regards,
    Janakiram D.

  • No data in Crystal report created on SAP BW BEx Query

    Hi Experts,
    I am trying to create a Crystal report on top of a BW query. I am able to login to the BW system and open the BEx query and the objects are coming into the crystal report.
    But when I drag and drop some objects into the details area and try to preview sample - it does not show any data (it shows accessing database but doesnt bring any data)
    I copied the generated SQL query in to the section in the BW system in transaction code 'MDXTEST' and it runs correctly and shows me the result below there.
    Just to try - I unchecked 'Use MDX..' check box by following the path SAP->Settings to check if that could bring back data ... and YES that worked which means data is not coming from the BW query with MDX connection but when MDX seems to be fine and retrieve result when I run the sql statement in tcode MDXTEST.
    Also when I do preview samples - I can see in SM50 in BW system that it is trying to run the report just that I am not able to see any data in my crystal report.
    Any help in this regards would be greatly appreciated.
    Thanks in advance.
    Regards,
    Sunny

    Hello
    The order of display of attributes in Webi and Crystal report would be different.
    Collapse the infoobject and skim through the attributes, you should be able to find them.
    Vishal

  • SAP Crystal Reports 2011: Error INS00140 and other install errors

    Hi all,
    There have been many customers who have downloaded the Crystal Reports 2011 installation package and have run into an error when the installer attempts to recognize the keycode being used.  The error received is "The Product Keycode is not valid INS00140."
    This thread is meant to track all current resolutions that have been determined based on troubleshooting with customers thus far. In addition, the thread will provide you with the list of things that we need to know in order to properly troubleshoot the issue.
    Before attempting any of the steps below, please be sure that you are using the latest version of Crystal Reports 2011 which is SP02. You can download this version from the SAP [website|http://www.sap.com/solutions/sap-crystal-solutions/query-reporting-analysis/sapcrystalreports/index.epx].
    Coy
    ====================
    Resolution Options
    Windows XP & Microsoft Visual C++ Redistributable
    If you are installing Crystal Reports 2011 on Windows XP, then you need to ensure that the following Microsoft patches are not installed on the machine. You can check this by using the Add / Remove Programs dialogue.
    KB2467175
    KB2467174
    KB2467173
    If any of these are installed, then please remove them before attempting to install Crystal Reports 2011.
    Installing with Dashboard Design 2011 or Presentation Design 2011
    If you are installing Crystal Reports 2011 on the same machine as Dashboard Design 2011 or Presentation Design 2011, then there may be a problem with the registry key that points to the location of the keydecoder DLL. To check this, launch run regedit and navigate to the following location:
    HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Shared Tools\keydecoder.dll
    You want to make sure that the "path" key is pointing to the valid path for the keydecoder.dll. The correct path to the DLL should be: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x8keydecoder.dll.
    Uppercase License Key
    In addition to the above, you need to make sure that you are entering the license key in all uppercase characters. There is a current issue with the installer where it does not accept lower case characters.
    Fix - Coming in SP02, but can implement manually for now
    Locate the BCM-4-0.dll.2.Config file in the <install package directory>\dunit\product.crystalreports-4.0-core-32\actions
    (replace crystalreports with crystalreportsjava for CR for Ent and xcelsius for dashboards)
    Open BCM-4-0.dll.2.Config
    Locate this line:
    <bindingRedirect oldVersion="8.0.50727.0-8.0.50727.1434" newVersion="8.0.50727.4053" />
    Modify the oldVersion number to make the line like this one:
    <bindingRedirect oldVersion="8.0.50727.0-8.0.50727.4053" newVersion="8.0.50727.4053" />
    This should allow you to install without issue.
    Further Troubleshooting
    If none of the above helps to resolve the issue, then we need the following:
    The installation logs from the following folder: C:\Documents and Settings\<YOUR USER NAME>\Local Settings\Temp\<DATE OF YOUR LAST ATTEMPTED INSTALLATION>
    The results from attempting to run the keycode validator directly. You can find it under the folders that contain the installation package. For example, C:\Documents and Settings\<YOUR USER NAME>\My Documents\CrystalReports2011\DATA_UNITS\CrystalReports\dunit\product.crystalreports-4.0-core 32\actions\isKeyCodeValid.exe -keycode <YOUR KEYCODE> -version 140 -property CR.EnableCR
    You should submit a new forum post with relevant details about the error and provide links to download the logs generated by following the above steps.
    Edited by: Don Williams on Dec 22, 2011 7:53 AM

    Then try these:
    1. Download the latest version of the installation package for Crystal Reports 2011. To verify the version of extracted package, open productid.txt file located at: {installation package}\DATA_UNITS\CrystalReports\.
    Make sure it is not less than 14.0.2...
    2. Where to download Crystal Reports 2011 installation from: - free trial from SAP Online shop http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx - from SDN Community page http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm - from Service Market Place http://service.sap.com/sbop-downloads Note: downloads from all above listed locations are fully functional product installations. Trial version defined by expiring key code, not by functionality limitations.
    3. Copy the installation package to a hard drive if possible to avoid any networking issues.
    4. Login to the machine as Local ADMINISTRATOR.
    5. Temporary disable any kind of firewall, antivirus, network security etc., if possible.
    6. On the latest versions of Windows, even if logged in as local Administrator, right-click the setup.exe and select "Run as Administrator". If do not have Administrator account, right click "Run as" Select current user and uncheck the "Protect my computer and data from unauthorized program activity".
    7. Make sure there is enough space on the computer. If not sure about the space, run "Custom" installation with minimum components. Non-mandatory components could be added at any time.
    8. Finally, if there is an existing "InstallData" folder under C:\Program Files (x86)\SAP BusinessObjects rename it to "InstallDataOLD"
    Edited by: Don Williams on Dec 22, 2011 7:51 AM

  • Set datasource location and remapping fields in code instead of designer

    Dear all,
    We are currently migrating a VS6 reporting project to VS2010. The old project has like 133 Crystal Reports XI release 2 reports.
    All of these .rpt files need to have their datasource location changed and fields remapped because of a change in naming convention.
    The datasource location is currently set to a stored procedure in an Oracle database and this will remain; only the name of the
    stored procedure and the name of the fields returned are changed (due to new naming conventions).
    Is there a way, and I really hope so, to programmatically change the datasource location and remap the fields (mind that these fields are also used in formulas, grouping, total, ...).
    Doing this manually in the designer for like 133 times would be very time consuming.
    After some research I stumbled upon the CrystalDecisions.ReportAppServer.Controllers.DatabaseController but I'm looking for some example usage, if this is the correct way.
    The end result should be that all these 133 .rpt files have their datasource location changed and fields remapped.
    Any assistance or pointers in the right direction would be kindly appreciated.
    Thanks.

    Not aware of how you can do this in code.
    However, there are third party products which you can use to mass update reports with datasource and table mapping.
    RptInspector is a product I know of that can do what you want.
    Ian

  • Crystal Reports hides rows from source BW query

    Hi Experts,
    I currently have a BW query with two structures: 1) key figure structure in the columns and 2) another characteristics structure in the rows.
    Here are additional details:
    1.  I have the MDX connectivity transports installed
    2.  I have successfully linked a crystal report to this source BW query.
    My only problem is that if a certain row in the source BW report is blank (meaning it does not have any values), Crystal Reports automatically suppresses it and does not show my full row structure in the output.  I would like the report to show all rows regardless of any data values or lack of.  I do not have zero suppression in BW or Crystal Reports.
    Thanks

    Hi,
    I would recommend to extract the MDX query out of your CR report ( Database->Show SQL statement) and use the MDX transaction to test it directly against your BW server. This way you make sure if the suppression takes place already on the BW side or in the CR itself.
    Regards,
    Stratos

  • I am facing a problem in a crystal report which is based on Infoset query

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
    There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1
    Best Regards,
    Srinivas

    Hi,
    I would first of all suggest you don't open the same question twice. this looks like a duplicate to this entry:
    Best Practices v3.31 - SAP InfoSet Query connection
    Did you assign the queries and the infosets to an InfoSet user group and you assign the SAP account to it as well ?
    Ingo

  • I am facing a problem in a crystal report which is based on Infoset query.i

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
    There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1

    Please re-post if this is still an issue to the Business Objects Integration Kits - SAP Forum or purchase a case and have a dedicated support engineer work with you directly

  • Crystal Reports ActiveX Designer Design and Runtime Library 11.0

    Hi to all,
               I want to design the CR at runtime because depending upon the situation the SProcs return 20 or 30 or 40 columns. so am using Crystal Reports ActiveX Designer Design and Runtime Library 11.0 COM component. but i dont know how to write the code for this dll and the same time i want to bind the image also from the SQL database as BLOB. Could any body post sample code.
    Tools am using :
    Asp.Net 2.0, SQL Server 2005, Crystal Report 11.0

    You will likely need them all.
    Here's another [link|https://boc.sdn.sap.com/developer/library] to our Diamond support site which has much more info and sample code.
    Find this section:
    Sample Code
    Download sample code projects to run in your BusinessObjects Enterprise XI 3.0 and Crystal Reports 2008 development environments.
    Title (click to download) Technology Topic
    BusinessObjects Enterprise Java SDK Sample Code  Java Enterprise Administration
    Report Application Server Java SDK Sample Code  Java Crystal Reports
    Viewers Java SDK Sample Code  Java Crystal Reports
    Report Engine Java SDK Sample Code  Java Web Intelligence
    Web Services Java SDK Sample Code  Java Web Services
    Data Access Driver Java Sample Code  Java Data Access
    Crystal Reports .NET SDK Sample Code  .NET Crystal Reports
    Report Application Server .NET SDK Sample Code  .NET Crystal Reports
    Web Services .NET SDK Sample Code .NET Web Services
    Desktop Intelligence COM SDK Sample Code COM Desktop Intelligence
    Thanks again
    Don

  • Crystal Reports ActiveX Designer Design and Runtime Library 11.5

    Hai to all,
                I'm new in crystal report 11.5, my task is desig time i just create a blank report during runtime programaticaly create Fieldobject,Blob object and so on, i came to know this is the right (Crystal Reports ActiveX Designer Design and Runtime Library 11.5) dll but, i dont know how to write the code. Experts please post simple code, i tried this site https://boc.sdn.sap.com/codesamples but there is no code related my task, experts please help me.
    Softwares am using:
    Visual studio 2005, asp.net 2.0, SQL server 2005 and crystal report 11.5
    Edited by: winseelan j on Aug 21, 2008 4:03 PM

    Hello,
    You are using the wrong SDK in this case. You cannot use ADO.NET (crdb_adoplus.dll) with the RDC. It would not recognise it. RDC only supports classic ADO (crdb_oledb.dll). Report Creation APi and the RDC was designed for Visual Basic 6.0.
    To do what you are trying to do you would have to use the Report Application Server (RAS) in .NET to create your reports.
    I recommend starting by creating a simple application with the report created in the Crystal Report designer using ADO.NET(XML) driver and Visual Studio .NET code to pass the dataset at runtime so you are familiar with the code and properties before trying to create the full report in code with RAS.
    You will find more information and samples in the Developer's Library:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    The samples are at:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/sampleList.htm
    Look for "VB_Web_Data_DataSets".
    If you create a dataset you want in Visual Studio .NET, you can write it to XML or and XML Schema and use that to create the report.
            'From a dataset, create an XML file to use creating a new report
            'using the full path to the .xml file, include the schema
            dataSet.WriteXml("C:\Temp\myReportData.xml", XmlWriteMode.WriteSchema)
            'Or create a schema to use building a report
            dataSet.WriteXmlSchema("C:\Temp\myReportData.xsd")
    Once you have the report format the way you want it, you can use the Report Application Server Samples from the Developer's Help to give you direction in building your report at runtime:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/RAS_SDK/sampleList.htm
    Elaine

  • Crystal Reports XI Release 2 and Service Pack 2 upgradation

    Hi,
    I need your support to upgrade and migrate to Crystal Reports XI Release 2 and Service Pack 2 in my development server.
    I am currently upgrading my Crystal enterprise version 9 with the Crystal Reports XI Release 2 and Service Pack 2. I have the below questions to be clarified. Appreciate if you can reply me ASAP. Thanks.
    My Environment:
    O/S - Windows Server 2003 Standard Edition; Version 5.2 (Build 3790); Service Pack - 1
    RAM size - 1 GB
    Installed software - Crystal enterprise 9
    1) After successfully upgraded with the XI version, all my current user accounts and existing reports are not available in the upgraded version. Pl. suggest me, how to migrate my existing connections and all the existing reports?
    2) In my server, SQL Server is not installed. But SQL Server instance (SQL Server 7.00.623) is running in my taskbar (desktop). If I stopped the SQL Server instance, the "Crystal APS" in the Crystal Configuration Manager is stopped. What information is stored in the SQL Server?
    3) What is the default SQL server version bundled with Crystal Reports XI Release 2 Service Pack 2? What is the SQL server version you recommand?
    4) Will the Crystal Reports XI Release 2 SP2 supports the SQL Server 7.00.623?
    Regards
    Sanrajesh

    Hello, Sanrajesh,
    You have been using Crystal Enterprise 9.0 and now you are installing Crystal Reports XI R2. Is that correct?
    Crystal Reports XI R2 is just the Crystal Reports designer and runtime for development.
    Crystal Reports XI R2 does not have the functionality of Crystal Enterprise. The upgrade would be Crystal Enterprise 9.0 to Business Objects Enterprise XI R2. (11.5)
    A full BusinessObjects Enterprise installation will install the appropriate MS SQL Server for it's own use.
    Will this be the Enterprise server or just the Development system to create an application connecting to your BusinessObjects Enterprise server?
    What development language will you be programming in?
    If you have BusinessObjects Enterprise installed elsewhere you only need the appropriate development components on your system and connect to the server in code.
    Our BusinessEnterprise Support team would assist you in the upgrade from Crystal Enterprise 9 to Business Objects Enterprise XI R2 if that was your plan.
    Then we could discuss the development requirements.
    Elaine

  • Modes and Methods in Tag Query and SQL Query

    Hi,
    Can someone explain me about the modes available in <b>TAG Query and SQL Query.</b>
    TAG Query has modes such as <b>Current, CurrentWrite, GroupList, History, HistoryEvent, ModeList, Statistics and TagList</b>
    SQL Query i still have doubt on <b>FixedQuery with output , Modelist and TableList</b>
    I also need to know why methods are used?
    Thanks in advance
    Regards
    Muzammil

    I'll try to  explain to the best of my knowledge :
    <u><b>TagQuery</b></u>
    <b>Current</b> : Gives you the current value of the Tag you are reading.
    <b>CurrentWrite</b> : Let you write a Value as the Current Value of the Tag.
    <b>GroupList</b> : Generally Tags are grouped under different groups. Returns you the name of the Groups.
    <b>From the xMII Help Document :</b>
    <b>History</b> : History Mode returns interpolated data.  Interpolation can be accomplished by specifying either the # of rows desired or the retrieval resolution.  If the mode is "History" and a value is provided for the Resolution parameter (which is in seconds), the connector will retrieve evenly-spaced values starting at the beginning of the time interval, up to the maximum # of rows specified in the RowCount parameter.  If no value is provided for the Resolution parameter, the connector will return an evenly-spaced number of values based on the value of the RowCount parameter.
    For example, if the time interval is 1 hour, Resolution is 15, and RowCount is 240, the connector will return evenly spaced values each 15 seconds, up to 240 values (which would span the entire hour).
    If the time interval is 1 hour, Resolution is not provided or is set to zero, and RowCount is 120, the connector would return 120 evenly spaced values, at an effective interval of 30 seconds.
    <b>HistoryEvent Mode</b> : The connector can provide historical values "as they were stored" the database.  This mode provides no interpolation of values.
    <b>Statistics Mode</b> : When retrieving data for statistical calculations, the connector utilizes the same techniques as in the "HistoryEvent"  mode.  It is important to note that the first two returning columns in the HistoryEvent query must be the timestamp and the value, in that order.  The SAP xMII Statistical processor expects that order, or errors will occur.  This ensures precision of statistical measurements, particularly time-weighted average, by using the exact storage time and values from the historical database.  The SAP xMII system provides the statistical calculations.
    <b>Modelist</b> : Basically returns the modes of the Query Available. The Data returned is same as the data in the Modes list in the Quert Template Editor.
    <b>Taglist</b> : Returns all the Tags in the Datasource.
    <u><b>SQL Query</b></u>
    <b>Modelist</b> : Same as above.
    <b>TableList</b> : List of all the tables in the database to which the connector connects.
    Again from SAP xMII Help Documentation :
    <b>FixedQueryWithOutput</b> : This mode is used to execute an Oracle stored procedure or function that returns a REF CURSOR as output.  The position of the REF CURSOR is marked by a "?" in the query.  For example:
    <b>Create a table.</b>
    <i>create table usage (id int, name varchar(50));
    insert into usage (id, name) values (1, 'test1');
    insert into usage (id, name) values (2, 'test2');
    insert into usage (id, name) values (3, 'test3');
    insert into usage (id, name) values (4, 'test4');
    insert into usage (id, name) values (5, 'test5');
    insert into usage (id, name) values (6, 'test6');
    insert into usage (id, name) values (7, 'test7');
    insert into usage (id, name) values (8, 'test8');</i>
    <b>Define the stored procedure.</b>
    <i>DROP PACKAGE foopkg;
    CREATE PACKAGE foopkg IS
      TYPE cursortype is ref cursor;
      PROCEDURE test (mycursor in out cursortype);
    END foopkg;
    CREATE PACKAGE BODY foopkg IS
      PROCEDURE test (mycursor in out cursortype) AS
      BEGIN
         open mycursor for select * from usage;
      END;
    END foopkg;
    </i>
    Define a query template for calling the stored procedure.  Enter the following in the FixedQuery tab:
    <b>call foopkg.test(?)</b>
    This template returns all rows from the Usage table.

  • Cannot locate policy manager query/update service

    Hi,
    I installed soa_server 11.1.1.4.0 on windows server 2003 machine, I got a weird issue while accessing the weblogic policy manager through em. I logged into em console, weblogic domain, domain, webservvice, policy throw this erro below
    "*Cannot locate policy manager query/update service. Policy manager service look up did not find a valid service, due to: Unable to connect to WS Policy Manager. <- oracle.wsm.policymanager.PolicyManagerException: WSM-02118 : The query service cannot be created. <- javax.naming.NameNotFoundException: While trying to lookup 'QueryService#oracle.wsm.policymanager.ejb.IStringQueryServiceRemote' didn't find subcontext 'QueryService#oracle'. Resolved ''; remaining name 'QueryService#oracle/wsm/policymanager/ejb/IStringQueryServiceRemote'*"
    even my wls-m is running , I can access the http://host/wls-pm.
    Last three days I have spend for this issue but no clue.I disabled SSL, enable with SSL host validation false but also get this error.Please sort out this issue.
    Thanks
    Govindan

    Problem solved.
    Soln:
    Given ip address in the Listen Address field of weblogic Admin and SOA server. :)
    Thanks
    Govindan P

  • Hi i need help. :( how will I be able to locate and delete those update that were partially downloaded? thank you! :)

    hi i need help. how will I be able to locate and delete those updates that were partially downloaded? thank you!

    How to remove partially downloaded files in 10.6
    Hope this helps.

  • Crystal Report XI: Can you write your query in SQL instead of using the GUI

    Hello
      In crystal report version XI, can you write your query in sqlplus and then use the crystal report designer to build your report instead of using the GUI . I would like to be able to go database and show sql query and open that query and make changes directly there, is that possible on this version, if yes is there a setting somewhere? Please let me know.
    Thank you
    alpha

    Moved to Database forum.
    No you can no longer modify the SQL directly. Use a Command Object to enter the SQL directly.
    Thank you
    Don

Maybe you are looking for

  • What is the difference between select and select via function normal/rfc

    what is better ?

  • UDF for Checking the field value

    Hi I want to check the whether the fiels conatins any value or not in mapping ... if not i want to raise the exception using the UDF DO any one have sample code for writing the UDF SV

  • InteractiveForm WebDynpro

    Hello, we distribute a kiosk-system based upon webdynpro for Abap. We have made out own big buttons for the application so it´s easy to use with the fingers on a touch-screen. If the user wants to see his payslip, it is show as PDF in a InteractiveFo

  • Resource management through report

    Dear experts, I have developed a material tracking report.I want to make this report robust in terms of fetching output.Now this report fetches GRN records which may be about 200 in number for a single day for movement type 103/105 w/e. This means fo

  • Poblem while loading FS Items through Flex Upload

    Hi, While trying to append some new FS items to an existing hierarchy I'm facing issues. As suggested by Eugene (in his blog), I am mapping the 'Node' column in the load file to 'Item' in the method. However in this case the nodes are text nodes (e.g