Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How or can I issue a truncate table from ADO


Message #1 by "Ron Baxter" <rbaxter@c...> on Thu, 29 Mar 2001 18:59:21

you can do it like this


<%
set con= server.CreateObject("adodb.connection")
set rs = server.CreateObject ("adodb.recordset")

con.Open  "dsn=dsnname;uid=userid;pwd=password;"
str="truncate table TName"
rs.Open str,con
%>
<%
str1= "insert into Tname values(x , y)
rs.open str1,con

rs.close
set rs= nothing
con.close
set con =nothing
%>

put appropraite values at the right places and execute.

Vinay



  Return to Index