datamodule1.DCOMConnection1.ComputerName赋值以后要加这句吧:
datamodule1.DCOMConnection1.Connected:=true;

解决方案 »

  1.   

    在查询分析器里实际结果:
    若服务器是新时代酒店则:id=1,expendplan_date=2004-08-19
    若服务器是金珠酒店则:id=1,expendplan_date=2004-08-20
    在delphi里的结果:
    若没有加(风云)那句结果:
    id=1,expendplan_date=2004-08-20
    id=1,expendplan_date=2004-08-20
    若加了(风云)那句:
    id=1,expendplan_date=2004-08-19
    id=1,expendplan_date=2004-08-19