How to stop asking for the credentials while deploying reports in ssrs 2008

前端 未结 8 1237
温柔的废话
温柔的废话 2021-01-21 19:22

While deploying reports I am getting login prompt asking for the User Name and password. I have tried providing all possible id and passwords but no use. I can access both the R

8条回答
  •  广开言路
    2021-01-21 19:31

    When moving (deploying or copying) an RDL file from one location (development) to another (production) the report may loose track of it's shared data source, at which point the data set will replace the original node with a new node that instructs SSRS to demand credentials.

    In the report that is persistently demanding credentials if you right-click in solution explorer and select 'view code' the .rdl will open in an xml reader window. If your mark up contains a reference that looks like:

    
        
          
            SQL
            Data Source=your-server;Initial Catalog=your-db-name 
            Enter a user name and password to access the data source:
          
          DataBase
          e2f9f97c-GUID-GOES-HERE-395c383c1da2
        
      
    

    If this is what you find in the xml/rdl this is likely your problem.

    1. Make sure you have a Shared Data Source that works as expected, you may have to build a new report based off of this that does not prompt for credentials.

    2. In a report that does NOT ask for credentials, open the RDL using 'view code' option.

    3. Select the relevant xml node (under ) and copy the node, it should look something like:
    
          YourDataSourceName
          None
          19f0a78a-GUID-GOES-HERE-0e277b3b153f
    
    
    1. In your target report replace the node with the one you copied.

    (worth noting that when you change the 'rd:SecurityType' from 'Database' to 'None' you are NOT removing security, you are merely passing responsiblity for authentication from the report's dataset on to the shared datasource. (Security is born by the connection rather than the query)

提交回复
热议问题