Guest User

Untitled

a guest
Aug 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Performance Difference in comparing integers and comparing strings
  2. int = int
  3.  
  4. string = string
  5.  
  6. select *
  7. from Samples
  8. where SamplesID = 5
  9.  
  10. select *
  11. from Samples
  12. where Name = 'Shampoo'
  13.  
  14. select top 100 * from tblScratch where contactsurname = '<TestSurname>' order by NEWID()
  15. select top 100 * from tblScratch where contacttyperef = 1-22 order by NEWID()
  16.  
  17. Duration 430ms
  18. Reads 902
  19. CPU 203
  20.  
  21. Duration 136ms
  22. Reads 902
  23. CPU 79
Add Comment
Please, Sign In to add comment