Skip to Content
author's profile photo Former Member
Former Member

prompted for username & password when opening a report


I was wondering if anyone could help me with the issue I am having. I am using a Winform application using Crystal Report Viewer for VS2010. When I execute the report, I get prompted for the username and password every time.

I am running it on a Windows 7, SQL Server 2005 Express, .NET 4.0. I didn't have this issue when I was running it on Windows XP, SQL Server 2000, .NET 2.0.

Any help would be appreciated...



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 12, 2013 at 06:06 PM

    Only reason CR will prompt for DB log on info is because the DB info has changed from what is saved in the report. We don't save the password so it must log on once.

    Are you using ODBC or OLE DB? and which driver, SQL Native or OLE DB Provider for SQL Server?

    If you are using/were using Trusted Authentication then you need to be sure your user name is in SQL Express also.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      I have opened the report and saved the new connection info.

      I am using ODBC with the SQL Native driver.

      I am using trusted connection but, I don't understand what you mean by needing the username in SQL Express?



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.