You are on page 1of 1

begin tran

select cliNombres, cliApellidoMaterno, cliApellidoPaterno, cliDireccion,


cliDistrito
from tblCliente
where cliDistrito = 'Jauja'
print 'trancount value'
print @@trancount
rollback tran

begin tran
print 'trancount value'
print @@trancount
print 'before update'
select IDProducto, proNombre, proPrecioPropuesto
from tblProducto
WHERE IDProducto = 'P0033'
update tblProducto set proPrecioPropuesto = '50' WHERE IDProducto = 'P0033'
print 'trancount value'
print @@trancount

ROLLBACK

begin tran
print 'trancount value'
print @@trancount
select IDEmpleado, empNumSegSocial, empNombres, empApellidoPaterno,
empApellidoMaterno
from tblEmpleado
update tblEmpleado set empSueldo = '5000' where IDEmpleado = '6'
rollback

You might also like