--- title: "Refresh Method (RDS) | Microsoft Docs" ms.technology: connectivity ms.custom: "" ms.date: "01/19/2017" ms.reviewer: ms.prod: sql ms.prod_service: connectivity ms.topic: conceptual apitype: "COM" f1_keywords: - "Refresh" - "RDS.DataControl::Refresh" - "DataControl::Refresh" helpviewer_keywords: - "Refresh method [RDS]" ms.assetid: c90a8050-0ff4-4c83-9925-261f2f2ccfe9 author: MightyPen ms.author: genemi --- # Refresh Method (RDS) Requeries the data source specified in the [Connect](../../../ado/reference/rds-api/connect-property-rds.md) property and updates the query results. > [!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). ## Syntax ``` DataControl.Refresh ``` #### Parameters *DataControl* An object variable that represents an [RDS.DataControl](../../../ado/reference/rds-api/datacontrol-object-rds.md) object. ## Remarks You must set the [Connect](../../../ado/reference/rds-api/connect-property-rds.md), [Server](../../../ado/reference/rds-api/server-property-rds.md), and [SQL](../../../ado/reference/rds-api/sql-property.md) properties before you use the **Refresh** method. All data-bound controls on the form associated with an **RDS.DataControl** object will reflect the new set of records. Any pre-existing [Recordset](../../../ado/reference/ado-api/recordset-object-ado.md) object is released, and any unsaved changes are discarded. The **Refresh** method automatically makes the first record the current record. It is a good idea to call the **Refresh** method periodically when you work with data. If you retrieve data, and then leave it on a client computer for a while, it is likely to become out of date. It is possible that any changes that you make will fail, because someone else might have changed the record and submitted changes before you. ## Applies To [DataControl Object (RDS)](../../../ado/reference/rds-api/datacontrol-object-rds.md) ## See Also [Refresh Method Example (VB)](../../../ado/reference/ado-api/refresh-method-example-vb.md) [Refresh Method Example (VBScript)](../../../ado/reference/rds-api/refresh-method-example-vbscript.md) [Address Book Command Buttons](../../../ado/guide/remote-data-service/address-book-command-buttons.md) [CancelUpdate Method (RDS)](../../../ado/reference/rds-api/cancelupdate-method-rds.md) [Refresh Method (ADO)](../../../ado/reference/ado-api/refresh-method-ado.md) [SubmitChanges Method (RDS)](../../../ado/reference/rds-api/submitchanges-method-rds.md)