Stored Proc question

General
KN
Enthusiast

Stored Proc question

Hi Guru's,

 

How do i add time loop in SP?  Example

when the procedure is called my set of statement have to run from the time of invoke until the end time which is again passed as a value.

 

thanks