I have an sql tht I execute in my vbs.
strConn = stringDSN
strsql3 = "update tbl set col = null"
Set objConnection = CreateObject("ADODB.Connection"
objConnection.connectionstring = strConn
objConnection.Open
Set Comm = CreateObject("ADODB.Command"
set Comm.ActiveConnection = objConnection
Comm.commandtype = 1
Comm.commandtext = strsql3
Comm.execute
How can I roll it back if there is any error?
Any help will be greatly appreciated.
strConn = stringDSN
strsql3 = "update tbl set col = null"
Set objConnection = CreateObject("ADODB.Connection"
objConnection.connectionstring = strConn
objConnection.Open
Set Comm = CreateObject("ADODB.Command"
set Comm.ActiveConnection = objConnection
Comm.commandtype = 1
Comm.commandtext = strsql3
Comm.execute
How can I roll it back if there is any error?
Any help will be greatly appreciated.