在本机如何取得数据库服务器上的系统时间

解决方案 »

  1.   

    执行一个SQL查询就可以:
    Rst.Open  "Select getdate()", Con
    然后Rst(0)就是从服务器返回的日期和时间。
      

  2.   

    上面指的是有SQL的情况,服务器没装SQL就不能用这种方法
      

  3.   

    Oracle : select sysdate from dual;
    Access : select now
    Sql server : select now
    postgres  : current_timestamp
      

  4.   

    sqlserver 2000:
       Set Rs = Conn.Execute("Q_GetCurrentTime")
       GetDataBaseTime = Format(Rs(0), "YYYY-MM-DD HH:NN:SS")
      

  5.   

    Oracle : select sysdate from dual;
    Access : select now
    Sql server : select now
    postgres  : current_timestamp
    -----------
    postgres   这是个什么东东呀? 学习