Get exact string with SQL

How to get the exact string from database with case sensitivity
  1. select * from memdetails where loginid='abc'   
  2. will give you record of loginid with abc only and ABC  
  3.    
  4. select * from memdetails where loginid='abc' COLLATE SQL_Latin1_General_CP1_CS_AS    
  5. will give you record of loginid with abc only and not ABC    
  6.    
  7. select * from memdetails where loginid='ABC' COLLATE SQL_Latin1_General_CP1_CS_AS    
  8. will give you record of loginid with ABC only and not abc