@Ian Jacobs got it in first, but here's how I'd do it in T-SQL. Assuming you're only concerned with hours:
DECLARE
@From datetime
,@Thru datetime
SET @From = 'Jan 1, 2010 21:00'
SET @Thru = 'Jan 3, 2010 20:00' -- 2/7/2010 2000
print datediff(dd, @From, @Thru)
print datediff(hh, @From, @Thru)
PRINT datediff(hh, @From, @Thru) / 24
...that is, calculate the hours difference between your datetimes, divide by 24, and truncate the decimal value. SQL appears to truncate, but if you're paranoid, use
print datediff(hh, @From, @Thru) / 24.0
PRINT floor(datediff(hh, @From, @Thru) / 24.0)
to ensure proper truncation. If you need precision down to the minute, second, or millisecond, add bit more arithmatic.