Reads all context rows a different source application left behind for the current session, explicitly excluding rows already belonging to the current application. clsContext.RetrieveContext calls this, then immediately deletes the returned rows via SQL-MVC-004 — a read-then-consume pattern that implements a one-time cross-application state hand-off.
-- Retrieve context rows left by a different source application for this sessionSELECTID,AppName,SessionID,ContextName,ContextValue,UpdateDateFROMContextWHEREAppName=@AppNameANDSessionID=@SessionIDANDnotAppName=@CurrentApp