--- title: "Connect Property 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: - "Connect property [ADO], VBScript example" ms.assetid: 06297993-fe72-4446-aa76-3b8bc25444f6 author: MightyPen ms.author: genemi --- # Connect Property 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). This code shows how to set the [Connect](../../../ado/reference/rds-api/connect-property-rds.md) property at design time: ``` . . ``` The following example shows how to set the **Connect** property at run time in VBScript code. To test this example, cut and paste the code between the \ and \ tags in a normal HTML document and name it **ConnectVBS.asp**. ASP script will identify your server. ``` <%@ Language=VBScript %> ADO Connect Property <%' local style sheet used for display%>

ADO Connect Property (RDS)


Set Connect Property at Run Time

<% ' RDS.DataControl with no parameters set at design time %> <% ' Bind table to control for data display %>
SERVER: ">
DATA SOURCE: ">
CONNECT:
SQL:

To make data grid appear, click 'Run' to see the connect string in text box above.

``` ## See Also [Connect Property (RDS)](../../../ado/reference/rds-api/connect-property-rds.md)