Solved

Changing databases without touching the RPT

Posted on 2002-04-23
10
330 Views
Last Modified: 2006-11-17
I have developed several Reports (RPTs) that connect to a development SQL Server 2000 database using OLE DB.

Now that they have been completed they are going to be submitted to a source code control system (probably Visual Source Safe) and migrated into testing and then one day into Production.

Each time they are migrated they will be using a different database however technically I shouldn't be touching the insides of an RPT file as it moves through these stages.  Any modifications should occur in the development stage and cause new versions of the file to be generated and then controlled.

So, I would like to be able to change the database an RPT is linked to without changing the RPT file.

One idea I had was to link the RPT to a local UDL file.  Then all I would have to do is change the UDL file when I change databases.  It seems though that the Report Designer only uses UDL files to extract connection info and then stored the info in the RPT file afterall.

I took a look at Crystal Queries but they only use ODBC.

I do not want to use ODBC DSNs as the solution I want to stick with OLE DB because then nothing has to be configured on the PC.

Any ideas?

I also hope to install these reports in Crystal Enterprise.  Can I specify the database they are to use when they are installed into Crystal Enterprise?  This may solve my problem too.
0
Comment
Question by:gawilson2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 6966127
0
 
LVL 5

Author Comment

by:gawilson2000
ID: 6970014
Aha, a visit from the honorable Mlmcc, complete with references to KB articles.  Honestly, thanks for your attention.

As I mentioned I hope to install these into Crystal Enterprise and I hope to not use VB.  I know how to change databases with VB.

I haven't yet been able to gain access to a Crystal Enterprise server to have a proper play but from what I could see with some brief contact, CE uses the login info found within the RPT file.  This is not to say that CE cannot override these settings.

Your KB article on the Automation Server may be of some assistance since I think this is a component of CE but I'm hoping that I don't have to add any code to the server side components.

Any other ideas?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 6970277
I have no experience with CE so I don't know.  I CR allows you to change the database but that means you would be changing the report.

What we did to avoid this problem was to setup the Production environment first and then duplicate it (so to speak) on a small development network.  The databases have the same names, the servers are named the same, the MS SQL servers are named the same.  All tables, queries, stored procedures are duplicated.  We did this to avoid your problem not only with CR but also with our VB application which would have had to change at least the connection strings.  Our reports run with no changes.

Fortunately our development network (5 machines and a server) isn't connected to the production network so we could do that.

We use a CDR/W to transfer files betweem the networks.  This may be a thought for you in the future but it may not work in your current configuration.

I'll look further for more help.

good luck
mlmcc
0
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.

 
LVL 5

Author Comment

by:gawilson2000
ID: 6975816
Thanks for that.

Unfortunately, where I am, all of the databases (although duplicated in structure) have different names and reside on the one SQL Server.  Which works fine except for this issue.

I hope to have CE server up and running within a day, hopefully I will have a solution then.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 6975839
I'll keep thinking and looking

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 6994680
Have you found an answer?
0
 
LVL 5

Author Comment

by:gawilson2000
ID: 6995119
I've had trouble installing CE - but it should be up and running soon.

It has a database section but I don't know how easy it is to change databases one the report is installed.

So, no, no answer yet.
0
 
LVL 5

Author Comment

by:gawilson2000
ID: 7565353
Again, I think I'll close this one too.

The answer maybe that update8x.exe that Crystal provide.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 7569983
No problem

mlmcc
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7865349
Points refunded and question closed.

Netminder
EE Admin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

737 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