Changing command datasource location in Crystal Reports 9

Posted on 2007-08-01
Last Modified: 2011-10-03
Can you change the source location for a "command" in Crystal Reports 9. I am following the steps that you would think have to be done.
Open Set Datasource Location
Expand until I see my new ODBC datasource
Highlight Command at the top and Add command at the bottom.
Click update.
Add my sql (same as current command). Click ok. It comes back with nothing changed.
Question by:zwseemm
    LVL 28

    Accepted Solution

    Unfortunately, it is not that easy unless you have Crystal Enterprise.
    If you have CE, you need to add your command to the repository, then create a new report, and the new command to that report then add it to the repository.
    Once you have done that, then you can do a Set Datsource Location to the new command which is a Repository object.
    If you don't have CE, then you have to add the new command to the report as a second object, then manually replace every reference to the original command with the matching field in the new command.  I know it is tedious, but it is the only way.
    LVL 2

    Expert Comment

    bdreed is correct, and the same is true in XI.
    One small shortcut...
    Delete the old command and add the new one with the old one's name.  You lose all field objects, but the formulas work.  If you then change the command name, crystal updates your formulas

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now