From 093731bbb6f8c5555c8169591973bbc18afcbaa5 Mon Sep 17 00:00:00 2001 From: Graham Walker Date: Fri, 13 Jun 2025 13:45:38 -0500 Subject: [PATCH] PM-20574 fixing sql file --- .../OrganizationReport_ReadById.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Sql/dbo/Dirt/Stored Procedures/OrganizationReport_ReadById.sql b/src/Sql/dbo/Dirt/Stored Procedures/OrganizationReport_ReadById.sql index e69de29bb2..d51392199f 100644 --- a/src/Sql/dbo/Dirt/Stored Procedures/OrganizationReport_ReadById.sql +++ b/src/Sql/dbo/Dirt/Stored Procedures/OrganizationReport_ReadById.sql @@ -0,0 +1,17 @@ +CREATE PROCEDURE [dbo].[OrganizationReport_ReadById] + @Id UNIQUEIDENTIFIER +AS + SET NOCOUNT ON; + +IF @Id IS NULL + THROW 50000, 'Id cannot be null', 1; + +SELECT + [Id], + [OrganizationId], + [Date], + [ReportData], + [CreationDate], + [RevisionDate] +FROM [dbo].[OrganizationReport] +WHERE [Id] = @Id;