发送 "delete * from table_name"set cn=new connection
cn.open ".......","sa","you_password"
cn.execute "delete * from table_name" 
cn.close
set cn=nothing

解决方案 »

  1.   

    with re
    if .recordcount<>0 then
    .movefirst
    i=0
    for i=0 to .recordcount-1
    .delete
    .update
    .movenext
    next i
    end if
    end with
      

  2.   

    dim mRs as  new recordset
    ....
    mrs.open "delete 表名"OK!
      

  3.   

    连接.execute "delete * from 你的表名"
      

  4.   

    conn.execute "delete from 表名"
      

  5.   

    conn.execute "delete from 表名"
    ================================================================ok?
      

  6.   

    楼主的问题在送分吧?如真的不会,请多看看sql server 联机帮助吧
    这么简单的sql,居然还有兄弟写成delete * from table_name
      

  7.   

    可能是笔误吧。
    1、建立连接,直接使用SQL删除。
    2、使用Adorecordset,使用循环删除