Solved

Crystal Reports - Logon Failed - Command

Posted on 2013-01-10
8
645 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 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