Solved

Changing databases without touching the RPT

Posted on 2002-04-23
10
328 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
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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…
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…

821 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