HAY,
When you are reading your cursor, read the value of each column in a variable and when you are into the fetch block, use those variables. Hope following sample code will server your purpose. If not let me know what exactly you are looking.
declare @CurrDate datetime, @firstname varchar(50),@lastname varchar (50)
declare PatientCursor Cursor read_only for
select timestamp,fname,lname from table where order by timestamp asc
open PatientCursor
Fetch next from PatientCursor into @CurrDate, @firstname, @lastname
while (@@fetch_status =0)
Begin
// do with your variables here what you want to do.....for each iteration they have corresponding values...
Fetch next from PatientCursor into @CurrDate, @firstname, @lastname
End
close PatientCursor
deallocate PatientCursor