You can separate SQL commands with a semi-colon, like this:
' Construct SQL string
sqlSTRING = ""
sqlSTRING = "UPDATE dbo.table1 SET column1 = 1 WHERE
whereclause1 = value1;
UPDATE dbo.table2 SET column2 = 2 WHERE whereclause2 =
value2"
' Perform the update
set cmdUpdate = Server.CreateObject("ADODB.Command")
cmdUpdate.ActiveConnection = conn
cmdUpdate.CommandText = sqlSTRING
cmdUpdate.CommandType = 1
cmdUpdate.CommandTimeout = 0
cmdUpdate.Prepared = true
cmdUpdate.Execute()
HTH
Cheers,
Rob
http://robgt.com/ [Tutorials and
Extensions]
Firebox stuff:
http://robgt.com/firebox
Skype stuff:
http://robgt.com/skype
SatNav stuff:
http://robgt.com/satnav