<%
on error resume next
Set conn=Server.CreateObject("ADODB.CONNECTION")
conn.Open Application("ConnectionString")
Conn.BeginTrans

conn.execute("Insert into text(text)values('abc')")
'
conn.execute("Insert into text123(text)values('123')")

if conn.Errors.Count>0 then
conn.Errors.Clear
conn.RollBackTrans
response.Write("error,had RollBack.")
end if
conn.CommitTrans
%>

相关文章:

  • 2021-10-17
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-25
  • 2021-11-05
  • 2021-12-30
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案