Does anyone know why this is happening , I realize that may be a problem for dates after year 9999 , but I should be safe by a day.
EDIT : The Normalize date method only "normalizes the given date to midnight of that day" Check hours, minutes, seconds and milliseconds that are held into these 2 date objects.
The cursor is terminated when the If there is a single customer with first name "mickey" and he has five accounts, the above snippet results in six database hits.
The first hit is to fetch the record for mickey (line 1).
How the connection is obtained is immaterial, as long as the connection is associated with a database transaction.