Skip to Content
author's profile photo Former Member
Former Member

Switch database in Crystal Report 2013

Hi All,

I have Crystal Report 2013 and my client require to connect multiple database with single report. I have more than 10 MySql database and all database structure are same.

E.g. Create one report Employee Detail and connect using ODBC (RDO) I have successfully connected my single MySql database. Now I need to use this report for another database.

My question is how to switch database at runtime?


Anybody help me please.


Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 29, 2014 at 07:47 AM

    Hi Bhavin,

    If you don't want to use the Set data source location feature, just configure the existing ODBC connection so that it points to the other database.

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 29, 2014 at 03:23 PM

    hi Bhavin,

    you also may wish to look into mysql's Federated Tables, a similar feature to ms sql linked servers where the other db tables would show up as a view in your main db.

    you should be able to use a stored proc that change the federated table on the fly based on a report parameter.

    also in theory you could base your report off of a Command object that changed the federated table on the fly. a command object can work to change the tables on the fly if the tables are of the same structure and if the command outputs the same field names.

    -jamie

    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.