[dbo].[DELETE_UND_JOB]
(local)
>
mdb
>
Stored Procedures
> dbo.DELETE_UND_JOB
Properties
Parameters
Permissions
SQL Script
Uses
Properties
Property
Value
ANSI Nulls On
Quoted Identifier On
Parameters
Name
Data Type
Max Length (Bytes)
@job_id_1
bigint
8
Permissions
Type
Action
Owning Principal
Grant
Execute
uniadmin
Grant
Execute
uniuser
SQL Script
/****** Object: Stored Procedure dbo.DELETE_UND_JOB Script Date: 12/1/2005 11:49:12 PM ******/
/****** Object: Stored Procedure DELETE_UND_JOB Script Date: 3/25/2005 2:24:50 PM ******/
CREATE
PROCEDURE
[DELETE_UND_JOB]
(
@job_id_1
[bigint]
)
AS
UPDATE
[srdb]
.
[und_job]
SET
[status]
=
'deleted'
,
[dt_last_modified]
=
getdate
()
WHERE
(
[job_id]
=
@job_id_1
)
UPDATE
[srdb]
.
[und_task]
SET
[status]
=
'deleted'
,
[dt_last_modified]
=
getdate
()
WHERE
(
[job_id]
=
@job_id_1
)
GO
GRANT
EXECUTE
ON
[dbo]
.
[DELETE_UND_JOB]
TO
[uniadmin]
GRANT
EXECUTE
ON
[dbo]
.
[DELETE_UND_JOB]
TO
[uniuser]
GO
Uses
[dbo].[und_job]
[dbo].[und_task]
dbo
[srdb].[und_task]
[srdb].[und_job]