感谢您使用微软产品。这篇文章上有一个关于RDS的例子,您可以参考一下:SAMPLE: Rdsvb.exe Demonstrates How to Use RDS with Visual Basic 
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q183609下面几篇文章是RDS相关的常见问题与解答,相信对您有所帮助。Troubleshooting Common Problems with Remote Data Services 
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q251122HOWTO: Write and Validate a Custom Business Object with RDS 
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q183315INFO: RDS Registry/Security Settings for Custom Business Objects 
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q191741- 微软全球技术中心 VB技术支持本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款
(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
为了为您创建更好的讨论环境,请参加我们的用户满意度调查
(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。

解决方案 »

  1.   

    我想使用RDS.DataControl的数据绑定,可是老报如下错误:错误:RDS服务器错误:服务器拒绝访问用于访问此页的默认的RDS句柄。请查看“服务器管理”获得关服务器安全设置的更多的信息。请高手帮忙
      

  2.   

    用ADO★★★★★
    打工好辛苦
    ★★★★★
    钞票好难赚
    ★★★★★
    编程好伤神
    ★★★★★
    光阴好易混
    ★★★★★
      

  3.   

    根据我的应用经验可按以下情况分别处理:
    1、Web服务器数据组件版本低,msadc没有正确注册;
       如果你的Web服务器是WINDOWS NT/2000(IIS),多数情况下是数据组件版本低的缘故,请升级MSDAC v2.6;
       如果你是在WINDOWS 98上采用PWS 4.0,请运行注册文件:
       X:\program files\common files\system\msadc\HANDLER.reg
       X:\program files\common files\system\msadc\handsafe.reg
       X:\program files\common files\system\msadc\handunsf.reg
    2、我在程序中将RDS绑定到数据控件的方法是:
       ' Declare RDS and ADOR object
       dim oRDS As New RDS.DataControl
       dim oRs As ador.Recordset
       ' Query the database with RDS
       With oRDS
            .SQL = "SELECT * FROM myTableName" ' SQL statement
            .Server = gszWebServerURL          ' Web Server URL Addr.
            .Connect = szDBDriver & szDBPath   ' Connection string
            .ExecuteOptions = adcExecSync
            .FetchOptions = adcFetchBackground
            .Refresh
            Set oRs = .Recordset
        End With
        
        ' Bind to MSHFlexGrid control, named grdDataView
        set grdDataView.Recordset = oRs    oRs.Close 
        set grdDataView.Recordset = nothing
        
      

  4.   

    我是windows2000 Server、RDS2.6,代码也毫无二致,为什么还是不行呢?
    再帮忙想-想
    谢了!