[rdld].[GetOrderNumbersRow]
CREATE PROCEDURE [rdld].[GetOrderNumbersRow]
@PriKey INT
AS
BEGIN
SET NOCOUNT ON;
SET DEADLOCK_PRIORITY LOW;
SELECT TOP(1)
[Description]
,[Prefix]
,[Minimum]
,[Maximum]
,[YearLength]
,[NextYear]
,[CurrentYear]
,[NextNoInSeq]
,[NextYrNextNo]
,[VanlineFID]
FROM OrderNumbers onums
Where OrderNumbersID = @PriKey
for xml raw;
END
GO
GRANT EXECUTE ON [rdld].[GetOrderNumbersRow] TO [MssExec]
GO