Solved

Multiple Databases in Crystal 8.5 and VB6 Viewer

Posted on 2006-06-23
4
729 Views
Last Modified: 2012-06-27
Hello,

I have to 2 applications:  MAS200 and Sage CRM.  They use a Providex DB and a SQL DB respectively.  I have a crystal report that pulls information from both of these databases using ODBC and it works well.

I am trying to add the crystal report viewer functionality to a VB6 toolbar for users to run their own reports.  Everything works fine when I only run a report that uses the SQL DB.  But as soon as I try to run a report that uses both DB's, i get a "Server has not yet been opened".

I tried using the .Database.LogonServer and it only works for the SQL ODBC Connection

Set report = crapp.OpenReport(myreport)
    report.Database.LogOnServer "p2sodbc.dll", "Sage CRM", , "sa", "password"
    report.Database.LogOnServer "p2sodbc.dll", "SOTMAS90", "SAM", "adm", "password"

Is this even Doable?  If so, can anyone help me please!!!  I need to put both DB's information on one report!

MANY MANY THANKS TO ANY HELP!!
0
Comment
Question by:posae
  • 3
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 16973762
Not in the way you are trying to do it.

Crystal doesn't handle multiple data sources very well especially if they are from different databases or data base types as in this case.

You can build the report against one of the data sources and use a subreport for the other source.

You could build a basically empty report and use 2 subreports, one for each data source.

You could link the tables in one of the databases into the other thus having a single datasource.

mlmcc
0
 

Author Comment

by:posae
ID: 16975010
Hi mlmcc!  Thanks for your time.

I do have these set up as sub reports.  You mentioned linking the tables in one database, what does this mean?  

THanks!
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 16975878
With some databases you can link to other databases.  Check with your DBA.

I don't know if these are compatible or not.  You maight also be able to use Access to link the tables into a new database.

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 16981071
Glad i could help

mlmcc
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

749 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