﻿CREATE PROCEDURE [dbo].[ResetPartialSearches]
AS
    BEGIN
		--Reset status and start timestamp for searches begun but not finished
        UPDATE  dbo.Search
        SET     Status = 1,
                StartDT = NULL
        WHERE   StartDT IS NOT NULL AND
                EndDT IS NULL;
    END