Ver Mensaje Individual
  #2  
Antiguo 05-06-2012
Avatar de StartKill
StartKill StartKill is offline
Miembro
 
Registrado: ene 2004
Posts: 299
Reputación: 23
StartKill Va por buen camino
Hola

Sugerencia, ... si lo trabajas en un procedimiento almacenado???
(como un todo, ... debo suponer que todo esta en un mismo server)

Código SQL [-]
BEGIN TRAN
   BEGIN TRY
      ---todas tus instrucciones
      COMMIT TRANSACTION; 
   END TRY
   BEGIN CATCH
      ROLLBACK TRANSACTION
      PRINT 'Se ha producido un error!!!!'
      print ERROR_NUMBER() ;
      print ERROR_MESSAGE() ;
   END CATCH



Your friend

StartKill
Lima-Peru
Responder Con Cita