USP_REPORT_EDUCATIONHISTORYUPDATEBATCHEXCEPTIONREPORT
Returns the data necessary for the educational history update batch exception report.
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@BATCHID | uniqueidentifier | IN |
Definition
Copy
create procedure dbo.USP_REPORT_EDUCATIONHISTORYUPDATEBATCHEXCEPTIONREPORT(@BATCHID uniqueidentifier)
with execute as owner
as
set nocount on;
declare @TABLENAME nvarchar(128);
select @TABLENAME = dbo.UFN_BATCH_GETREPORTTABLENAME(@BATCHID, 1)
declare @SQLTOEXEC nvarchar(512);
set @SQLTOEXEC = N'set nocount on;
select
ID, CONSTITUENTNAME, LOOKUPID, INSTITUTION, PROGRAM, DEGREE,
COLLEGE, DEPARTMENT, DEGREETYPE, REASON
from dbo.' + @TABLENAME;
exec sp_executesql @SQLTOEXEC;