Professional Documents
Culture Documents
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