The information in this article applies to:
SUMMARYMicrosoft Remote Data Service (RDS) can be used inside a Visual Basic program as easily as it can be used from inside Microsoft Internet Explorer. You are not able to bind controls to it with the RDS.DataControl as you can in Internet Explorer, but you can use the RDS.DataSpace and the RDSServer.DataFactory objects to return a recordset to your Visual Basic program with a small amount of code. With the returned recordset you can populate unbound controls. MORE INFORMATIONSample ProgramThis example uses the CreateObject method of the RDS.DataSpace on the client to instantiate the RDSServer.DataFactory object on a remote server over HTTP. The RDSServer.DataFactory object then uses the Query method to execute SQL on the remote server and return an ADO/R recordset to the client.In order to run the example code you first need to make sure the RDS Server components have been installed on the Internet Information Server (IIS) computer. These can be obtained from the Microsoft Universal Data Access web page located at the following URL: http://www.microsoft.com/data/The client components must also be installed on the client computers. If the client computer has Internet Explorer 4.01 or greater installed, the RDS 1.5 (or later) client components are included. For clients running Internet Explorer 3.0, the client components must be downloaded to the clients computer. One way of doing this is by using a CODEBASE parameter in the OBJECT tag of an HTML page. To do this go to the sample page on your RDS Server located at: http://[SERVER]/Msadc/Samples/Adctest.aspThe components will automatically be installed on the client. This sample uses SQL Server and the Pubs database, but you can change the System DSN, UID, PWD, and SQL to match any ODBC database you may be using.
REFERENCESFor additional information, please see the following World Wide Web URL: http://www.microsoft.com/data/rds/Remote Data Service public newsgroup: microsoft.public.ado.rds Additional query words: ADC
Keywords : kbprg kbRDS150 kbRDS200 kbRDS210 kbVBp500 kbVBp600 kbGrpVBDB kbGrpMDAC kbDSupport |
Last Reviewed: October 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |