Advertisement
Guest User

SQLug 2014 Challenge Main

a guest
Dec 9th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.40 KB | None | 0 0
  1. set nocount on;
  2.  
  3. -- Load Prislista to PrislistaMem
  4. insert into dbo.PrislistaMem(Taxekod, Pris)
  5. select Taxekod, Pris
  6. from dbo.Prislista;
  7.  
  8. -- Remove all rows from Ersattning
  9. truncate table dbo.Ersattning;
  10.  
  11. -- Send messages to target
  12. declare @NumMsgs int;
  13. exec dbo.SendMsg @NumMsgs out;
  14.  
  15. -- Relase the queuereaders
  16. delete from dbo.StartIt;
  17.  
  18. -- Receive replies
  19. exec dbo.ReceiveMsg @NumMsgs;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement