DatabaseLogonType Property (WMI MSReportServer_ConfigurationSetting)

Specifies whether the report server uses a Microsoft Windows service account, a Windows user account, or a SQL Server login to access the report server database. Read-only.

Syntax

Public Dim DatabaseLogonType As Integer  
public int DatabaseLogonType;  

Property Values

An integer object that represents the login type.

Example Code

MSReportServer_ConfigurationSetting Class

Remarks

Values are:

  • 0 for Windows login

  • 1 for SQL Server login

  • 2 to log in as a service

If you specify 0 (Windows), you must set the value in the DatabaseLogonAccount property to a corresponding a valid Windows user account.

If you specify 1 (SQL Server), make sure the value of the DatabaseLogonAccount corresponds to a valid SQL Server login.

If you specify 2 (Windows service), the report server uses an ASP.NET account and the Windows service account to access the report server database. The DatabaseLogonAccount property is ignored.

Requirements

Namespace: root\Microsoft\SqlServer\ReportServer\<InstanceName>\v12\Admin

See Also

MSReportServer_ConfigurationSetting Members