--- title: "DataControl Object Example (VBScript) | Microsoft Docs" ms.prod: sql ms.prod_service: connectivity ms.technology: connectivity ms.custom: "" ms.date: "01/19/2017" ms.reviewer: "" ms.topic: conceptual dev_langs: - "VB" helpviewer_keywords: - "DataControl object [ADO], VBScript example" ms.assetid: 4f306a51-d5a4-4785-b426-487639cda164 author: MightyPen ms.author: genemi --- # DataControl Object Example (VBScript) > [!IMPORTANT] > Beginning with Windows 8 and Windows Server 2012, RDS server components are no longer included in the Windows operating system (see Windows 8 and [Windows Server 2012 Compatibility Cookbook](https://www.microsoft.com/download/details.aspx?id=27416) for more detail). RDS client components will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Applications that use RDS should migrate to [WCF Data Service](https://go.microsoft.com/fwlink/?LinkId=199565). The following code shows how to set the [RDS.DataControl](../../../ado/reference/rds-api/datacontrol-object-rds.md) parameters at design time and bind them to a data-aware control. Cut and paste this code between the \ and \ tags in a normal HTML document and name it **DataControlDesignVBS.asp**. ASP script will identify your server. ``` <%@ Language=VBScript %> RDS DataControl <%' local style sheet used for display%>

RDS API Code Examples


Remote Data Service

"> ``` The following example shows how to set the necessary parameters of **RDS.DataControl** at run time. To test this example, cut and paste this code between the \ and \ tags in a normal HTML document and name it **DataControlRuntimeVBS.asp**. ASP script will identify your server. ``` <%@ Language=VBScript %> Data Control Object Example (VBScript) <%' local style sheet used for display%>

Data Control Object Example (VBScript)

RDS API Code Examples


Remote Data Service Run Time

<% ' RDS.DataControl with no parameters set at design time %>

">
;Initial Catalog='Pubs';Integrated Security='SSPI';">


Show grid with these values or change them to see data from another ODBC data source on your server

``` ## See Also [DataControl Object (RDS)](../../../ado/reference/rds-api/datacontrol-object-rds.md)