Data-source-controls-enabled: Stsadm property (Office SharePoint Server)

SharePoint 2007

Updated: September 13, 2007

Applies To: Office SharePoint Server 2007

Updated: 2007-09-13


Turns the data source controls on the server on or off. If this setting is set to disabled, no query results are processed. This property is equivalent to the Enable Data Source Controls user interface setting that is located on the Data Retrieval Service page of the SharePoint Central Administration Web site.


stsadm -o setproperty

   -propertyname data-source-controls-enabled

   -propertyvalue {Yes | No}

   [-url] <http://server_name>

The syntax for the getproperty operation is:

stsadm -o getproperty

   propertyname data-source-controls-enabled

   [-url] <http://server_name>


You can substitute -pn for -propertyname and -pv for -propertyvalue.


The following table shows possible values.

Name Value


Gets or sets the name of the property.


Yes: Enables data source controls on the server. This is the default setting and is applied to the following data source controls:

  • SPXmlDataSource

  • XmlUrlDataSource

  • SoapDataSource

  • AggregateDataSource

No: Disables data source controls on the server.


Typically, a path to the URL of the Web application, in the form http://server_name.


To set a data source control so that query requests are accepted, use the following syntax:

stsadm -o setproperty -pn data-source-controls-enabled -pv yes

To view the setting for the data-source-controls-enabled property, use the following syntax:

stsadm -o getproperty -pn data-source-controls-enabled