
[dbo].[GetSystemValidationByKey]
CREATE PROCEDURE [dbo].[GetSystemValidationByKey]
@inNameKey varchar(16)
as
set nocount on
select top (1)
KeyValue,
EffectiveDateUtc,
ExpirationDateUtc
from [Validation]
where NameKey = @inNameKey and
IsSystemValidation = 1
order by NameKey asc, ValidationID asc
GO
GRANT EXECUTE ON [dbo].[GetSystemValidationByKey] TO [MssExec]
GO