USP_DATAFORMTEMPLATE_ADD_FACULTYCOURSERESOURCE

The save procedure used by the add dataform template "Faculty Course Resource Add Data Form".

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier INOUT The output parameter indicating the ID of the record added.
@CHANGEAGENTID uniqueidentifier IN Input parameter indicating the ID of the change agent invoking the procedure.
@COURSEID uniqueidentifier IN Course
@FACULTYID uniqueidentifier IN Input parameter indicating the context ID for the record being added.

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_FACULTYCOURSERESOURCE
(
    @ID uniqueidentifier = null output,
    @CHANGEAGENTID uniqueidentifier = null,
      @COURSEID uniqueidentifier,
      @FACULTYID uniqueidentifier
)
as

set nocount on;

declare @r int
exec @r = dbo.USP_FACULTYCOURSERESOURCE_ADD
  @ID = @ID output
  @CHANGEAGENTID = @CHANGEAGENTID
  @COURSEID = @COURSEID
  @FACULTYID = @FACULTYID

  if @@error <> 0 
    begin
        if @r <> 0 return @r
        return 1;
    end