﻿CREATE PROCEDURE [session].[ReadStatesBySession]
	@SessionId [session].[SessionSurrogateKey]
AS

SELECT Id, SessionId, Document
FROM [session].[State]
WHERE Id = @SessionId
ORDER BY Id ASC;