Stored Procedures [dbo].[MssWebGetJobNo]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@OrderIdint4
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
CREATE PROCEDURE [dbo].[MssWebGetJobNo]
    @OrderId int
AS
SELECT
    [Key]=JobsID,
    [Value]=ClientJobNo
FROM
    dbo.Jobs
WHERE OrdersPriKey = @OrderId
ORDER BY ClientJobNo
GO
GRANT EXECUTE ON  [dbo].[MssWebGetJobNo] TO [MssExec]
GO
Uses