Solved

Changing databases without touching the RPT

Posted on 2002-04-23
10
329 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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. …
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

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