Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Selecting a DB Server at run-time

Selecting a DB Server at run-time

Selecting a DB Server at run-time

I'm working on a project where the client needs to generate their own custom reports.  Every time they create a new report, they don't want to have to recompile and redistribute the entire application to every desktop in the company.

For this reason, we went with Crystal Reports, since its external *.rpt file capabilities seemed the perfect solution to our problem.  But now we're having problems with the crystal reports.

Each report is generated using one (or possibly more) stored procedures on a SQL Server 2000 database.  When being developed, the report developer uses a development server, so any mistakes they make won't affect the live server.

We wrote a small report-viewer application using the Report Viewer Control.  The problem we're having is that when the report is opened in the viwere application, we need to connect the report to the _LIVE_ database server, even though it was developed and tested against the development database server.

The database name, table structures, and stored procedures are identical on both servers (although I realize the objectIDs are different, and am wondering if that could be the problem.)

The report viewer application should not take any part at all in building the dataset used in the report.  Everything that is different from one report to the next should be entirely contained within the report and its accompanying stored procedure.

Any suggestions on how to sove this problem?

BTW, we're developing in VB6SP4.



RE: Selecting a DB Server at run-time

Calin: Look up the SetLogonInfo or LogonServer methods in the CR Developer Help. They will show you how to set your report data location from TEST to LIVE. Any questions get back to me

David C. Monks
Accredited Seagate Enterprise Partner

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close