--- title: "Create RDSServer.DataFactory Object using CreateObject 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: - "DataFactory object [ADO], VBScript example" - "CreateObject method [ADO], VBScript example" - "Query method [ADO], VBScript example" ms.assetid: b4e2844a-120a-4513-860b-f1b6e4b5dda4 caps.latest.revision: 14 author: "MightyPen" ms.author: "annemill" manager: "sonalm" --- # DataFactory Object, Query Method, and CreateObject 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). This example creates an [RDSServer.DataFactory](../../../ado/reference/rds-api/datafactory-object-rdsserver.md) object using the [CreateObject](../../../ado/reference/rds-api/createobject-method-rds.md) method of the [RDS.DataSpace](../../../ado/reference/rds-api/dataspace-object-rds.md) object. To test this example, cut and paste this code between the \
and \ tags in a normal HTML document and name it **DataFactoryVBS.asp**. ASP script will identify your server. ```