--- title: "Refresh Method Example (VBScript) | Microsoft Docs" ms.prod: "sql-non-specified" ms.technology: - "drivers" ms.custom: "" ms.date: "01/19/2017" ms.reviewer: "" ms.suite: "" ms.tgt_pltfrm: "" ms.topic: "article" dev_langs: - "VB" helpviewer_keywords: - "Refresh method [ADO], VBScript example" ms.assetid: f2926578-bc60-464b-916e-ddfdb8014253 caps.latest.revision: 14 author: "MightyPen" ms.author: "genemi" manager: "jhubbard" ms.workload: "Inactive" --- # Refresh Method 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/en-us/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](http://go.microsoft.com/fwlink/?LinkId=199565). The following example shows how to set the necessary parameters of [RDS.DataControl](../../../ado/reference/rds-api/datacontrol-object-rds.md) at run time. The manner in which a [Recordset](../../../ado/reference/ado-api/recordset-object-ado.md) is retrieved using the [Refresh](../../../ado/reference/ado-api/refresh-method-ado.md) method is determined by the settings of the [ExecuteOptions](../../../ado/reference/rds-api/executeoptions-property-rds.md) and [FetchOptions](../../../ado/reference/rds-api/fetchoptions-property-rds.md) properties. To test this example, cut and paste the following code into a normal ASP document and name it **RefreshVBS.asp**. Use **Find** to locate the file Adovbs.inc and place it in the directory you plan to use. ASP script will identify your server. ``` <%@ Language=VBScript %>
| Choose if you want the Recordset brought back Synchronously on the current calling thread or Asynchronously on another thread. | ||
| Synchronously: |
Asynchronously: |
|
| Fetch Up Front, Background Fetch with Blocking or Background Fetch without Blocking | ||
| Up Front: |
Background w/ Blocking: |
Background w/o Blocking: |