Partager via


DatabaseLogonType Property (WMI)

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

MSReportServer_ConfigurationSettingForSharePoint Class

Notes

Values are 0 for Windows login, 1 for a SQL Server login, and 2 to log in as a service. Specifying 0 (Windows) requires that the value in the DatabaseLogonAccount Property (WMI) property is set and corresponds to a valid Windows user account.

Specifying 1 (SQL Serer) requires that the value of the DatabaseLogonAccount corresponds to a valid SQL Server login.

Specifying 2 (Windows service) causes the report server to use 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\v9\Admin

Platform: Windows Server 2003, Datacenter Edition ; Windows Server 2003, Enterprise Edition ; Windows Server 2003, Standard Edition ; Windows Vista ; Windows XP Professionnel avec Service Pack 2 (SP2) ou Service Pack 1 (SP1) ; ou Windows 2000 (toutes versions)

Voir aussi

Référence

MSReportServer_ConfigurationSetting Members
MSReportServer_ConfigurationSettingForSharePoint Members

Aide et Informations

Assistance sur SQL Server 2005