Solved

Crystal Reports - Logon Failed - Command

Posted on 2013-01-10
8
635 Views
Last Modified: 2013-01-12
Hello experts,

I have a crystal report that is built with a command.  I log in with the admin SA and PW when I built the report in Crystal.  It previews in Crystal just fine.

However, when I try to run the report from within my application, I get an error message that says "Logon Failed" and that's it.  I am not logging into the application as an admin, but I have other reports that run in the same fashion and seem to run just fine from the application.  It's almost as if the user credentials arent saved or cached with the command.  There are plenty of sub-reports as commands as well.  

Thoughts?

Thanks!
0
Comment
Question by:robthomas09
  • 4
  • 3
8 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 434 total points
ID: 38765809
User credentials are NOT saved with any report regardless of connection method or database used.

Commands are run as the report is opened so even if the credentials were stored they wouldn't be available.
Does the user running the report have permissions to the tables used in the command?

mlmcc
0
 

Author Comment

by:robthomas09
ID: 38765828
Thanks for the reply mlmcc.  

Yes the user is a SQL admin with db owner privs.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 38765836
Is the report set to use integrated security or SQL authorization?

Does the user see a login screen?

mlmcc
0
 

Author Comment

by:robthomas09
ID: 38765845
the user does not.  I dont see a user name in the properties area of the command so I assume that's integrated yes?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 21

Assisted Solution

by:Alpesh Patel
Alpesh Patel earned 66 total points
ID: 38765848
Please refresh the database from Menu and update the sql source in report with correct credentials.


It will resolve you issue.
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 434 total points
ID: 38765868
The report DOES NOT store user credentials.

WHen you configured the connection in the report did you set it to use integrated security?

mlmcc
0
 

Author Comment

by:robthomas09
ID: 38766917
I clicked add new connection, chose ODBC, my database name, entered the sa and pw, and it showed up in my view.  When I look at the database properties in Crystal, the "Use DSN default properties" is set to False.

How else can I tell if I set it to use integrated security?  I thought that if I dont see a user name in the properties area of the command then that's integrated?
0
 

Author Comment

by:robthomas09
ID: 38771191
It was a problem with permissions as described above.  Syncd up users.  Thanks!
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now