Report sometimes prompts for database logon prior to execution

I have installed the Crystal Reports Integration Addon on our system and it works correclty for users on our terminal services server.  But when I installed it on a user's PC running Windows XP, when I go to execute an existing report, the Runtime viewer launches, and then displays a Database logon panel with the Server field filled in, the database field is blank, and the SA user and password fields are populated, and I get an error that says logon failed.  I type in the SA user id and password, but get the same error.
If the same user logs onto the TS server, the runtime viewer launches correctly and the report prompts for input, then displays the appropriate data (no database logon is requested). But if it runs at that user's workstation, the viewer launches, and then prompts for database logon.
We are running SAP 2007A SP00 PL47, CR Basic 2008 for SAP Business One, and the runtime viewer is Crystal Reports 2008 Runtime SP1. version 2.0.0.7

Hi Bruce,
I am not sure what the problem is.
The only workaround I can think of is to change the Integrated Security in the report to true. This means that you will be using Windows Authentication as opposed SQL Authentication. This will not prompt for SQL username and password.
Usually this is NOT an ideal process as you will have to Add each and every Windows user in the SQL Database you are trying to access. For example, you have to add DOMAIN_NAME\User_Name under the Database Properties.
I am not sure what the minimum security you need to run the report. You will try a few different options and see what works best for you. Avoid permissions that would give users ability to write to the SQL database.
Again, I know this is not ideal. But I am not sure what else can be done here.
Krishnan

Similar Messages

  • Infoview prompts for database logon screen when updating dynamic parameter

    I have already set up initial database ID/PW for the report in CMS, but when I I tried to update my parameter to schedule the report, it is requiring the user to enter database ID/PW again........Is there a way to set this up so that the user can bypass this step since it is quite annoying?
    Thanks.

    Is your lov created Business View Manager? If it is, you can store the userid and password in the data connection your business view is based on.
    1) Start Business View Manager. Close the default screen that appears.
    2) Click View > Repository Explorer on the menu bar.
    3) Expand the Dynamic Cascading Prompts folder. Locate the "Data Connection" for the appropriate dynamic parameter. It will be in the form of <parameter_name>_DC (i.e. it will have the name of the parameter and then '_DC').
    4) Double-click the Data Connection. "Property Browser" will appear.
    5) Type the database user name and password in that Property Browser.
    6) Set the Runtime Prompt to Never Prompt.
    7) Save the changes to the Data Connection.
    The prompt for database logon information will no longer appear when changing parameter values.
    Hitomi

  • Prompting for Database logon

    Hi all,
    I hardcoded the database logon credentials for a report on CMC and selected " Use the same logon Details when you run". But when i am running the report on Infoview it is prompting for Database logon credentials. I dont want the user to be prompted for logon credentials when he runs the report from Infoview. Is there any other configuration do i need to do on CMC side. I have few other reports running on the same database, when we run those reports it is not asking for logon credentials. It is asking for only that specific report.
    Any ideas would be greatly appreciated.
    Environment: BOXI3.1, Crystal Reports 2008 and SQL server 2005.
    Thanks and Regards
    Sudharsan.

    Moving to BOE forums

  • Prompt for database logon information

    I am using CRS XI R2 SP4 on Windows
    I installed a report on the server and completed the datasource information and set the checkbox for using the same database info when report is run.
    However when the run is run the user is prompted for database user/password the other fields such as database host and database name are read-only.
    The only difference between this report and other reports that do not exhibit this behavior is that this report has a sub-report that uses a Command object
    Please suggest ways to suppress the database login prompt.
    Regards
    Lawrence

    did not receive a response to my question

  • Report that uses web services as data source, prompts for database logon

    I have a crystal report that uses web services as a data source. When I deploy the report to Infoview it prompts me for a database username and password. Since I am not using a database it should not prompt me for these. I tried various options in the CMC->database settings for this report but it still prompts me for the database logon info or tells me that the database logon information is incorrect.
    The report work fine in the Crystal Reports Designer.
    Does anyone know how I can prevent this report from prompting me for the database logon info ?
    Thanks,

    What options have you tried in the CMC?
    Have you tried running the report in Crystal Reports installed directly on the Enterprise machine?

  • Infoview prompts for database logon screen when changing dynamic parameter

    I have already set up initial database ID/PW for the report in CMS, but when I run the report from InfoView as I tried to update my parameter, it is requiring the user to enter database ID/PW again........Is there a way to set this up so that the user can bypass this step since it is quite annoying?
    Thanks.

    did you try selecting use same database credentials database option in CMS? If you are still getting the database prompt then it might be because of dynamic parameters in the report. If you have any dynamic parameters in the report it generates LOV in the repository. So try to open the LOV in Business VIew Manager and check the properties of the LOV and go to corresponding data connection for that LOV and in the properties tab select never prompt instead of always prompt by giving database credentials.
    regards,
    Raghavendra

  • CrystalReports prompting for database details

    Hello all,
    I am posting this issue for the second time.. In my previous post, I didn't get a solution.
    For some reason a few of the reports that we run are prompting for database information for no apparent reason. I have provided a screen shot of what the behavior looks like.  Can you please let me know if you have any ideas on what might be causing this?  I have written a number of reports with the same use but for some reason only a few behave in this way.
    Any ideas you may have would be helpful.
    [Crystal Report DB Login screen|http://img214.imageshack.us/img214/7665/image006cy.jpg]
    Thanks in advance
    Anoop

    Hi..
    I am using CrystalRepots 12.2 in my machines and .NET Framework 2.0.
    I am using vb.net 2005 for developing applications.
    I am using SQL 2005 Database.
    Connection using is ADO.NET
    Here is the database login source code. Please check it.
    <pre>
                Dim c As ConnectionInfo
                Dim crDB As Database
                Dim crTables As Tables
                Dim crTable As Table
                Dim TblLogonInfo As TableLogOnInfo
                Dim crSections As Sections
                Dim crSection As Section
                Dim crReportObjects As ReportObjects
                Dim crReportObject As ReportObject
                Dim crSubreportObject As SubreportObject
                Dim subRepDoc As New ReportDocument
                Dim ServerName As String, DatabaseName As String
                    Me.rptDoc.Load(sCRPath, OpenReportMethod.OpenReportByTempCopy)
                    ServerName = ActiveCompanyServer
                    DatabaseName = ActiveCompanyDB
                    c = New ConnectionInfo
                    'Set Conenction info for DB
                    With c
                        .ServerName = ServerName
                        .DatabaseName = DatabaseName
                        .UserID = "sa"
                        .Password = SAPsaPwd
                    End With
                    'Associate DB to the report
                    crDB = Me.rptDoc.Database
                    'Instantiate Tables collection
                    crTables = crDB.Tables
                    'Loop thru tables in report and set connection information
                    For Each crTable In Me.rptDoc.Database.Tables
                        TblLogonInfo = crTable.LogOnInfo
                        TblLogonInfo.ConnectionInfo = c
                        crTable.ApplyLogOnInfo(TblLogonInfo)
                        crTable.Location = c.DatabaseName & ".dbo." & _
                                 crTable.Location.Substring(crTable.Location.LastIndexOf(".") + 1)
                    Next
                    'Set the sections collection with report sections
                    crSections = Me.rptDoc.ReportDefinition.Sections
                    'Loop through each section and find all the report objects
                    'Loop through all the report objects to find all subreport objects, then set the
                    'logoninfo to the subreport
                    For Each crSection In crSections
                        crReportObjects = crSection.ReportObjects
                        For Each crReportObject In crReportObjects
                            If crReportObject.Kind = ReportObjectKind.SubreportObject Then
                                'If you find a subreport, typecast the reportobject to a subreport object
                                crSubreportObject = CType(crReportObject, SubreportObject)
                                'Open the subreport
                                subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
                                crDB = subRepDoc.Database
                                crTables = crDB.Tables
                                'Loop through each table and set the connection info
                                'Pass the connection info to the logoninfo object then apply the
                                'logoninfo to the subreport
                                For Each crTable In crTables
                                    With c
                                        .ServerName = ServerName
                                        .DatabaseName = DatabaseName
                                        .UserID = "sa"
                                        .Password = SAPsaPwd
                                    End With
                                    TblLogonInfo = crTable.LogOnInfo
                                    TblLogonInfo.ConnectionInfo = c
                                    crTable.ApplyLogOnInfo(TblLogonInfo)
                                    crTable.Location = c.DatabaseName & ".dbo." & crTable.Location.Substring(crTable.Location.LastIndexOf(".") + 1)
                                Next
                            End If
                        Next
                    Next
    </pre>
    I had been using the same code from the year 2005(last 5 years). But didn't see this error before.
    Also i am getting this error only for 2 or 3 reports.
    I guess the issue is with the crystal report design.
    Any way please help me.
    Thank you
    Anoop

  • Report Veiwer asking for Windows Logon (not database logon)

    Hi there,
    I'm developing a C# web application in Visual studio 2010; and I'd like to include some crystal reports.
    I've done the reports, and they work well, but here's my problem: -
    I keep on getting prompted to log in to my computer (windows credentials) when I view the report in a browser.
    Some more about my application: -
    I'm using .net framework 4, and my application uses the MVC framework.
    I've got a "Content" folder where I put my non-MVC pages (including the reports).
    I've set the web application to use "Forms" authentication and to allow anonymous access
    (The website has public and private pages, and the authentication is not linked to active directory in any way).
    Some other clues that I've found so far:
    1.) When I "run" the application inside Visual studio I DO NOT get prompted for my windows credentials when viewing a report.
    The report displays correctly without any issues.
    2.) When I view the report through my "localhost" URL, then I am prompted for my windows credentials.
    So I though about file permissions, and set the web site's "Application Pool" identity to myself, and gave myself full permissions on "C:\Program Files (x86)\Business Objects" and all the files / folders contained in that folder.
    It still prompted me for my windows credentials when I viewed the report.
    3.) If I don't put the CrystalReportViewer control on my page, then I don't get prompted for my windows credentials.
    Well, that's all I can think of. Please have a look, and let me know if you can help me?
    Thanks,
    David

    Hi Adam,
    Thank-you for pointing me in the right direction.
    To cut a long story short: -
    I had a look at the folder "...\aspnet_client\system_web\4_0_30319\crystalreportviewers13" and my NT permissions were perfect; but my IIS was set up to deny anonymous access to this folder.
    I fixed the IIS setting, and the windows login prompt disappeared.
    Again, thanks.
    David

  • Dynamic Parameter Prompting for Database Connection Password When schedulin

    I'm having problems with Dynamic Parameters when I try to schedule a report in InfoView.
    I create the report in Crystal Reports XI and publish it to the Crystal Server. I go into CMC and under Process:Database set the correct data source and enter the server, database, user and password.
    When the report is run I can choose a dynamic parameter and the reports runs fine - it's when I try to schedule the report and choose the parameter that I am asked to enter the user and password for the database.
    If the parameter is static it's fine and I don't get prompted. Because I want the end-users to schedule their own reports I need to have the user and password embedded in the report.
    From what I've read in the forums, there seems to be a lot of issues with dynamic parameters and database logons, and no real solutions. But this is just weird that it's only failing when I try to schedule the report!

    I am having the same issue. 
    Issue started on 9/25/2008
    Existing BO 11r2 installation including service pack 2
    Windows Server 2003 Service pack 2
    Existing scheduled reports do not exhibit this behaviour and run correctly.
    Add new or update existing report. Log into the CMC as administrator and set process for database and parameters.
    Exit CMC
    log into Infoview.  Click on report and run (as administrator OR as existing user with permissions) NO PROBLEM.
    Log into Infoview as Administrator or existing users with permissions) as attempt to schedule report.  All reports Any dynamic parameter and request for user name and password opens.  Once the correct info is entered the report can be scheduled.
    This is a new issue on our installation, we have been running without problems for over a year.
    Any help appreciated.

  • Dynamic Parameter Prompting for Database Connection Password

    Post Author: rsharp
    CA Forum: Publishing
    Hi
    I've been finding recently that reports using dynamic parameters and published into Crystal Server prompt for the database connection password when the dynamic parameter is accessed.  Thing is, this only started happening recently for new and already existing reports with dynamic parameters and I don't know why.  In Crystal Reports the dynamic parameter can be accessed without a database connection prompt being displayed but not after publishing.  (Maybe there's a problem with the Publishing Wizard?)  Static parameters work just fine just as they always have, but I'm a bit mystified by the fact that dynamic parameters used to work (without prompting) but now they don't.  Any advice or opinion would be much appreciated.

    Post Author: amr_foci
    CA Forum: Publishing
    from the CMC you have to set the default connection or wat connection should this report use,
    go to this report in CMC, click process tab, and check the connection

  • Being Asked for Database Logon Twice

    I am using VS2010 and have created a webpage to display a report.  I load up a report using a stored procedure into the Viewer.  When I click to export the report, it wants to open up another window and then asks for the logon information again.
    Below is the code that I am using.  It gets the right results.
                ReportDocument rpt = new ReportDocument();
                rpt.Load(MapPath("CheckReport.rpt"));
                TableLogOnInfo logonInfo = new TableLogOnInfo();
                foreach (CrystalDecisions.CrystalReports.Engine.Table crtable in rpt.Database.Tables)
                    logonInfo = crtable.LogOnInfo;
                    logonInfo.ConnectionInfo.DatabaseName = "BankRec";
                    logonInfo.ConnectionInfo.ServerName = "XXXXX";
                    logonInfo.ConnectionInfo.UserID = "XXXXX";
                    logonInfo.ConnectionInfo.Password = "XXXXX";
                    crtable.ApplyLogOnInfo(logonInfo);
                rpt.SetDatabaseLogon("BankRec", "XXXX", "XXXXX", "XXXX");
                rpt.SetParameterValue("@BankAcct", cboBankAcct.Text);
                rpt.SetParameterValue("@MonthEnd", txtMonthEnd.Text);
                int exportFormatFlags = (int)(ViewerExportFormats.PdfFormat | ViewerExportFormats.ExcelFormat | ViewerExportFormats.ExcelRecordFormat |
                    ViewerExportFormats.XLSXFormat | ViewerExportFormats.CsvFormat);
                CrystalReportViewer.AllowedExportFormats = exportFormatFlags;
                CrystalReportViewer.Visible = true;
                CrystalReportViewer.HasCrystalLogo = false;
                CrystalReportViewer.ReportSource = rpt;

    I may have solved my problem.
    I did not realize that it would call the page load event.
    I added a call to the method and it seems to be working now.
    If there are any ideas or I'm doing this wrong, please let me know.

  • Financial Reporting: One prompt for all reports in a book

    I want to prompt once for all reports in the book for year and month. Right now it prompts for each report. I see that you can select to "respond at book level" but I don't know if that will solve the problem and I can't see how to make that drop down appear.
    Books points of view are set to User POV for year and month now. When I try to edit the memebr selection I see member names, sub var and User POV but no prompt choice.
    Thanks for any help you can provide.

    user644540 wrote:
    I want to prompt once for all reports in the book for year and month. Right now it prompts for each report. I see that you can select to "respond at book level" but I don't know if that will solve the problem and I can't see how to make that drop down appear.
    Books points of view are set to User POV for year and month now. When I try to edit the memebr selection I see member names, sub var and User POV but no prompt choice.
    Thanks for any help you can provide.I suggest you may repost the message in Planning and Budgeting forum for FR related issues.
    Cheers!

  • Pmset Applescript sometimes prompts for PW...

    Curiosity... I developed a script yesterday that I was able to access pmset and provide it with my password so that I could change the sleep times without prompting for my password... it seemed to be working fine...
    I just rebooted and now (despite the script remaining the same and providing my pw) - it now prompts me for my pw... UNTIL I provide it once and then it no longer asks for it...
    Here is the code...
    set Day_SleepTime to 60 --Idle time for Day Sleep
    do shell script ("/usr/bin/pmset -c sleep " & Day_SleepTime & "") password "my_password" with administrator privileges
    Any thoughts?

    Curiosity... I developed a script yesterday that I was able to access pmset and provide it with my password so that I could change the sleep times without prompting for my password... it seemed to be working fine...
    I just rebooted and now (despite the script remaining the same and providing my pw) - it now prompts me for my pw... UNTIL I provide it once and then it no longer asks for it...
    Here is the code...
    set Day_SleepTime to 60 --Idle time for Day Sleep
    do shell script ("/usr/bin/pmset -c sleep " & Day_SleepTime & "") password "my_password" with administrator privileges
    Any thoughts?

  • Report in production prompts for database connection info

    Hi,
    I'm using SAP Crystal Reports version for VS 2010 SP1. I'm trying to implement the most basic need--to create reports in a development environment and move them to production by just copying the .rpt files. I want to rely on the database connection string from web.config, but don't see how that is done. I've tried using ADO.NET DataSets from Project Data and can get the report to run while developing, but when I move to another server I'm always prompted with the "The report you requested requires further information" dialog.
    I tried this solution, which keeps the db server name in a web.config variable:
               ReportDocument boReportDocument = new ReportDocument();
                boReportDocument.Load(Server.MapPath(rmCR.SelectedItem.Value.ToString()));
                ConnectionInfo boConnectionInfo = new ConnectionInfo();
                boConnectionInfo.ServerName = ConfigurationManager.AppSettings["dbServerName"];
                boConnectionInfo.DatabaseName = "dbCMRP_Employees";
                boConnectionInfo.IntegratedSecurity = true;
                ModifyConnectionInfo(boReportDocument.Database, boConnectionInfo);
                // Modify the ConnectionInfo for all tables in all subreports
                foreach (ReportDocument boSubreport in boReportDocument.Subreports)
                    ModifyConnectionInfo(boSubreport.Database, boConnectionInfo);
                Session.Add("Report", boReportDocument);
                Response.Redirect("CrystalReportsViewer.aspx");
    and this works fine in development, but when moved to a different server I get the "The report you requested requires further information" dialog. I've made sure that the db has the correct security settings, but can't find anything missing.
    I'm sure I'm missing something basic, but can't seem to find any solution after searching for days. Any solution that allows me to create the report in VS 2010 and copy to a production server will be appreciated.
    Thanks,
    Dan

    Thanks for your replies.
    I think I've done what's outlined in the Troubleshooting Guide link that Ludek gave me.  I did install Process Monitor and found the "Access Denied" entry, but I'm not sure which folder needs permission given to IIS APPPOOL\ASP.NET v4.0.
    Here's the entry from Process Monitor:
    Description:        IIS Worker Process
    Company:           Microsoft Corporation
    Name:  w3wp.exe
    Version:               7.5.7601.17514
    Path:     C:\Windows\SysWOW64\inetsrv\w3wp.exe
    Command Line:                C:\Windows\SysWOW64\inetsrv\w3wp.exe -ap "ASP.NET v4.0" -v "v4.0" -l "webengine4.dll" -a
    .\pipe\iisipm461f344a-3d68-4e7c-b42e-ca18eac4553c -h "C:\inetpub\temp\apppools\ASP.NET v4.0\ASP.NET v4.0.config" -w "" -m 0 -t 20
    PID:        7512
    Parent PID:         3892
    Session ID:          0
    User:     IIS APPPOOL\ASP.NET v4.0
    Auth ID:               00000000:00465886
    Architecture:     32-bit
    Virtualized:         False
    Integrity:             High
    Started:                8/29/2011 1:03:58 PM
    Ended:  (Running)
    Modules:
    w3wp.exe           0x120000             0x8000  C:\Windows\SysWOW64\inetsrv\w3wp.exe      Microsoft Corporation                7.5.7601.17514
    Microsoft.Web.Administration.dll            0x28ae0000        0x24000                C:\Windows\assembly\GAC_MSIL\Microsoft.Web.Administration\7.0.0.0__31bf3856ad364e35\Microsoft.Web.Administration.dll                Microsoft Corporation   6.1.7601.17514
    App_Web_822ce1a1f503e532a2e860f7ce344f6d0d0f2eba.ascx.3417f053.eb4fk61t.dll     0x28b10000        0x8000                C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\intranet\58a686e6\86baa618\App_Web_822ce1a1f503e532a2e860f7ce344f6d0d0f2eba.ascx.3417f053.eb4fk61t.dll                n/a         0.0.0.0
    App_Web_aed28e8a45aa161f6c9fc3f563283cb89b317bdc.ascx.3417f053.rodqolhn.dll     0x28c90000         0x8000                C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\intranet\58a686e6\86baa618\App_Web_aed28e8a45aa161f6c9fc3f563283cb89b317bdc.ascx.3417f053.rodqolhn.dll                n/a         0.0.0.0
    pvlocale-1-0.dll 0x2fc80000          0x76000                C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\pvlocale-1-0.dll      SAP BusinessObjects                14.0.0.760
    System.Data.Entity.ni.dll              0x2fd50000         0xcb8000                C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Data.Entity\978e8514751373383f79c3fdd667aa2b\System.Data.Entity.ni.dll                Microsoft Corporation   4.0.30319.1

  • Custom Report Syntax - Prompt for limiting collection

    I'm building a customer report that will display maintenance windows for multiple devices.  I'd like to be able to filter the number of devices reported by collection (as to not have EVERY device in the console listed all at once).
    I've got the report working for everything except the filtering part.  Do I need to add a new Dataset and then filter it somehow?  Here's my only dataset so far:
    FIELDS: Computername, CollectionName, Next_Maintenance_Window
    QUERY:
    select
    v_FullCollectionMembership.Name as Computername ,v_Collection.Name as CollectionName,
    v_ServiceWindow.Description as 'Next Maintenance Window'
    from v_ServiceWindow
    inner join v_FullCollectionMembership on (v_FullCollectionMembership.CollectionID = v_ServiceWindow.CollectionID)
    inner join v_Collection on (v_Collection.CollectionID = v_FullCollectionMembership.CollectionID)
    order By Computername
    What do I need to add to be able to select the collection 1st then run the query above?

    HI
    Or you could do it like this:
    Create a new dataset and paste in the following Query:
    SELECT
      v_Collection.Name
      ,v_Collection.CollectionID
    FROM
      v_Collection
    Where CollectionType=2
    Insert the following code in your own Query (dataset) right before order by Computername
    Where v_Collection.Name = (@CollID)
    Expand Parameters in Report Builder, you should see a paramter called @CollID
    Right-click CollID and fill in the following information on the general page:
    Name: CollID
    Prompt: Collection
    On the Available Values select Get values from a query
    Dataset: Dataset2 (the new dataset you just created)
    value field: Name
    Label field: Name
    Design your layout in report builder and run the report. You will get a drop-down box with all your device collections.
    This report is not "RBAC" enabled

Maybe you are looking for