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;