次の方法で共有


UsersList (Role Interface)

ms133451.note(ja-jp,SQL.90).gifメモ :
  この機能は、Microsoft SQL Server の次のバージョンで削除されます。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションはできるだけ早く修正してください。

The UsersList property of the Role interface contains a semicolon-delimited list of users and/or groups assigned to the role.

Applies To:clsCubeRole, clsDatabaseRole, clsMiningModelRole

Data Type

String

Access

Access depends on the value of the ClassType property of the object.

Class type Access

ClsDatabaseRole

R/W

ClsCubeRole

R

ClsMiningModelRole

R

解説

The name for a user list must be qualified with the appropriate domain name. The general format is <domain>\<user or group>.

使用例

Use the following code to set the list of users of a role object:

RoleObject.UsersList = "Domain1\Ejones;Domain1\Analysts;Domain2\RGreen"

参照

関連項目

Role Interface

ヘルプおよび情報

SQL Server 2005 の参考資料の入手