Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to rollback in vbs

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top