I'm not sure what's to be confused about. The error message says that 5 parameters are expected. You're calling AddParameter 3 times. 3 is not equal to 5.