3.1.4.3.2.1.1.32 SetAuthContext

The SetAuthContext command<378> changes the access scope of a specific user from a system administrator who has access to all databases to a system administrator who has access to only the database that is specified.

   <xsd:complexType name="SetAuthContext">
     <xsd:all>
      <xsd:element ref="eng200_200:Token" minOccurs="1" maxOccurs="1" />
      <xsd:element name="DatabaseID" type="xsd:string" minOccurs="1" />
     </xsd:all>
   </xsd:complexType>

Element

Default value

Description

Token

[Required]

This represents the token for a specific user who is connecting to the server.

DatabaseID

[Required]

The Database object to perform SetAuthContext. The ObjectReference type is defined in ObjectReference Type (section 3.1.4.3.2.1.1.1).

The return result type for the SetAuthContext command is xmla-e:emptyresult.