Scenario: A stored procedure receives from a DateTime code with, say, the value DateTime.Now, as a datetime parameter. A stored procedure should only store a portion of the date and time date in a string, but retain all the arithmetic associated with the date in order, say, to search by time intervals and make reports based on dates.
I know there are several ways, but which is better, bearing in mind the performance and wasted space?
source
share