Guest_imported
New member
- Jan 1, 1970
- 0
What I really need is something like this:
SELECT something FROM sometable
WHERE EXEC CompareTime(sometable.time, GETDATE() )
It doesn't work to call the comparetime-procedure just like that (I've tested) but somehow would need to be able to call a CompareTime-stored procedure from within another stored procedure.
This is a a try from me to better explain what I want to do when comparing 2 times (note, 2 times, no date should be compared, only the time).
I want to be able to do it in SQL Server 7 like it's possible to do in Access97 where one can use TIME() to get the time at the moment.
Bob Nachbar
SELECT something FROM sometable
WHERE EXEC CompareTime(sometable.time, GETDATE() )
It doesn't work to call the comparetime-procedure just like that (I've tested) but somehow would need to be able to call a CompareTime-stored procedure from within another stored procedure.
This is a a try from me to better explain what I want to do when comparing 2 times (note, 2 times, no date should be compared, only the time).
I want to be able to do it in SQL Server 7 like it's possible to do in Access97 where one can use TIME() to get the time at the moment.
Bob Nachbar