Solved

Crystal Reports - Logon Failed - Command

Posted on 2013-01-10
8
633 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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.

Join & Write a Comment

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…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

14 Experts available now in Live!

Get 1:1 Help Now