Share via


Managed Data Hosting::DeconfigureSQLServerForDelegation

This procedure removes configuration of a specified Web server for delegated administration.

Arguments

The DeconfigureSQLServerForDelegation method requires the following input parameters.

Argument Required Description

<serverName>

Yes

A string representing the name of the server. This can be a network basic input/output system (NetBIOS) name, a fully qualified domain name (FQDN), or an IP address.

<preferredDomainController>

Yes

The name of the preferred domain controller.

<sendCredentials>

Yes

True indicates that Basic Authentication credentials should be included with the request documented submitted to the MPS engine.

Remarks

Method

public string DeconfigureSQLServerForDelegation( 
string serverName,  
string preferredDomainController, 
bool sendCredentials 

Sample Code

Typical C# Usage

//Get user name and password.  
string userName = this.Request.ServerVariables.Get("AUTH_USER"); 
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD"); 
//Set credentials. 
service.PreAuthenticate = true; 
service.Credentials = new NetworkCredential(userName,pass); 
lblMsg.InnerHtml = mpsResponseHeaderLabel; 
//Display response. 
this.mpsResponse.DocumentSource = ""; 
response = service.DeconfigureSQLServerForDelegation (serverName, preferredDomainController, true); 
// set the response XML to match the return from MPF 
responseXml.LoadXml(response); 
this.mpsResponse.Document = responseXml; 
lblDone.InnerText = successMsg; 

Applies To

Managed Data Hosting Web Service for:

  • Hosted Messaging and Collaboration version 4.0

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Managed Data Hosting::ConfigureSQLServerForDelegation