Book Image

Microsoft SQL Server 2008 R2 Master Data Services

Book Image

Microsoft SQL Server 2008 R2 Master Data Services

Overview of this book

Table of Contents (18 chapters)
Microsoft SQL Server 2008 R2 Master Data Services
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Populating MDS step 1—populating the staging tables


Populating the staging tables with your source data in the correct format is the core part of getting data loaded into MDS. Once this is done correctly, MDS (almost) takes care of the rest. The process is very similar for each of the staging tables and in fact each of the stage tables is used for more than one process. To understand how to populate the tables, it is important to look at the definition for each of the staging tables, and the uses of each field:

tblStgMember

Field name

Data type

Description

ID

bigint

Identity column used as internal key.

Batch_ID

int

Updated with the id of the batch once the staging process is invoked.

UserName

nvarchar(100)

The name of the user running the staging process batch in format 'domain\username' – optional.

ModelName

nvarchar(50)

The name of the model into which the row is to be loaded.

HierarchyName

nvarchar(50)

The name of the hierarchy into which the row is...