Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How to pass the database username and password in Crystal Reports/Crystal Enterprise 10?

Posted on 2005-03-17
Medium Priority
Last Modified: 2008-02-01

I have created several reports using crystal reports 10 and SQL Server for the data source.  The reports are being deployed using Crystal Enterprise.

I have created a DSN to the SQL Server database on both my local PC and on the Crystal Enterprise server.   When setting up the DSN, we selected the authentication option for “With SQL Server authentication using a login ID and password entered by the user".   A standard user name "crystal" was created in the database on the SQL Server.

To publish report I used the Crystal publishing wizard.  After publishing the report I try to run it via Crystal Enterprise and upon running, a dialog box is displayed requesting a username and password.  Is there any way to pass the username and password information (either in the report or on the Crystal Enterprise server) so that the user is not presented with the login dialog box?

In the past, we utilized Crystal Report Application Server (RAS) to deploy the reports and we modified by adding the following code to clientDoc.databaseController.logon "<your user name>", "<your password>"  the interactiveViewer.asp,   pageViewer.asp and partsViewer.asp files to passed the username and password.
Question by:PhilChandler
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
  • 2
  • 2
LVL 101

Expert Comment

ID: 13566373
What other options do you have instead of
“With SQL Server authentication using a login ID and password entered by the user"

LVL 42

Accepted Solution

frodoman earned 2000 total points
ID: 13566619
You'll need to login to Crystal Enterprise Management Console and browse to the specific report (using the 'Manage Objects' will be the easiest method).  There will be a "Database" tab for the report that allows you to set the connection options - here you'll want to enter the credentials to be used and insure the checkbox for "Prompt the user for database logon when viewing
" is NOT checked.  Don't forget to click the "Update" button after you've entered them and then you can preview the report from Crystal Enterprise to insure you aren't prompted.



Author Comment

ID: 13591888
Can I call a CE report from an application (e.g. Coldfusion) using a URL?  If so, how do I structure the URL link?

Author Comment

ID: 13593620
The information from frodoman worked.  It wasn't actually a "tab" for Database, but a link in the Process tab.  This worked once we added the database information.  Thanks so much.  I will post my other question listed above as a separate question..
LVL 42

Expert Comment

ID: 13594047
Glad to help.  I'll watch for your next question...

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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. …
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

721 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