A few ideas:
Shift your logic so that the first row of data is discarded, and then in the next record use Previous for the current row and current row for "Next".
Add the required data to your data set so that it is contained in additional columns. Perhaps some connections on Row_Number() to Row_Number() + 1 might be ok.
Create a stored procedure using a temporary table, and in it update the additional columns with the values โโof the next row. Be sure to disable the pre-check so that the SP does not explode due to temporary tables (for example, when a stored procedure is started using SET FMTONLY ON , the temporary tables will not be filled and the check will not complete).
If you give more details about what you are trying to accomplish, I could come up with more ideas.
source share