.CommandText  =  "xp_SendOneMessage" 
错了
.CommandText  =  "xp_tt"

解决方案 »

  1.   

    怎么提示这个啊?
    ADODB.Command 错误 '800a0d5d' 应用程序在当前操作中使用了错误类型的值这几个类型试了一下好像都是提示上面的错误啊
    Const adDate = 7
    Const adDBDate = 133
    Const adDBTime = 134
    Const adDBTimeStamp = 135
      

  2.   

    一个语句能写得这么复杂,不服不行:)
    with objCmd
      .CommandText = "exec xp_SendOneMessage '"&now()&"'"
      .CommandType = adCmdStoredProc
      .Execute()
    end with
      

  3.   

    平时不大用WITH,刚试了一下我写的是错的,改一下:
    with objCmd
      .CommandText = "xp_SendOneMessage '"&now()&"'"
      .CommandType = adCmdStoredProc
      .Execute()
    end with
      

  4.   

    .Parameters.Append .CreateParameter("@ST",adDate,adParamInput,"'" & now() & "'",7)
    试试,ASP我不精
      

  5.   

    是不是adovbs.inc里头没有定义datetime对应的类型?我都试过了,还是不行啊??。
    :(
      

  6.   

    我查资料搞了半天终于搞了个和你的差不多的货,对部分参数直接指定值,不用系统提供的参数:
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="connections/oConn.asp" -->
    <%
    Dim cmdSp, P
    Set cmdSp = Server.CreateObject("ADODB.Command")
    With cmdSp
      .ActiveConnection = oConn
      .CommandText = "spTestDatetime"
      .CommandType = 4
      Set p = .Parameters
      p.Append .CreateParameter("@MyDate", 135, 1, ,now)
      cmdSp("@MyDate") = now()  
      .Execute
    End With
    oConn.Close
    Set oConn = Nothing
    Set cmdSp = Nothing
    %>
      

  7.   

    真的可以啊,谢谢你了。。给你分数ing。。 ^_^
      

  8.   

    楼主, otoexpert(零到专家要走多远?)  的不可以吗?