Error connecting to Data Source in SSRS - reporting-services

I am trying to connect to Datasource but getting this error:
An error occurred during local report processing.
An error has occurred during report processing.
Cannot create a connection to data source 'PO'.
You have specified integrated security or credentials in the connection string for the data source, but the data source is configured to use a different credential type. To use the values in the connection string, you must configure the unattended report processing account for the report server.
Any idea how to resolve this?
Thanks
Aruna

Looks like it forgot your password,
If it is an embedded data source > Right click on the Data source then go to properties > credentials.
If it is a shared data source go to the shared data sources, right click on the shared data source and hit Open, once in there click on credentials and enter the credentials again.

I was having this same issue. For me, the problem was that I was using a DNS alias as the server name in the connection string. Once I changed that to the actual machine name my connection was solid.

I guess this issue occurred in Visual Studio when you connected to data source but were not able to create a report using that data source. What credential did you use when creating database. Windows authentication or username and password. Right click on data source in VS and select credential as same as your server/db in properties. Mine is windows auth for my server/db and selected the same for data source. so now I am able to create reports.

Related

SSRS Connection Manager for 2 separate domain failing when added to SQL Job

I am using SQL authentication for a SSIS connection manager for one domain to another. In Visual Studio the connection is working when tested but password does not save. Running the package in VS is working but when creating a SQL job with the package, it fails to run with error
"Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.
Please help. Thank you.
The wrong way to do this is to put your connection string with the user name and password in the Expressions property's Connection String expression. Then change the ProtectionLevel to Dont [sic] Save Sensitive.
While this works, it leaves your password as plain text in the dtsx file.
I believe one correct way to do this is to set the password for the connection string in the SQL Server Agent's New Job step window on the Data Sources tab.
Another way is to change the Protection level to Save with Password and then enter the password in the Job step's Configuration tab. Unfortunately, I don't use SSIS much anymore and haven't tested either of these methods.
https://learn.microsoft.com/en-us/sql/ssms/agent/job-step-properties-new-job-step-general-page?view=sql-server-2017
MS Forum

Error : Cannort create a connection to Data Source 'XYZ' in SSRS

I have deployed a SSRS report for the user.But while accessing the report from the report server user is getting the below error
But I and some of the users are able to access the same report,Please suggest me.Do i need to add him in any Security
Thanks in Advance
The user that is connecting to the report needs to have access to the database that the data source is. You can use stored credentials if the level of database access is not as important.
You can also instead add them to a user group that has certain read access to the database instead of giving them direct access etc.
This depends mainly on the security you need in the database.
Below you can see how to setup a report server connection:
Report Server Connection

Use ODC file stored in SharePoint to connect InfoPath to SQL server

I am trying to create an InfoPath 2010 form that does the following:
Uses an ODC file which is stored in a SharePoint 2010 data connection library (for an SQL database)
Connects to SQL Server 2008 (which resides on the same domain)
Queries a table to pull results for use in the form
It works just fine when the ODC file is stored on my C drive, but as soon as the ODC file is uploaded to the connection library and I try to modify it (or create a new ODC file) the following error message appears:
An unspecified error occurred while attempting to connect to the data source. Microsoft InfoPath supports only Microsoft SQL Server and Microsoft Access database. Check the connection to ensure it uses one of those two databases.
If I manually modify the save location of a new ODC file to the SharePoint connection library the following window appears:
But it is promptly followed by the same error message:
I'm certain SharePoint and InfoPath can accommodate this... I am just not certain why it is occurring.
Going to answer my own question. Just convert the connection to a file. In InfoPath 2010 this means Data Tab>Data Connections>Select Desired Connection>Click "Convert To Connection File"
You will then be prompted for a URL to save the file at. Easy as that...

How to store credentials for a data source in SQL Server 2008?

I have created the datasource in the SSRS by using option Credentials stored securely in the report server then I am accessing it through report builder to create report, included datasource then need to create a dataset using option Use a dataset embeded in my report
Selecting included datsource and when clicks on Query Designer... its asking me Data souce credentials username and password.
According to requirement we are allowing user to use the Datasource but do not want to share the credentials in that case how should I stored the credentials for a datasource in SQL Server 2008.
I have found link http://msdn.microsoft.com/en-us/library/ms159736.aspx but this is showing answer only for SQL Server 2012 & 2005 not for 2008.
I have raised request to the Microsoft and they said for dataset embeded in report credentials require and user have to manually type this is by design.
Try to create a data source in the report with 'Use a connection embedded in my report', providing only the Data Source property in the connectionstring.
Do not try to test the connection as it will ask for credentials, just deploy the report on the server and look if it will work.

Reporting Services unattended account login failure

I have a new 2008 Reporting Services server and report. The data source for the report is set to use Windows Integrated Security. When I try to run it I get
The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
Using the account specified in the Execution Account in RS Config Manager I can log into the server and SQL Mgmt Studio although I don't have any rights to the database I'm reporting on. Any idea why I would get this error? What's it trying to log into?
It sounds like the report server is trying to use the Unattended Execution Account to connect to the database specified in the report data source.
If the account specified does not have permissions to read data from that database then you can change your data source connection, e.g. choose "Credentials Not Required" and then add a username and password for the data source to the connection string. This is not ideal however, because the username and password will be visible to anyone with permission to edit the data source.
Ideally you need to either have permissions to the source database granted to the Unattended Execution Account or change your data source to use a different connection method, e.g. use Stored Credentials and specify an account with permissions to the source database (if you don't actually need the features enabled by setting an Unattended Execution Account, then you can remove it entirely).
More information: http://msdn.microsoft.com/en-us/library/ms156302(v=sql.100).aspx