Share via


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.

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\RS_<EncodedInstanceName>\v10\Admin

**Platform:**Windows Server 2003, Datacenter Edition; Windows Server 2003, Enterprise Edition; Windows Server 2003, Standard Edition; Windows Vista; Windows XP Professional with Service Pack 2 (SP2) or Service Pack 1 (SP1); or Windows 2000 (all versions)