Once you have loaded one or more of the staging tables with data, the majority of the practical work has been done. You can invoke the staging process using either the user interface or the T-SQL stored procedure. To understand what happens when the staging process runs, it is worth exploring exactly what happens in the MDS database when the process is invoked:
Data is inserted into one or more of the staging tables. The
Batch_ID
for each record will beNull
and theStatus_ID
will be0
.The
mdm.udpStagingSweep
stored procedure is called (either using the user interface or using T-SQL). This does the following:Calls the
mdm.udpStagingBatchSave
stored procedure that does a simple insert into themdm.tblStgBatch
table. This returns aBatch_ID
.Updates any new records in the
mdm.tblStgMember
with theBatch_ID
.Updates any new records in
mdm.tblStgMemberAttribute
with theBatch_ID
.Updates any new records in
mdm.tblStgRelationship
with theBatch_ID...