Database login prompt

Hello experts,
I published a report in SAP 7 but I want the report to prompt for the database credentials.
How do I do that ? Is that a setting on the report itself?

Hi,
Are you working with SAP B1? This is SAP B1 reporting and printing forum.
Thanks & Regards,
Nagarajan

Similar Messages

  • Avoid Database Login prompt when using CrystalReportViewer

    Is there a way to keep the Database Login prompt from coming up when using Crystal Reports runtime 2008 SP2? I'm using that plus Visual Studio 2008 to develop a Windows Form application to view reports on a client machine that accesses data on a seperate SQL Server 2005 machine. My customer would like to avoid having users manually enter anything everytime a report is opened with the Crystal Reports viewer.
    I've used the following code with ODBC and OLE DB report connections. When I use ODBC, the prompt comes up with Integrated Security checked which must be cleared. When I use OLE DB, the prompt comes up with Database Name blank and greyed out so I cannot manually enter it.
    Am I missing something here?
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Windows.Forms
    Public Class Form1
        Private Sub setDatabaseLogon(ByVal myConnectionInfo As ConnectionInfo)
            Dim logOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
            For Each logOnInfo As TableLogOnInfo In logOnInfos
                logOnInfo.ConnectionInfo = myConnectionInfo
            Nex
        End Sub
        Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            setDatabaseLogon(myConnectionInfo)
            myConnectionInfo.DatabaseName = "ClearView"
            myConnectionInfo.UserID = "reports"
            myConnectionInfo.Password = "dstreports"
            myConnectionInfo.IntegratedSecurity = False
        End Sub
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            ConfigureCrystalReports()
        End Sub
    End Class

    Thanks Jonathan for the tip. I tried it before and after the setDatabaseLogin call yesterday, but got the same results. I'm still going to follow your suggestion because that makes more sense.
    Turns out it was the configuration of my ODBC/System DSN that was causing the problem. I reconfigured the System DSN by clearing the check box to provide username/password and now I don't get the Database Login anymore.
    I found a different blog post that answered the OLE DB issue I was seeing where the DatabaseName was coming up blank:
    Login Error Database at Runtime
    Haven't tried it yet and probably won't because I got the Viewer to work with ODBC the way I like it.
    Thanks for the help!

  • VS Net 3.5 Crystal Reports Deployment causing database login prompt

    I have deployed a Visual Studio executible module written in VB Net 3.5 SP 1 with Crystal Reports. When the user tries to view a report(s)
    they are prompted to login in to the data base that has been data sourced into the report module. The correct database was verified before the build was made. The developer is able to run the report in a run mode on the local machine where the VB project was created.
    In the properties section in the project the following check boxes pertaining to reports were checked on:
             Crystal Reports Basic for Visual Studio 2008(x86, x64)
             Microsoft Visual Studio 2008 Report Viewer
    Notes: If the executible module is deployed to a machine that has Visual Studio 2008 installed, the Reports run fine without a database login prompt.
             If the executible module is deployed to a machine that does not have Visual Studio 2008 installed, the user is prompted for a login.
             The data base is a SQL server 2008 database.
    I'm being prompted for a server/database login when deploying the application and running it on a machine that does not have Visual Studio 2008 installed on it. One thing I forgot to mention is that the prompt dialog has only the database server name pre-filled but there is
    no database name in the dialog. Both of these fields are grayed out. The Crystal Report was updated to reference the new server and database, and I also verified the database successfully.

    Hello,
    Not sure what DB driver you used to create the reports but if it's the native driver then you need to install the Native client from MS SQL Server 2008 CD/DVD onto the app server also.
    MS SQL 2008 will not use MDAC, which is always installed. It requires the client to be installed.
    There is also an issue when using OLE DB driver and Time(7) field types in MS's driver and Crystal Reports. Cr see's them as string fields, the driver returns the wrong field type to CR. ODBC does work with these field types.
    And is your application running in 32 or 64 bit mode?
    Thank you
    Don

  • Occasional Database Login prompts

    Post Author: Jon Webb
    CA Forum: .NET
    I'm have a problem with occasional logon info prompts when I refresh a report. I'm using Crystal Report .NET XIR2 with SQL Server Express. Normally, my reports work fine. The server and database are set dynamically at runtime. The code I use for this is:     Protected Sub SetDatabaseConnection(ByVal rd As ReportDocument)        Dim tlois As TableLogOnInfos = Me.CrystalReportViewer.LogOnInfo        Dim ci As New ConnectionInfo        ci.DatabaseName = DefaultDatabase        ci.IntegratedSecurity = False        ci.Password = Password        ci.UserID = User        ci.ServerName = DefaultInstance        For Each tloi As TableLogOnInfo In tlois            tloi.ConnectionInfo = ci        Next        If rd Is Nothing Then rd = Me.CrystalReportViewer.ReportSource        For Each table As Table In rd.Database.Tables            table.LogOnInfo.ConnectionInfo = ci            table.ApplyLogOnInfo(table.LogOnInfo)        Next        For Each subreport As ReportDocument In rd.Subreports            For Each table As Table In subreport.Database.Tables                table.LogOnInfo.ConnectionInfo = ci                table.ApplyLogOnInfo(table.LogOnInfo)            Next        Next    End SubSometimes, however, I get Database Login prompts when I refresh the reports. This happens with some reports and not others, even though I call the same method above for all reports. The Database Login prompt has the right server name, user, and password, but the database name is blank.The behavior varies over time.  Yesterday, for example, one of my reports was showing this behavior, and another wasn't. Today, without any code changes, I'm getting it in two reports. But a third report still works. All three reports use the same command for accessing the database data, and have the same subreport structure.Also, the behavior is client-dependent. I can run the report on one PC (using the same SQL Server) and the report works fine. On another client, I consistently get the login prompt with two reports but not another. I believe the problem only occurs where the server is remote. We've never seen it with a local SQL Server. All this leads me to think that something is happening behind the scenes with Crystal Reports. Perhaps the logon info is being cached somewhere and not reinitialized. I've tried rebooting my client machine and restarting the SQL Server to no avail. Does anyone have an idea what is going on here? This is a serious problem for some of our customers. Jon WebbPEP Systems, Inc.

    Post Author: Jon Webb
    CA Forum: .NET
    I got some more information on the login prompt. I somehow figured out how to turn on logging in Crystal Reports and got this error when the login prompt happened: <Log>  <Message></Message>  <File>.\crreportsource.cpp</File>  <Line>303</Line>  <Time>2008/01/29 13:43:26.184</Time>  <ThreadID>01216</ThreadID>  <DetailMessage><!&#91;CDATA&#91;Analysis Server: 0x8004100FDatabase logon failed.\servers\ras\dtsagent\reporthandler.cpp (9557)Analysis Server: 0x8004100F&#93;&#93;></DetailMessage></Log><Log>  <Message></Message>  <File>.\crreportsource.cpp</File>  <Line>426</Line>  <Time>2008/01/29 13:43:26.294</Time>  <ThreadID>01216</ThreadID>  <DetailMessage><!&#91;CDATA&#91;.\crreportsource.cpp (420)RptControllers.dll: 0x8004100FDatabase logon failed.Analysis Server: 0x8004100FDatabase logon failed.\servers\ras\dtsagent\reporthandler.cpp (9557)Analysis Server: 0x8004100F&#93;&#93;></DetailMessage></Log>Does that help? Anyone?Jon WebbPEP Systems, Inc.

  • Database Login Prompt in Deployment PC

    Hi,
    I had developed a WinForm App using VS C# 2008, CR Basic for VS 2008, and SQL Server 2005 Express.
    For the crystal report, I can view it through report viewer without problem in development server, but in deployment/client PC without development tools, the database logon kept prompting even I keyed in the correct logon information and I cannot view the report.
    For your information, I design the crystal report to use OLEDB (ADO) for SQL Server with integrated security. I had tried server authentication too which providing UserID and Passwd but with no luck. I had tried to set the logon info programmatically too but the problem still exists.
    My deployment/client PC is WinXP SP3 and I deployed the CR Basic components by using redistributable bundled with the VS 2008 (located in C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5).
    I wonder is there a problem with CR driver for OLEDB or any else.
    Does anyone encounter the similar problem?
    Thanks for any reply and suggestion.

    Hi;
    Have a look at the following artilce on database troubleshooting: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de&overridelayout=true
    One of the suggestions is to create a UDL file, that would be helpful to see if the OLE DB is setup correctly on that system.
    Best Regards,
    Jonathan
    Follow us on Twitter u2013 http://twitter.com/SAPCRNetSup

  • SQL Database Login failure

    I'm getting a SQL database login failure on one customer after many successful installations at other customers. My app uses OLE DB (ADO) database type with the SQLOLEDB provider to access the database. I create the table logon info structure internally in my app and use that to connect the Crystal Report for.Net framework to the database. I've verified that the server name is correct and the database allows access from SQL Management Studio and from the rest of my app, which uses VB SQL connection objects. But on this one customer I get a "Database Login" prompt when the Crystal Report is run. The prompt shows the correct user name and password. When I hit "Login" the login fails (as it failed internally leading to the dialog being shown in the first place).
    Anyone have any idea on what's going on here? Any idea on where else to look? I suspect some software the customer is running is interfering somehow with Crystal Reports. But I don't have any idea of what to check for. Any help will be appreciated.
    Jon Webb
    PEP Systems, Inc.

    Some of the more common causes for this are:
    1. Firewalls - If you have a firewall between the database server and your computer
    2. Different SubNets.  If your database server is on a different sub-net than the computer you are trying to connnect from - then it might not be able to see it / resolve the name.  To verify this, trying pinging the database computer by machine name  (e.g. ping myDBServer).   This can also be caused by the computer not being able to see the DNS server, and so not able to resolve the DB server machine name.
    3. Wrong DB driver version.  Sometimes if you are trying to connect to a newer version of SQL server using older drivers - it won't work.  Verify what version of the SQL server drivers are being used.
    4. MDAC is not installed.  To connect via ODBC you sometimes need MDAC installed.  You can check the version using the info in this kbase http://support.microsoft.com/kb/301202
    Shawn

  • Web Analysis Report prompted for relational database login

    We have given access to the WA reports and everything works fine in general. One of the user trying to open same report(s) document(s) via Workspace and its getting prompted with relational database login? I have verified for the access and everything seems to be fine.
    I do not know the reason for this. Can anyone help me? Thanks.

    From the forums, i got the below MAXL commands to sync the user access :
    alter system resync sss; --> this command will sync all the users, groups.
    alter group <group name> sync security with all application; --> This can be used to individually sync the required group
    alter user <user name> sync security with all application; --> This can be used to individually sync the required user
    Will check it up with user on any change in her access.
    Thanks,
    Praveen.

  • Crystal report addon prompt database login screen

    I'm trying to run a crystal report using crystal report add-on 1.0 from SAP, however, I always see the screen that prompts for database login when trying to generate the report.

    Dear Khuen Phan,
    Do you use correct correct connection from Crystal Report design such as OLE DB instead of using ODBC connection?
    Cheers,
    danny

  • Missing DataBase Login information for deployed VS2008 w/Crystal Report

    I'm creating a Windows Form application using VS2008 Pro and the basic Crystal Reports (included).</br></br>
    I've successfully added a crystalreportviewer control and a crystal report (.rpt) to my form. I've written the following code in the code behind to programmatically load/bind the report to the viewer. Everything works fine on my development machine (or any machine that has Visual Studio installed). Where I'm encountering problems is when I deploy the application to a machine that does not have VS installed (I have downloaded and installed the "Crystal Reports Basic for Visual Studio 2008 Redistributable Package" for the appropriate processor type on this non development machine) that I'm getting an error . It prompts for "DataBase Login". The ServerName, LoginID and Password are all there, but the "DataBase" field is empty and disable for user input.</br></br>
    Why is the DataBase information missing? How can I solve this problem?</br></br>
    (On a side note, I vaguely remember a property for enabling/disabling the prompting of the database login. I can't remember where this was again to double check if that is the culprit. But I'm pretty sure that I did mark it as to not prompt, since it's supplied in the code behind. Plus it doesn't prompt on the development machines. Only on the non-development machines).</br></br>
    Any help is greatly appreciated! Thanks.</br></br>
    The code executed in the PageLoad event of the form.</br></br>
    this.crystalReportViewer1.RefreshReport();</br>
                ReportDocument reportDocument = new ReportDocument();</br></br>
                #region Load Parameters</br></br>
                ParameterFields paramFields = new ParameterFields();</br></br>
                for (int i = 0; i < _parameterName.Length; i++)</br>
                {</br>
                    ParameterField paramField = new ParameterField();</br>
                    paramField.ParameterFieldName = _parameterName<i>;</br>
                    ParameterDiscreteValue discreteVal = new ParameterDiscreteValue();</br>
                    discreteVal.Value = _parameterValues<i>;</br>
                    paramField.CurrentValues.Add(discreteVal);</br>
                    paramFields.Add(paramField);</br>
                }</br></br>
                crystalReportViewer1.ParameterFieldInfo = paramFields;</br></br>
                #endregion</br></br>
                #region Load Report</br></br>
                string reportUrl = "";</br></br>
                string exePath = Application.ExecutablePath.ToString();</br>
                exePath = exePath.Remove(exePath.Length - 18, 18);</br>
                exePath += _reportName + ".rpt";</br>
                reportUrl = exePath;</br>
                reportDocument.Load(reportUrl);</br>
               #endregion</br></br>
               reportDocument.SetDatabaseLogon("myUserName", "myPassword", "myServer", "myDataBase");</br></br>
                crystalReportViewer1.ReportSource = reportDocument;
    </br></br>
    Edited by: mtech8 on Jan 9, 2010 3:03 PM. Corrected formatting issues to make post readable.

    HI. Ludek,
    Thanks for the tips. I tried both, but the problem presists.
    On a side note, I did get my hands on yet another "non-development machine". This one ran with Window's Vista appeared to work (even with my original code).
    The "non-development machines" that I've tested on are Windows 7 and Window XP machines. On these machines, when I commented out the reportDocument.SetDatabaseLogon line, when I try to load the report, it still prompts for the Database Logon information, however, it also has the "Database name" empty and disabled.
    Since it worked on a non-development machine with Win Vista. I don't think there is a problem with references or the Crystal runtime packages.
    As far as permission for the report to contact the database, I'm guessing there isn't a problem there either because the application does successfully connect to the database.
    I'm connecting to a SQL2005 database and using the SQL Native connection.
    On a side note: as for the enabling prompting, I just remembered that it was an option available when using Crystal Reports with a web project. Thus I couldn't find it here with a Window's Form project.

  • The report you requested requires further information. Database Login.

    I have developed a simple report (crystal XI) and deployed to Crystal server.  When viewing the report, the user is asked to login to database with ID/password.  The report works well in dev environment.  The report is not called programmatically via VB, C#, ASP, ... therefore I cannot set ID/password in source code. 
    I am looking for a dialog screen within dev environment that allows me to force the report to keep the ID/password with it and use it to connect to DB at runtime.

    >
    Navin Raja wrote:
    > Hey,
    >
    > The report prompts for Database login if the report is created with dynamic parameters in crystal reports designer and deployed to crystal server.
    >
    > Logon to Central managenent Console (CMC) using the Administration Launchpad.
    > Open the report just saved in Crystal Reports Server.
    > Click Process tab of the report.
    > Click Database tab under Process tab.
    > Enter the Oracle database Server's username in the textbox for "Username".
    > This username should Previleges to access or administrative previleges to make changes in CMC.
    > Enter the password for the "Password" textbox.
    > Click "Use same database logon as when report is run" under "When viewing report:".
    > Click the "Update" button.
    > Click "Properties".
    > Click "Preview".
    >
    >
    > Let me know if it still prompts for the password.
    >
    >
    > Thanks,
    > Naveen.
    Is there a way to set this for multiple reports at a time?

  • Database Login

    I am getting Database Login dialog box when attempting to access reports located on server device.
    I have server/client setup between two devices running SQL Server 2005 on server & SQL Server 2005 Express on client. I am using ODBC (RDO). Is there anyway to pass on credentials without having to enter this information when any client attempts to access reports on the server?

    Hi,
        Try this code,
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
            ReportDocument rd = new ReportDocument();
            rd.Load(Server.MapPath("CrystalReport.rpt"));
            rd.SetDatabaseLogon("UserID","Password", "Server Name", "Database Name");
            CrystalReportViewer1.ReportSource = rd;
    The above code is used for setting the logon credentials for Reports programmtically.You will avoid getting prompts for accessing Reports with the help of this code.
    You may also Refer our Library for Samples codes and Tutorials.
    [Click Here|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm]
    Thanks,
    Nikhil Dharme

  • Dynamic Parameter Requiring Database Login

    <p><span style="font-size: 7.5pt; font-family: Verdana">Hey All, </span><span style="font-size: 7.5pt; font-family: Verdana">Thanks in advance for any assistance.</span></p><p><span style="font-size: 7.5pt; font-family: Verdana">I created a report in Crystal Reports XI R2 in which I embedded 2 command objects, both of which connect to the same DB. Command_0 performs the SQL to bring back the information which is needed in the report. Command_1 pulls back two fields from a table which are used to fill a dynamic parameter used in command_0. I saved the report to the Crystal Repository which will host the report for our end users. </span></p><p><span style="font-size: 7.5pt; font-family: Verdana">I used the BusinessObjects Enterprise Central Management Console (CMC) to set up default DB connection information for the report so that the end users do not need to have the SQL server authentication information. To make sure everything worked as it had when I was designing the report I logged on to our Crystal Server as if I were and end user and tried to access the report. The report will run exactly as expected if I leave the default information in the dynamic parameter. However when I try to change my dynamic parameter the report prompts me for the SQL server authentication information. <span> </span>It appears as if the default DB connection information I set up using the CMC does not apply to command_1. <span> </span></span> </p><p><span style="font-size: 7.5pt; font-family: Verdana">I need to find a way to get this prompt to stop, I cannot release the SQL authentication information to<span>  </span>all of our end users that would be a security nightmare.</span></p><p><span style="font-size: 7.5pt; font-family: Verdana">Again Thanks for any assistance or advice you can offer.</span></p><p><span style="font-size: 7.5pt; font-family: Verdana">Gary </span></p><span style="font-size: 7.5pt; font-family: Verdana"> </span>

    When you create a dynamic parameter, Business Objects Enterprise Creates few objects for you that essentially creates you a List Of Values (LOV) object for that parameter. LOVs can be created and configured manually from the Business View Manager. You have to specify the database login information in the Data Connection object that your LOV uses.
    Hope that helps.

  • Database Logon prompting is in invalid state

    Hi
    I have written code in Visual Studio .NET 2010 and downloaded the CrystalDecisions Client components on my local. Our System is working fine with existing Classic ASP code and we are in a plan to upgrade from 2003 to 2008 Server R2. So, thought of to re-write the code from Class Asp to Asp.NET and I am successful in converting the code and was able to execute properly until last friday i.e., 30th May, 2014. But all of a sudden since June 2nd do not know what happened but all the reports are not working as expected and the Crystal viewer is opened up and a dialog opens up as enter the login credentials. Our Login information is giving a userid and password of the DSN created. So, after giving that, the report throws an error saying
    "Database Logon prompting is in Invalid state".
    All the reports are in Enterprise Session loaded on a different server.
    I do not see neither code change in the last 4 days nor there is a change in the Enterprise Console environment. So, I do not know the root cause of the issue. I did googled it but no one had this kind of issue earlier.
    PLEASE HELP! ITS VERY URGENT.!!!!
    THANKS
    -SRINIVASA NADELLA
    Message was edited by: Ludek Uher

    Couple of admin things out of the way 1st:
    1) If this is an urgent issue, please consider creating a phone incident here:
    Crystal Single Case Technical Support - SAP Business Objects US Online Store | SAP Online Store
    SCN is a community forum and you may get an answer, or not. It may be timely, or not...
    2) Generally, bold facing, use of colors, etc., is frowned upon - in any forum (I edited your OP). For more details, please see the SCN Rules of Engagement
    Now, to your issue:
    Some good info provided, but the most critical part is missing;
    Version of CR / BI / BO?
    What database?
    How are you connecting to the database.
    You saying that the reports are in Enterprise Session, makes me think that you may be using BI / BO, but that is just a guess... However if you do have BI / BO, yo should be able to log a support incident via the SAP Service Market Place (SMP) (?).
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Infoviewer - Database Logon prompt

    Hi,
    When trying to view a report via infoviewer, we get the database logon prompt for database user name / password.
    Is there a option this can be automated?
    Thanks

    Hi,
    Kindly implement the following steps:
    1. Login to CMC with an administrator account.
    2. Navigate to Folders >> Report
    3. Right click on your report and select Database Configuration.
    4. Enter the correct database credentials.
    5. By default "Prompt the user for database logon is selected" is selected. You need to select "Use same database logon as when report is run" option and update the page.
    6. Test the issue again now.
    Regards,
    Nakul

  • Login prompt appears for web app when sql db is not on same server as WebAp

    Hi,
    I am deploying a VS2005 web application on a server (which has crytalReportsviewer); lets call that server A. The database the crystal reports access are on a different server, server B. In this scenario, when I run the web application, and try to bring up the reports on the web page, I get login prompt. Even if I provide valid login credentials (I have set up a user for this purpose the behavior is erratic; for some reports the report is displayed and for others it errors out with 'unknown error' message.
    If I put the sql db on the same server, it works fine.
    I use the crystal reports application to update the database source. When I do this, I use Ole db connection and set the 'integrated security' to true. But setting the integrated security to true does not bypass the login screen on the web app.
    My question is, how do I set up the report database parameters (connection string etc) so that the user of the web application does not have to go through the login screen when the web application and the sql db does not reside on the same server.
    Thanks.

    That sound like a [Double-Hop|http://blogs.msdn.com/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx] issue.
    You'd install and configure Kerberos to hop over the credentials - see post: SQL Server 2005 integrated security.
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Please help me with my laptop!

    Hello.  I have a Toshiba Satellite L355d-s7815. It was bought in September. I go to school fulltime online so this computer has been used almost every single day since it's been purchased. And up until two weeks ago it worked just fine. Now, it turns

  • How to access Print Dialog boxe's "Pages" property

    Hi, I am using the following line to populate the Print dialog box. xfa.host.print(1, "0", (xfa.host.numPages-1).toString(), 0, 1, 0, 0, 0) Is there any way that I can access Pages option using JavaScript with Adobe LiveCycle Designer 8.0 where I can

  • Illustrator CC Crashes at Launch even after the updates, anyone know what is going on?

    I recently got Illustrator CC and made all of the updates, unfortunately, it repeatedly crashes upon startup. I have no issues with Photoshop CC or Flash CC, just Illustrator CC. Does anyone have any suggestions on problem solving?

  • Getting blank screen while taking F1 help in SAP.

    Hi all, When I take F1 help for any text in SAP, I'm getting a blank screen instead of the Documentation/ explanation. Also at times, I'm getting blank windows for some of the standard errors & for some standard program's documentation. Heard it is a

  • IPhone 4 has ceased sending or receiving texts since iOS6 update. Any ideas?

    There seem to be similar threads out there but nothing the same as this problem. Since my upgrade to iOS6 last week, my iPhone 4 has: a) deleted my text history b) refused to send texts (it hangs on about 90% delivery in the status bar) c) delivered