Skip to Content

View SQL Command In Report

I have a command in one of the reports which is made up of SQL code.

The database the command is using has been deleted and is no more

I need to get the code out of the command so I can adapt it to use on a different database

I cant figure a way of doing it as Edit and View Command obviously don't work

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 20, 2020 at 02:16 PM

    You might be able to use Set Location to point to a different database. Don't let Crystal delete anything that you can't map to fields in the new database. You can then get the query so that you can edit it.

    -Dell

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2020 at 08:44 PM

    Hi Mark,

    Have you tried clicking the "Show SQL query" under the database menu?

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2020 at 09:35 PM

    you can go sql server management studio and do this


    sap.png (393.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.