在服务器端使用了adoconnection,初始connected:=false;
在远程模块中定义了一个方法供客户端调用,
当adoconnection.connected:=true时,
返回adoconnection.defaultdatabase值.
问题是:当服务器运行时,设置connected:=true,
客户端得不到defaultdatabase值.
相反的是,design时将connected:=true,运行时设置connected:=false.
客户端却照样可以得到defaultdatabase值.
???

解决方案 »

  1.   

    adoconnect的连接不要直接建立,设计时让它为false就好了还有就是
    If a default database is specified in the ConnectionString property, it has precedence over the value in DefaultDatabase. The DefaultDatabase value is automatically changed to the database specified in ConnectionString when the connection component is opened.
      

  2.   

    这样不行的.
    只要是design时将connected设为false,无论运行时怎样改设置,
    客户端都得不到defaultdatabase值.
    是不是什么早绑定,晚绑定的问题呀?那位大侠不吝赐教?