FatalExceptionError
Technical User
I have something similar to this.
When I do this i get records returned for all things with a date that is on that same day rather than the ones occuring after the specified time on that day.
Am I wrong in assuming that max(smalldatetime) takes into account date as well as time.
=======================================
The statement below is true
The statement above is false
There are 10 kinds of people, those who know binary and those who don't
Code:
declare @last_date_read smalldatetime
select @last_date_read = max(date_time) from database_A
SELECT somestuff..., [time], date, more stuff
FROM
OPENQUERY(somelinkedserver,'Select * from databaseB)
WHERE CONVERT(smalldatetime, (date+' '+[time in]))> @last_date_read
When I do this i get records returned for all things with a date that is on that same day rather than the ones occuring after the specified time on that day.
Am I wrong in assuming that max(smalldatetime) takes into account date as well as time.
=======================================
The statement below is true
The statement above is false
There are 10 kinds of people, those who know binary and those who don't