RT, 谢谢各位!

解决方案 »

  1.   

    有一种方法,那就是用ADO连数据库
    -----------------------------------sCon="Provider=SQLOLEDB.1;Password=xxxxxxx;Persist Security Info=True;User ID=xxx;Initial Catalog=xxxxxx;Data Source=xxxxxx"
    Set adoCn = New ADODB.Connection
    adoCn.CursorLocation = adUseClient
    adoCn.Open sCon..........
    -----------------------------------
    如果能够联结的上,那就说明sqlserver数据库已经启动
      

  2.   

    我覺得
    检测“sqlservr.exe”进程
    更准確點吧
      

  3.   

    一水寒的比较对,毕竟MYSQL大多是在其他linux主机上,查进程不太好办.
    dim cn as new adodb.connection
    .....
    cn.open
    if cn.version then
      "已经开启
    end if
      

  4.   

    谢谢,我已经用SQLDMO解决了。散分。