hello! i am wondering what is the fastest, most efficient way to implement a FIFO stack in SQL Server 7...?
for example, i have a table called ActiveTasks, and need stored procedures to read/remove the topmost Task, and then another which adds a new task to the bottom of the stack.
i have been thinking to implement a second table with a pointer to the last used Task's ID combined with sorting the ActiveTasks table by the Identity column, but am not so sure this is the most efficient way. thanks for any advice!
for example, i have a table called ActiveTasks, and need stored procedures to read/remove the topmost Task, and then another which adds a new task to the bottom of the stack.
i have been thinking to implement a second table with a pointer to the last used Task's ID combined with sorting the ActiveTasks table by the Identity column, but am not so sure this is the most efficient way. thanks for any advice!