Solved

Crystal Reports - Logon Failed - Command

Posted on 2013-01-10
8
651 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
[X]
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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
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 …
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…

742 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