Поделиться через


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

Замечания

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 Professional с пакетом обновления 2 (SP2) или 1 (SP1) или Windows 2000 (все версии)

См. также

Справочник

MSReportServer_ConfigurationSetting Members
MSReportServer_ConfigurationSettingForSharePoint Members

Справка и поддержка

Получение помощи по SQL Server 2005