Advertisement
Guest User

CUW Laura

a guest
Aug 28th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. begin tran
  2. declare @matricolaAnagrafica int;set @matricolaAnagrafica=229
  3. declare @eventoNuovo int;Set @eventoNuovo=668
  4. declare @eventoVecchio int;Set @eventoVecchio=663
  5.  
  6. --update PRIDati_PRI_grande set evento=@eventoNuovo where Evento=@eventoVecchio
  7. --update PRIDati_pri_piccolo set evento=@eventoNuovo where Evento=@eventoVecchio
  8. --update PRIDati_Cronologia set evento=@eventoNuovo where Evento=@eventoVecchio
  9.  
  10. --select * from vmvServizi where MatricolaAnagrafica=229
  11.  
  12. --select * from trcAnagrafica where cognome='toso'
  13. --select * from vrcAnagrafica where cognome='toso'
  14. update vDataCoins set l0=@eventoNuovo where l0=@eventoVecchio
  15. update vFolderTreeSigns set Customer=@eventoNuovo where Customer=@eventoVecchio
  16. update [vSign] set matricola=@eventoNuovo where Matricola=@eventoVecchio
  17. update vConvenzione set matricola=@eventoNuovo where Matricola=@eventoVecchio
  18. update vAusiliMovimentazione set matricola=@eventoNuovo where Matricola=@eventoVecchio
  19. update vPaiDati set matricola=@eventoNuovo where Matricola=@eventoVecchio
  20. update vSegnalazioni set matricola=@eventoNuovo where Matricola=@eventoVecchio
  21. update vCriticita set matricola=@eventoNuovo where Matricola=@eventoVecchio
  22. update PRIDati_PRI_grande set evento=@eventoNuovo where Evento=@eventoVecchio
  23. update PRIDati_pri_piccolo set evento=@eventoNuovo where Evento=@eventoVecchio
  24. update PRIDati_Cronologia set evento=@eventoNuovo where Evento=@eventoVecchio
  25. update vPlanning set l0=@eventoNuovo where l0=@eventoVecchio
  26.  
  27.  
  28. rollback tran
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement