How to: Store Credentials for a Data Source (Report Manager)
You can specify a single set of stored credentials that a report server uses to access external data for a report. Stored credentials are used if the report runs unattended. The report server retrieves and uses the credentials when report processing is scheduled or triggered by an event rather than a user request.
The account must have Allow log on locally permission on the report server computer. For more information and instructions on how to grant this permission, see Specifying Credential and Connection Information for Report Data Sources.
To specify stored credentials for a report-specific data source
In Report Manager, navigate to the Contents page. Navigate to the report for which you want to configure a report-specific data source, and click the report item.
Click the Properties tab. The General properties page opens.
Click the Data Sources tab.
Select A custom data source.
In the Connection Type list, specify the data processing extension that is used to process data from the data source.
For Connection String, specify the connection string that the report server uses to connect to the data source. The following example illustrates a connection string used to connect to the SQL Server AdventureWorks database:
data source=<servername>;initial catalog=AdventureWorks
For Connect Using, select from Credentials stored securely in the report server.
Type a user name and password.
If the account is a Windows domain user account, specify it in this format: <domain>\<account>, and then select Use as Windows credentials when connecting to the data source.
If the user name and password are database credentials, do not select Use as Windows credentials when connecting to the data source. If the database server supports impersonation or delegation, you can select Impersonate the authenticated user after a connection has been made to the data source.
Click Apply.
To specify stored credentials for a shared data source
In Report Manager, navigate to the Contents page. Navigate to the shared data source item. The following icon indicates a shared data source item:
Click the item to open it. The General properties page opens.
In the Connection Type list, specify the data processing extension that is used to process data from the data source.
For Connection String, specify the connection string that the report server uses to connect to the data source. Microsoft recommends that you do not specify credentials in the connection string.
The following example illustrates a connection string used to connect to the local SQL Server AdventureWorks database:
data source=<localservername>; initial catalog=AdventureWorks
Type a user name and password.
If the account is a Windows domain user account, specify it in this format: <domain>\<account>, and then select Use as Windows credentials when connecting to the data source.
If the user name and password are database credentials, do not select Use as Windows credentials when connecting to the data source. If the database server supports impersonation or delegation, you can select Impersonate the authenticated user after a connection has been made to the data source.
Click Apply.
See Also