Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. begin distributed tran
  2. begin try
  3. insert into [aliservername].[dbname].[dbo].[mytable] select col1, col2 from mytable;
  4. commit
  5. end try
  6. begin catch
  7. print 'fail'
  8. rollback tran
  9. end catch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement