呵呵,真的没有试过,不过,还有兴趣,access呀
呵呵;

解决方案 »

  1.   

    难道没有人用ado访问过远程数据库吗?
      

  2.   

    ADO连!远程ACCESS库行吗?
    除非三层...
      

  3.   

    不是啊,有做ASP的说可以,而且就是那样写的
      

  4.   

    嗬嗬,你把internet安全当儿戏啊,这样的连接只能只读,甚至只读都不可以,别忘了,http不是你的任何一个驱动器,连局域网虚拟驱动器都不是,他只是一个协议,你对ado要求得太多啦
    告诉你,这样连不可以
      

  5.   

    可是在odbc里就可以连接web文件夹下的数据库,不信打开你的机器上的ODBC数据源设一个看看啊
      

  6.   

    Access好像不能进行远程数据服务,看来你要换换数据库了!
      

  7.   

    就是在设虚拟驱动器时出了问题,所以我怀疑是Web发布的问题而不是程序联接的问题。
    看到一片资料上说,在connectionstring里的DBQ实际上是创建了一个临时ODBC数据源,那么是不是可以说,如果我能用ODBC数据源联到远程ACCESS上,我就应该可以让我程序里的ADOconnection联上呢?
      

  8.   

    远程用ADO可以用TRDSConnection,TRDSConnection的ComputerName填远程服务器地址(如http://www.csdn.net,本机调试可用http://localhost),TADODataSet的RDSConnection属性选已经连接远程服务器的TRDSConnection,而TADODataSet的ConnectionString填这样的内容:'Driver= {Microsoft Access Driver (*.mdb)};DBQ=d:\dbname.mdb',其中d:\dbname.mdb是存在于远程服务器上的数据库的物理位置,TADODataSet会把这个ConnectionString通过HTTP或DCOM传送给RDS服务器。
    RDS是微软的远程数据服务(Remote Data Service),需要在IIS中配置RDS服务,而配置很简单,只需要找到这个文件:C:\Program Files\Common Files\System\msadc\handunsf.reg,双击它注册即可。
    你也可以手动配置RDS,详情可以看看MSDN的帮助。
    RDS对象的使用,MSDN中也有详细说明。
      

  9.   

    给你写段例子吧,在Form上放一个TRDSConnection、一个TADODataSet、一个TDataSource连接到TADODataSet,一个TDBGrid连接到TDataSource、一个TButton。
    编写Button1的OnClick事件如下:  RDSConnection1.ComputerName := 'http://localhost';
      RDSConnection1.Connected := True;
      ADODataSet1.RDSConnection := RDSConnection1;
      ADODataSet1.ConnectionString := 
    'Provider=Microsoft.Jet.OLEDB.4.0;'+
    'Data Source=d:\mydb.mdb;'+ //这是在服务器的d:盘存放的mydb.mdb文件
    'Persist Security Info=False';
      ADODataSet1.CommandText := 'Select * from Table1';
      ADODataSet1.Open; //获取Table1的内容并显示在DBGrid中
      

  10.   

    PWS应该不行(我没试过),RDS属于IIS的服务,应该只能在win2000和IIS上使用。
    下面的地址是MSDN关于RDS的主页面,你可以详细看看:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmscrdsapireference.asp
      

  11.   

    在远程服务器上试过,当然自己调试时是在本机。
    关键在于要配置好服务器IIS的RDS服务。
      

  12.   

    试过你的RDS,不可以,
    错误信息说 Eoleexception 还有
    'Data Source=path\dbname.mdb;' 
    这句说path\dbname.mdb不是一个有效的路径,怀疑它是在本地找的,是IIS的问题吗?
    可是我运行了C:\Program Files\Common Files\System\msadc\handunsf.reg了
      

  13.   

    把email地址告诉我,我给你发一个demo
      

  14.   

    可以这样远程连接Access数据库?????!!!!!好象是第一次听说!
      

  15.   

    对了,你的ado是多少的版本,RDS需要2.6以上。
      

  16.   

    我已经把这里例子上传了,到下面的地址去下载:http://cchord.top263.net/download/rdsdemo.zip
      

  17.   

    MSDN中关于配置RDS服务的详细文档(配置完后需要重新启动):Configuring RDS on Windows 2000
    If you experience difficulties getting RDS to function properly after upgrading to Windows 2000, follow the steps below to troubleshoot the issue. Make sure that the World Wide Web Publishing Service is running first by navigating to http://server using Internet Explorer. If you are unable to access the web server this way, go to a command prompt and enter the following command, "NET START W3SVC". From the Start menu, select Run. Type msdfmap.ini and click OK to open the msdfmap.ini file in Notepad. Check the [CONNECT DEFAULT] section, and if the ACCESS parameter is set to NOACCESS, change it to READONLY. Using the RegEdit utility, navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataFactory\HandlerInfo" and make sure HandlerRequired is set to 0 and DefaultHandler is "" (Null string). Note   If you make any changes to this section of the registry, you must stop and restart the World Wide Web Publishing Service by entering the following commands at a command prompt: "NET STOP W3SVC" and "NET START W3SVC".Using the RegEdit utility, navigate in the registry to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\ADCLaunch" and verify that there is a key called RDSServer.Datafactory. If not, create it. Using Internet Services Manager, go to the Default Web Site and view the properties of the MSADC virtual root. Inspect the Directory Security/IP Address and Domain Name Restrictions. If the "Access is Denied" is checked then select "Granted". Be sure to try rebooting the server if the changes to do not appear to solve the problem at first.
      

  18.   

    用joyhero(JoyHero)的方法到底行吗?效率如何?
      

  19.   

    用joyhero(JoyHero)的方法到底行吗?效率如何?