Files
jdescopingtool/NEW/src/JdeScoping.Database/Scripts/043_CreateResetPartialSearchesProcedure.sql
T
Joseph Doherty 26ff8d9b4f Initial commit: JDE Scoping Tool migration project
Set up repository with legacy .NET Framework 4.8 source (OLD/),
new .NET 10 Blazor solution (NEW/), OpenSpec specifications,
documentation, and project configuration.
2026-01-02 07:43:29 -05:00

16 lines
480 B
Transact-SQL

-- Migration: 043_CreateResetPartialSearchesProcedure
-- Source: OLD/Database/StoredProcedures/ResetPartialSearches.sql
-- Resets searches that were started but not completed (cleanup after crash)
CREATE OR ALTER 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
GO