March 30, 2014 at 6:44 am
Going through your code I found your function, dbo.fn_CSVToTableString. You obviously did NOT read the article I posted a link to for you. There are two major issues with this function.
First is that it uses a while loop to step through the string and parse it. This is not a scalable solution. Please look back to my previous post for the Tally Oh article reference and take the time to read it. Since the input parameter to your stored procedure is declared as an NVARCHAR(MAX) you would be MUCH better off using a CLR function to split the string. There is a CLR function included in the resources for that article if I remember correctly.
Second, the function is coded as multi-statement table valued function. These are also not scalable as the table returned by the function has to be populated before it returns. What you need is an inline table valued function. The code you have written can't be used in an inline tvf.
March 30, 2014 at 7:01 am
I have an idea, since as I go through your code and finding things that just won't work, using the sample data you posted give us a set of tables that provides us with the expected results based on the various inputs you also provided for your stored procedure. This will give us something to test against so we can provide you with test code to meet your requirements.
March 30, 2014 at 7:07 am
Here is your script for creating and populating your tables. Notice the changes I made to the script (besides the fact that there is no USE database statement).
/****** Object: Table [dbo].[ActivityDimvw] Script Date: 2014-03-30 10:07:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
if object_id('dbo.ActivityDimvw') is not null
drop table dbo.ActivityDimvw;
CREATE TABLE [dbo].[ActivityDimvw](
[ActivityDimKey] [int] NOT NULL,
[ActualCost] [float] NULL,
[ActualDowntimeEndDate] [datetime] NULL,
[ActualDowntimeStartDate] [datetime] NULL,
[ActualEndDate] [datetime] NULL,
[ActualStartDate] [datetime] NULL,
[ActualWork] [float] NULL,
[Area] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Area_ActivityAreaId] [int] NULL,
[BaseManagedEntityId] [uniqueidentifier] NULL,
[ChildId] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ContactMethod] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreatedDate] [datetime] NULL,
[Description] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DisplayName] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Documentation] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EntityDimKey] [int] NULL,
[FirstAssignedDate] [datetime] NULL,
[FirstResponseDate] [datetime] NULL,
[Id] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InsertedBatchId] [int] NOT NULL,
[IsDeleted] [int] NULL,
[IsDowntime] [bit] NULL,
[IsParent] [bit] NULL,
[Notes] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PlannedCost] [float] NULL,
[PlannedWork] [float] NULL,
[Priority] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Priority_ActivityPriorityId] [int] NULL,
[RequiredBy] [datetime] NULL,
[ScheduledDowntimeEndDate] [datetime] NULL,
[ScheduledDowntimeStartDate] [datetime] NULL,
[ScheduledEndDate] [datetime] NULL,
[ScheduledStartDate] [datetime] NULL,
[SequenceId] [int] NULL,
[Skip] [bit] NULL,
[SourceId] [uniqueidentifier] NOT NULL,
[Stage] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Stage_ActivityStageId] [int] NULL,
[Status] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Status_ActivityStatusId] [int] NULL,
[Title] [nvarchar](200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UpdatedBatchId] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[RelationshipView] Script Date: 2014-03-30 10:07:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
if object_id('dbo.RelationshipView') is not null
drop table dbo.RelationshipView;
CREATE TABLE [dbo].[RelationshipView](
[ad_Id] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ad_SequenceId] [int] NULL,
[ad_Title] [nvarchar](200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[workitem_Id] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TargetEntityId] [uniqueidentifier] NOT NULL,
[SourceEntityId] [uniqueidentifier] NOT NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[WorkItemContainsActivityFactvw] Script Date: 2014-03-30 10:07:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
if object_id('dbo.WorkItemContainsActivityFactvw') is not null
drop table dbo.WorkItemContainsActivityFactvw;
CREATE TABLE [dbo].[WorkItemContainsActivityFactvw](
[CreatedDate] [datetime] NULL,
[DateKey] [int] NOT NULL,
[DeletedDate] [datetime] NULL,
[InsertedBatchId] [int] NOT NULL,
[UpdatedBatchId] [int] NOT NULL,
[WorkItemContainsActivity_ActivityDimKey] [int] NOT NULL,
[WorkItemDimKey] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[WorkItemDimvw] Script Date: 2014-03-30 10:07:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
if object_id('dbo.WorkItemDimvw') is not null
drop table dbo.WorkItemDimvw;
CREATE TABLE [dbo].[WorkItemDimvw](
[BaseManagedEntityId] [uniqueidentifier] NULL,
[CreatedDate] [datetime] NULL,
[EntityDimKey] [int] NULL,
[Id] [nvarchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InsertedBatchId] [int] NOT NULL,
[IsDeleted] [int] NULL,
[SourceId] [uniqueidentifier] NOT NULL,
[Title] [nvarchar](200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UpdatedBatchId] [int] NOT NULL,
[WorkItemDimKey] [int] NOT NULL
) ON [PRIMARY]
GO
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4475, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.c7287b3d9d764b53afb57042798e3d5a', 67, N'd42303ac-84f6-daf8-38ce-0fc7fbbcacae', N'7389', NULL, CAST(0x0000A2E300B68845 AS DateTime), N'Received policy and checklist for relevant IT Technician to file', N'MA43662', NULL, 312799, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43662', 253667, 0, NULL, NULL, N'No Policy Needed
No Checklist Received', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 8, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Policy and Checklist - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 271648)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4478, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.c7287b3d9d764b53afb57042798e3d5a', 67, N'9813dae3-b3cd-8b9d-4bb9-2fe1c1f9acd7', N'7387', NULL, CAST(0x0000A2E300B68836 AS DateTime), N'IT Technician and user go through checklist together and user must sign it off.', N'MA43661', NULL, 312836, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43661', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 7, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'IT check list - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 261199)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4480, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.2a771d5a8e604a828d29ae23afee5e57', 74, N'ddd199d4-c783-48b6-4b09-457f0c2218ed', N'7371', NULL, CAST(0x0000A2E300B687EE AS DateTime), N'Create Active Directory Account / Email', N'MA43657', NULL, 312860, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43657', 253667, 0, NULL, NULL, N'done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 4, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Create AD\Email - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 254367)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4483, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.6c1efaf700b54ba4a19333b5b3bf77b0', 73, N'1b9cb0f9-61c1-849c-4b64-655ab355bf9f', N'5356', NULL, CAST(0x0000A2E300B68763 AS DateTime), N'Create Username and Password for user on relevant database', N'MA43651', NULL, 312904, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43651', 253667, 0, NULL, NULL, N'Done
===
Date (UTC): 3/7/2014 9:50:57 AM User: VPN\cVerheijen
Done
[Completed]', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Placement Partner Access - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 256606)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4484, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.d6b236bc76674767beabd9e60b173dc9', 65, N'0dd54c79-a0e1-7cd8-f891-679b53576f89', N'7383', NULL, CAST(0x0000A2E300B6880E AS DateTime), NULL, N'MA43659', NULL, 312905, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43659', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 6, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Setup VOIP phone at branch - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 261199)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4493, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.c7287b3d9d764b53afb57042798e3d5a', 67, N'dde389fd-2d86-4208-a163-9f4f0137a1a7', N'7391', NULL, CAST(0x0000A2E300B68863 AS DateTime), N'Update Pastel with relevant Assets', N'MA43663', NULL, 312970, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43663', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 9, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Update Pastel - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 271648)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5182, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'879c1960-e170-f734-5777-034deb61ab2c', N'4494', NULL, CAST(0x0000A2F400C74936 AS DateTime), N'TEST', N'PA49948', NULL, 353727, NULL, NULL, N'PA49948', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 6, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Give System Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4496, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.d5c2fc1d19034036ac618f18161cb5e0', 69, N'4ef1b10c-b820-0a37-acf2-b9a4371a841b', N'7369', NULL, CAST(0x0000A2E300B687D0 AS DateTime), N'Create user profile on EWS and TMS', N'MA43656', NULL, 313004, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43656', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'User Profile on VOIP - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 271648)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4497, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.c7287b3d9d764b53afb57042798e3d5a', 67, N'b9ad687f-e786-4672-6015-b9b69980a062', N'5352', NULL, CAST(0x0000A2E300B68737 AS DateTime), N'Create Access for New User', N'PA43649', NULL, 313005, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'PA43649', 253667, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'P7 ', 271648)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5213, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'3a8e7474-d1bf-de1b-fbf1-defe91b23c70', N'4498', NULL, CAST(0x0000A2F400C74949 AS DateTime), N'TEST', N'MA49950', NULL, 353890, NULL, NULL, N'MA49950', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate CRM Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5214, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'732febbd-9252-546f-af01-e193108f14d8', N'4438', NULL, CAST(0x0000A2F400C7489D AS DateTime), N'TEST', N'MA49934', NULL, 353894, NULL, NULL, N'MA49934', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'SharePoint Access', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5184, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'dccfdeda-a02f-2d0e-22e6-1ee110601f04', N'4413', NULL, CAST(0x0000A2F400C748FB AS DateTime), N'TEST', N'MA49943', NULL, 353742, NULL, NULL, N'MA49943', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order new Printer', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4498, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.d6b236bc76674767beabd9e60b173dc9', 65, N'98046992-6739-9257-28bf-c362405d3978', N'7363', NULL, CAST(0x0000A2E300B6878F AS DateTime), N'Install all software according to IT Check list onto desktop / laptop', N'MA43653', NULL, 313018, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43653', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Install Machine - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 264206)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4503, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.d6b236bc76674767beabd9e60b173dc9', 65, N'776bbd69-a5cd-154d-7507-e78229f10f1f', N'7381', NULL, CAST(0x0000A2E300B68800 AS DateTime), N'Setup and configure new user''s workstation', N'MA43658', NULL, 313070, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43658', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 5, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'User''s workstation - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 264206)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5185, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'7a0805b6-dfd1-6e8c-fc54-3086b40b5707', N'4505', NULL, CAST(0x0000A2F400C74962 AS DateTime), N'TEST', N'MA49953', NULL, 353747, NULL, NULL, N'MA49953', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate SCSM Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5186, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'4493fc79-c094-df24-eb05-30f21dab7aaa', N'4396', NULL, CAST(0x0000A2F400C74992 AS DateTime), N'TEST', N'MA49957', NULL, 353749, NULL, NULL, N'MA49957', 266375, 0, NULL, NULL, NULL, NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Ready', 9, N'Give access to VIP', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5187, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'03a38198-7bad-7c87-115a-3bb4c24f0d55', N'4507', NULL, CAST(0x0000A2F400C748CB AS DateTime), N'TEST', N'MA49938', NULL, 353760, NULL, NULL, N'MA49938', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 7, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Setup and configure new user''s workstation ', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5188, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'c70a66ea-10ef-cf0f-b7f2-3d6f02b03959', N'4398', NULL, CAST(0x0000A2F400C749A2 AS DateTime), N'TEST', N'MA49958', NULL, 353763, NULL, NULL, N'MA49958', 266375, 0, NULL, NULL, NULL, NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Ready', 9, N'Give access to Pencil Box', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5189, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'197d4488-496c-a15d-15db-4a0964a15ea1', N'4442', NULL, CAST(0x0000A2F400C748B6 AS DateTime), N'TEST', N'MA49936', NULL, 353772, NULL, NULL, N'MA49936', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Update mobility manager', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5191, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'066d9e18-73ca-910e-a502-50f4e022e348', N'4492', NULL, CAST(0x0000A2F400C748BF AS DateTime), NULL, N'RA49937', NULL, 353777, NULL, NULL, N'RA49937', 266375, 0, NULL, NULL, N'TEST', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 5, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.ValidateAndReview', 3, N'ActivityStatusEnum.Ready', 9, N'Allocate SAM Rights to BPA to Authorize P7 form', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5193, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'51151bdf-f0db-6fcd-fd33-5b845cdc0319', N'4411', NULL, CAST(0x0000A2F400C748F3 AS DateTime), N'TEST', N'MA49942', NULL, 353784, NULL, NULL, N'MA49942', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order new Workstation + Cable Lock', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5194, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'593ee3e9-4f35-9ee6-5f16-5e42586dc536', N'4503', NULL, CAST(0x0000A2F400C7495B AS DateTime), N'TEST', N'MA49952', NULL, 353787, NULL, NULL, N'MA49952', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate Alias Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5195, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9a2f615f-5d2d-82f1-07cd-67f5a50e7f1a', N'4501', NULL, CAST(0x0000A2F400C74955 AS DateTime), N'TEST', N'MA49951', NULL, 353793, NULL, NULL, N'MA49951', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate AX Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5196, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'38db0840-0a77-ad5f-3214-6b808244d7a7', N'4496', NULL, CAST(0x0000A2F400C74942 AS DateTime), N'TEST', N'MA49949', NULL, 353801, NULL, NULL, N'MA49949', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate CAMS Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5197, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'1e77f5d8-e247-b98f-3557-7667b399fa07', N'4393', NULL, CAST(0x0000A2F400C74983 AS DateTime), N'TEST', N'MA49956', NULL, 353810, NULL, NULL, N'MA49956', 266375, 0, NULL, NULL, NULL, NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Ready', 9, N'Give access to Pastel', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5198, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'2db66d5b-b86e-fa1b-df97-771dba9db337', N'4431', NULL, CAST(0x0000A2F400C7487B AS DateTime), N'TEST', N'PA49932', NULL, 353811, NULL, NULL, N'PA49932', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Install\Configure New Workstation', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5202, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'81f62900-87b2-8ca5-9eb8-92c82efd58e4', N'5202', NULL, CAST(0x0000A2F400C74922 AS DateTime), NULL, N'RA49946', NULL, 353836, NULL, NULL, N'RA49946', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Review and approve hardware quotes', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5207, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'e38577b1-6b93-8a38-f374-be2db22df0e5', N'4425', NULL, CAST(0x0000A2F400C7490C AS DateTime), N'TEST', N'MA49945', NULL, 353862, NULL, NULL, N'MA49945', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order new Phone hand set', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5184, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'dccfdeda-a02f-2d0e-22e6-1ee110601f04', N'4413', NULL, CAST(0x0000A2F400C748FB AS DateTime), N'TEST', N'MA49943', NULL, 353742, NULL, NULL, N'MA49943', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order new Printer', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5200, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'ac2b7e48-958f-a5c8-517a-8b293803f9a5', N'4387', NULL, CAST(0x0000A2F400C74929 AS DateTime), N'TEST', N'MA49947', NULL, 353826, CAST(0x0000A2F400C9A124 AS DateTime), NULL, N'MA49947', 266375, 0, NULL, NULL, NULL, NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Active', 5, N'Create AD\Email and Network Drivers', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5203, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'608337ee-853e-44e1-875b-99bdbb01d7e3', N'4511', NULL, CAST(0x0000A2F400C748DF AS DateTime), N'Review system access and all needed utilities are availible that the new user is able to work', N'RA49940', N'TEST', 353840, NULL, NULL, N'RA49940', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 9, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Review User', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5205, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'8106c486-7ae4-a03a-6131-a183439507f6', N'4391', NULL, CAST(0x0000A2F400C74977 AS DateTime), N'TEST', N'PA49955: System Access', NULL, 353846, NULL, NULL, N'PA49955', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Ready', 9, N'System Access', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5206, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab', N'4401', NULL, CAST(0x0000A2F400C748EB AS DateTime), N'TEST', N'PA49941: Quote\Order a new workstation ', NULL, 353851, CAST(0x0000A2F400C83C6A AS DateTime), NULL, N'PA49941', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order a new workstation ', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5209, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.4e85a6952ec44d8ab30b7c31d8f37ca7', 63, N'3749b8c3-e141-e59b-d7be-be8e21ef6ed6', N'5957', NULL, CAST(0x0000A2F400C7496B AS DateTime), N'TEST', N'MA49954', NULL, 353865, NULL, NULL, N'MA49954', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 5, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'Enum.c875db4add10499893cc95b7b3776f06', 8, N'ActivityStatusEnum.Ready', 9, N'Allocate Intralink Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5211, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'0f45a989-6459-7f6f-8a86-cdc50992d7f7', N'4509', NULL, CAST(0x0000A2F400C748D6 AS DateTime), N'Update Asset Register
Update Phone CodeList
Update Copire Code List
Update Cable Lock Code List
Update Mobility Manager', N'MA49939', N'TEST', 353877, NULL, NULL, N'MA49939', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 8, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Update Register', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5212, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'24e9420f-1824-fd9b-a7c9-d9aa710ae498', N'4434', NULL, CAST(0x0000A2F400C74888 AS DateTime), N'TEST', N'MA49933', NULL, 353883, NULL, NULL, N'MA49933', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Install Machine', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4474, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.1555428fed3a4dca9835c5e035ef0d4e', 66, N'53c40824-56e3-0416-548c-069975ab9d98', N'7361', NULL, CAST(0x0000A2E300B68773 AS DateTime), N'Get username and password for user from 3rd Parties
Career Junction
PNet', N'MA43652', NULL, 312786, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43652', 253667, 0, NULL, NULL, N'HI
She is loaded under freight (only being paid by Supply Chain)
PNet has been requested
CJ
cpgdbnfcj@communicate.co.zaCPG-Freight Twocdf321cdf655Alita Steenekamp
Bev a call just needs to be loaded for PP access please
Corlien
===
Date (UTC): 3/7/2014 9:50:58 AM User: VPN\cVerheijen
Done
[Completed]', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'3rd Partiy Access - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 256606)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4475, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.c7287b3d9d764b53afb57042798e3d5a', 67, N'd42303ac-84f6-daf8-38ce-0fc7fbbcacae', N'7389', NULL, CAST(0x0000A2E300B68845 AS DateTime), N'Received policy and checklist for relevant IT Technician to file', N'MA43662', NULL, 312799, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43662', 253667, 0, NULL, NULL, N'No Policy Needed
No Checklist Received', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 8, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Policy and Checklist - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 271648)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4478, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.c7287b3d9d764b53afb57042798e3d5a', 67, N'9813dae3-b3cd-8b9d-4bb9-2fe1c1f9acd7', N'7387', NULL, CAST(0x0000A2E300B68836 AS DateTime), N'IT Technician and user go through checklist together and user must sign it off.', N'MA43661', NULL, 312836, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43661', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 7, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'IT check list - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 261199)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5181, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'36ff6ab1-2114-b9f7-e0cb-0283b5bd44de', N'4416', NULL, CAST(0x0000A2F400C74903 AS DateTime), N'TEST', N'MA49944', NULL, 353726, NULL, NULL, N'MA49944', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order new 3G card', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5182, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'879c1960-e170-f734-5777-034deb61ab2c', N'4494', NULL, CAST(0x0000A2F400C74936 AS DateTime), N'TEST', N'PA49948', NULL, 353727, NULL, NULL, N'PA49948', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 6, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Give System Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5183, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'f89548a6-5aed-a12e-7c76-11f19eeaeaab', N'4440', NULL, CAST(0x0000A2F400C748AC AS DateTime), N'TEST', N'MA49935', NULL, 353734, NULL, NULL, N'MA49935', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Update Registery', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4480, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.2a771d5a8e604a828d29ae23afee5e57', 74, N'ddd199d4-c783-48b6-4b09-457f0c2218ed', N'7371', NULL, CAST(0x0000A2E300B687EE AS DateTime), N'Create Active Directory Account / Email', N'MA43657', NULL, 312860, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43657', 253667, 0, NULL, NULL, N'done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 4, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Create AD\Email - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 254367)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4483, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.6c1efaf700b54ba4a19333b5b3bf77b0', 73, N'1b9cb0f9-61c1-849c-4b64-655ab355bf9f', N'5356', NULL, CAST(0x0000A2E300B68763 AS DateTime), N'Create Username and Password for user on relevant database', N'MA43651', NULL, 312904, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43651', 253667, 0, NULL, NULL, N'Done
===
Date (UTC): 3/7/2014 9:50:57 AM User: VPN\cVerheijen
Done
[Completed]', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Placement Partner Access - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 256606)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4484, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.d6b236bc76674767beabd9e60b173dc9', 65, N'0dd54c79-a0e1-7cd8-f891-679b53576f89', N'7383', NULL, CAST(0x0000A2E300B6880E AS DateTime), NULL, N'MA43659', NULL, 312905, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43659', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 6, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Setup VOIP phone at branch - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 261199)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4493, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.c7287b3d9d764b53afb57042798e3d5a', 67, N'dde389fd-2d86-4208-a163-9f4f0137a1a7', N'7391', NULL, CAST(0x0000A2E300B68863 AS DateTime), N'Update Pastel with relevant Assets', N'MA43663', NULL, 312970, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43663', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 9, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Update Pastel - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 271648)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4496, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.d5c2fc1d19034036ac618f18161cb5e0', 69, N'4ef1b10c-b820-0a37-acf2-b9a4371a841b', N'7369', NULL, CAST(0x0000A2E300B687D0 AS DateTime), N'Create user profile on EWS and TMS', N'MA43656', NULL, 313004, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43656', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'User Profile on VOIP - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 271648)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4497, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.c7287b3d9d764b53afb57042798e3d5a', 67, N'b9ad687f-e786-4672-6015-b9b69980a062', N'5352', NULL, CAST(0x0000A2E300B68737 AS DateTime), N'Create Access for New User', N'PA43649', NULL, 313005, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'PA43649', 253667, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'P7 ', 271648)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4498, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.d6b236bc76674767beabd9e60b173dc9', 65, N'98046992-6739-9257-28bf-c362405d3978', N'7363', NULL, CAST(0x0000A2E300B6878F AS DateTime), N'Install all software according to IT Check list onto desktop / laptop', N'MA43653', NULL, 313018, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43653', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'Install Machine - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 264206)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4503, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.d6b236bc76674767beabd9e60b173dc9', 65, N'776bbd69-a5cd-154d-7507-e78229f10f1f', N'7381', NULL, CAST(0x0000A2E300B68800 AS DateTime), N'Setup and configure new user''s workstation', N'MA43658', NULL, 313070, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43658', 253667, 0, NULL, NULL, N'Done', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 5, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'User''s workstation - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 264206)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5185, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'7a0805b6-dfd1-6e8c-fc54-3086b40b5707', N'4505', NULL, CAST(0x0000A2F400C74962 AS DateTime), N'TEST', N'MA49953', NULL, 353747, NULL, NULL, N'MA49953', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate SCSM Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5186, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'4493fc79-c094-df24-eb05-30f21dab7aaa', N'4396', NULL, CAST(0x0000A2F400C74992 AS DateTime), N'TEST', N'MA49957', NULL, 353749, NULL, NULL, N'MA49957', 266375, 0, NULL, NULL, NULL, NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Ready', 9, N'Give access to VIP', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5187, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'03a38198-7bad-7c87-115a-3bb4c24f0d55', N'4507', NULL, CAST(0x0000A2F400C748CB AS DateTime), N'TEST', N'MA49938', NULL, 353760, NULL, NULL, N'MA49938', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 7, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Setup and configure new user''s workstation ', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5188, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'c70a66ea-10ef-cf0f-b7f2-3d6f02b03959', N'4398', NULL, CAST(0x0000A2F400C749A2 AS DateTime), N'TEST', N'MA49958', NULL, 353763, NULL, NULL, N'MA49958', 266375, 0, NULL, NULL, NULL, NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Ready', 9, N'Give access to Pencil Box', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5189, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'197d4488-496c-a15d-15db-4a0964a15ea1', N'4442', NULL, CAST(0x0000A2F400C748B6 AS DateTime), N'TEST', N'MA49936', NULL, 353772, NULL, NULL, N'MA49936', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Update mobility manager', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5191, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'066d9e18-73ca-910e-a502-50f4e022e348', N'4492', NULL, CAST(0x0000A2F400C748BF AS DateTime), NULL, N'RA49937', NULL, 353777, NULL, NULL, N'RA49937', 266375, 0, NULL, NULL, N'TEST', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 5, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.ValidateAndReview', 3, N'ActivityStatusEnum.Ready', 9, N'Allocate SAM Rights to BPA to Authorize P7 form', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5193, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'51151bdf-f0db-6fcd-fd33-5b845cdc0319', N'4411', NULL, CAST(0x0000A2F400C748F3 AS DateTime), N'TEST', N'MA49942', NULL, 353784, NULL, NULL, N'MA49942', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order new Workstation + Cable Lock', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5194, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'593ee3e9-4f35-9ee6-5f16-5e42586dc536', N'4503', NULL, CAST(0x0000A2F400C7495B AS DateTime), N'TEST', N'MA49952', NULL, 353787, NULL, NULL, N'MA49952', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate Alias Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5195, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'9a2f615f-5d2d-82f1-07cd-67f5a50e7f1a', N'4501', NULL, CAST(0x0000A2F400C74955 AS DateTime), N'TEST', N'MA49951', NULL, 353793, NULL, NULL, N'MA49951', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate AX Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5196, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'38db0840-0a77-ad5f-3214-6b808244d7a7', N'4496', NULL, CAST(0x0000A2F400C74942 AS DateTime), N'TEST', N'MA49949', NULL, 353801, NULL, NULL, N'MA49949', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate CAMS Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5183, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'f89548a6-5aed-a12e-7c76-11f19eeaeaab', N'4440', NULL, CAST(0x0000A2F400C748AC AS DateTime), N'TEST', N'MA49935', NULL, 353734, NULL, NULL, N'MA49935', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Update Registery', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5197, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'1e77f5d8-e247-b98f-3557-7667b399fa07', N'4393', NULL, CAST(0x0000A2F400C74983 AS DateTime), N'TEST', N'MA49956', NULL, 353810, NULL, NULL, N'MA49956', 266375, 0, NULL, NULL, NULL, NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Ready', 9, N'Give access to Pastel', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5198, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'2db66d5b-b86e-fa1b-df97-771dba9db337', N'4431', NULL, CAST(0x0000A2F400C7487B AS DateTime), N'TEST', N'PA49932', NULL, 353811, NULL, NULL, N'PA49932', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Install\Configure New Workstation', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5200, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'ac2b7e48-958f-a5c8-517a-8b293803f9a5', N'4387', NULL, CAST(0x0000A2F400C74929 AS DateTime), N'TEST', N'MA49947', NULL, 353826, CAST(0x0000A2F400C9A124 AS DateTime), NULL, N'MA49947', 266375, 0, NULL, NULL, NULL, NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Active', 5, N'Create AD\Email and Network Drivers', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5202, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'81f62900-87b2-8ca5-9eb8-92c82efd58e4', N'5202', NULL, CAST(0x0000A2F400C74922 AS DateTime), NULL, N'RA49946', NULL, 353836, NULL, NULL, N'RA49946', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Review and approve hardware quotes', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5203, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'608337ee-853e-44e1-875b-99bdbb01d7e3', N'4511', NULL, CAST(0x0000A2F400C748DF AS DateTime), N'Review system access and all needed utilities are availible that the new user is able to work', N'RA49940', N'TEST', 353840, NULL, NULL, N'RA49940', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 9, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Review User', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5207, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'e38577b1-6b93-8a38-f374-be2db22df0e5', N'4425', NULL, CAST(0x0000A2F400C7490C AS DateTime), N'TEST', N'MA49945', NULL, 353862, NULL, NULL, N'MA49945', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order new Phone hand set', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5213, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'3a8e7474-d1bf-de1b-fbf1-defe91b23c70', N'4498', NULL, CAST(0x0000A2F400C74949 AS DateTime), N'TEST', N'MA49950', NULL, 353890, NULL, NULL, N'MA49950', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Allocate CRM Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5214, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'732febbd-9252-546f-af01-e193108f14d8', N'4438', NULL, CAST(0x0000A2F400C7489D AS DateTime), N'TEST', N'MA49934', NULL, 353894, NULL, NULL, N'MA49934', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'SharePoint Access', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5205, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'8106c486-7ae4-a03a-6131-a183439507f6', N'4391', NULL, CAST(0x0000A2F400C74977 AS DateTime), N'TEST', N'PA49955: System Access', NULL, 353846, NULL, NULL, N'PA49955', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Ready', 9, N'System Access', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5206, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab', N'4401', NULL, CAST(0x0000A2F400C748EB AS DateTime), N'TEST', N'PA49941: Quote\Order a new workstation ', NULL, 353851, CAST(0x0000A2F400C83C6A AS DateTime), NULL, N'PA49941', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order a new workstation ', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5209, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.4e85a6952ec44d8ab30b7c31d8f37ca7', 63, N'3749b8c3-e141-e59b-d7be-be8e21ef6ed6', N'5957', NULL, CAST(0x0000A2F400C7496B AS DateTime), N'TEST', N'MA49954', NULL, 353865, NULL, NULL, N'MA49954', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 5, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'Enum.c875db4add10499893cc95b7b3776f06', 8, N'ActivityStatusEnum.Ready', 9, N'Allocate Intralink Rights', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5211, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'0f45a989-6459-7f6f-8a86-cdc50992d7f7', N'4509', NULL, CAST(0x0000A2F400C748D6 AS DateTime), N'Update Asset Register
Update Phone CodeList
Update Copire Code List
Update Cable Lock Code List
Update Mobility Manager', N'MA49939', N'TEST', 353877, NULL, NULL, N'MA49939', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 8, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Update Register', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5212, NULL, NULL, NULL, NULL, NULL, NULL, N'ActivityAreaEnum.Infrastructure', 6, N'24e9420f-1824-fd9b-a7c9-d9aa710ae498', N'4434', NULL, CAST(0x0000A2F400C74888 AS DateTime), N'TEST', N'MA49933', NULL, 353883, NULL, NULL, N'MA49933', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Install Machine', 0)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (4474, NULL, NULL, NULL, NULL, NULL, NULL, N'Enum.1555428fed3a4dca9835c5e035ef0d4e', 66, N'53c40824-56e3-0416-548c-069975ab9d98', N'7361', NULL, CAST(0x0000A2E300B68773 AS DateTime), N'Get username and password for user from 3rd Parties
Career Junction
PNet', N'MA43652', NULL, 312786, CAST(0x0000A2E300BA6AA3 AS DateTime), NULL, N'MA43652', 253667, 0, NULL, NULL, N'HI
She is loaded under freight (only being paid by Supply Chain)
PNet has been requested
CJ
cpgdbnfcj@communicate.co.zaCPG-Freight Twocdf321cdf655Alita Steenekamp
Bev a call just needs to be loaded for PP access please
Corlien
===
Date (UTC): 3/7/2014 9:50:58 AM User: VPN\cVerheijen
Done
[Completed]', NULL, NULL, N'ActivityPriorityEnum.Medium', 3, NULL, NULL, NULL, NULL, NULL, 1, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'ActivityStageEnum.Initiate', 5, N'ActivityStatusEnum.Completed', 2, N'3rd Partiy Access - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 256606)
INSERT [dbo].[ActivityDimvw] ([ActivityDimKey], [ActualCost], [ActualDowntimeEndDate], [ActualDowntimeStartDate], [ActualEndDate], [ActualStartDate], [ActualWork], [Area], [Area_ActivityAreaId], [BaseManagedEntityId], [ChildId], [ContactMethod], [CreatedDate], [Description], [DisplayName], [Documentation], [EntityDimKey], [FirstAssignedDate], [FirstResponseDate], [Id], [InsertedBatchId], [IsDeleted], [IsDowntime], [IsParent], [Notes], [PlannedCost], [PlannedWork], [Priority], [Priority_ActivityPriorityId], [RequiredBy], [ScheduledDowntimeEndDate], [ScheduledDowntimeStartDate], [ScheduledEndDate], [ScheduledStartDate], [SequenceId], [Skip], [SourceId], [Stage], [Stage_ActivityStageId], [Status], [Status_ActivityStatusId], [Title], [UpdatedBatchId]) VALUES (5181, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'36ff6ab1-2114-b9f7-e0cb-0283b5bd44de', N'4416', NULL, CAST(0x0000A2F400C74903 AS DateTime), N'TEST', N'MA49944', NULL, 353726, NULL, NULL, N'MA49944', 266375, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', NULL, NULL, N'ActivityStatusEnum.Ready', 9, N'Quote\Order new 3G card', 0)
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43658', 5, N'User''s workstation - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'776bbd69-a5cd-154d-7507-e78229f10f1f', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43659', 6, N'Setup VOIP phone at branch - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'0dd54c79-a0e1-7cd8-f891-679b53576f89', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43661', 7, N'IT check list - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'9813dae3-b3cd-8b9d-4bb9-2fe1c1f9acd7', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43662', 8, N'Policy and Checklist - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'd42303ac-84f6-daf8-38ce-0fc7fbbcacae', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43663', 9, N'Update Pastel - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'dde389fd-2d86-4208-a163-9f4f0137a1a7', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49933', 0, N'Install Machine', N'PA49932', N'24e9420f-1824-fd9b-a7c9-d9aa710ae498', N'2db66d5b-b86e-fa1b-df97-771dba9db337')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49934', 1, N'SharePoint Access', N'PA49932', N'732febbd-9252-546f-af01-e193108f14d8', N'2db66d5b-b86e-fa1b-df97-771dba9db337')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49935', 2, N'Update Registery', N'PA49932', N'f89548a6-5aed-a12e-7c76-11f19eeaeaab', N'2db66d5b-b86e-fa1b-df97-771dba9db337')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49936', 3, N'Update mobility manager', N'PA49932', N'197d4488-496c-a15d-15db-4a0964a15ea1', N'2db66d5b-b86e-fa1b-df97-771dba9db337')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49938', 7, N'Setup and configure new user''s workstation ', N'SR49931', N'03a38198-7bad-7c87-115a-3bb4c24f0d55', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49939', 8, N'Update Register', N'SR49931', N'0f45a989-6459-7f6f-8a86-cdc50992d7f7', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49942', 0, N'Quote\Order new Workstation + Cable Lock', N'PA49941', N'51151bdf-f0db-6fcd-fd33-5b845cdc0319', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49943', 1, N'Quote\Order new Printer', N'PA49941', N'dccfdeda-a02f-2d0e-22e6-1ee110601f04', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49944', 2, N'Quote\Order new 3G card', N'PA49941', N'36ff6ab1-2114-b9f7-e0cb-0283b5bd44de', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49945', 3, N'Quote\Order new Phone hand set', N'PA49941', N'e38577b1-6b93-8a38-f374-be2db22df0e5', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49947', 0, N'Create AD\Email and Network Drivers', N'SR49931', N'ac2b7e48-958f-a5c8-517a-8b293803f9a5', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49949', 0, N'Allocate CAMS Rights', N'PA49948', N'38db0840-0a77-ad5f-3214-6b808244d7a7', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49950', 1, N'Allocate CRM Rights', N'PA49948', N'3a8e7474-d1bf-de1b-fbf1-defe91b23c70', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49951', 2, N'Allocate AX Rights', N'PA49948', N'9a2f615f-5d2d-82f1-07cd-67f5a50e7f1a', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49952', 3, N'Allocate Alias Rights', N'PA49948', N'593ee3e9-4f35-9ee6-5f16-5e42586dc536', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49953', 4, N'Allocate SCSM Rights', N'PA49948', N'7a0805b6-dfd1-6e8c-fc54-3086b40b5707', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49954', 5, N'Allocate Intralink Rights', N'PA49948', N'3749b8c3-e141-e59b-d7be-be8e21ef6ed6', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49956', 0, N'Give access to Pastel', N'PA49955', N'1e77f5d8-e247-b98f-3557-7667b399fa07', N'8106c486-7ae4-a03a-6131-a183439507f6')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49957', 1, N'Give access to VIP', N'PA49955', N'4493fc79-c094-df24-eb05-30f21dab7aaa', N'8106c486-7ae4-a03a-6131-a183439507f6')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49958', 2, N'Give access to Pencil Box', N'PA49955', N'c70a66ea-10ef-cf0f-b7f2-3d6f02b03959', N'8106c486-7ae4-a03a-6131-a183439507f6')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA43649', 0, N'P7 ', N'SR43648', N'b9ad687f-e786-4672-6015-b9b69980a062', N'cab21c72-75f6-c0ea-43d1-f9f3ead888d3')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA49932', 4, N'Install\Configure New Workstation', N'SR49931', N'2db66d5b-b86e-fa1b-df97-771dba9db337', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA49941', 3, N'Quote\Order a new workstation ', N'SR49931', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA49948', 6, N'Give System Rights', N'SR49931', N'879c1960-e170-f734-5777-034deb61ab2c', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA49955', 1, N'System Access', N'SR49931', N'8106c486-7ae4-a03a-6131-a183439507f6', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'RA49937', 5, N'Allocate SAM Rights to BPA to Authorize P7 form', N'SR49931', N'066d9e18-73ca-910e-a502-50f4e022e348', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'RA49940', 9, N'Review User', N'SR49931', N'608337ee-853e-44e1-875b-99bdbb01d7e3', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'RA49946', 2, N'Review and approve hardware quotes', N'SR49931', N'81f62900-87b2-8ca5-9eb8-92c82efd58e4', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43651', 0, N'Placement Partner Access - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'1b9cb0f9-61c1-849c-4b64-655ab355bf9f', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43652', 1, N'3rd Partiy Access - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'53c40824-56e3-0416-548c-069975ab9d98', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43653', 2, N'Install Machine - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'98046992-6739-9257-28bf-c362405d3978', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43656', 3, N'User Profile on VOIP - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'4ef1b10c-b820-0a37-acf2-b9a4371a841b', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43657', 4, N'Create AD\Email - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'ddd199d4-c783-48b6-4b09-457f0c2218ed', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43658', 5, N'User''s workstation - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'776bbd69-a5cd-154d-7507-e78229f10f1f', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43659', 6, N'Setup VOIP phone at branch - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'0dd54c79-a0e1-7cd8-f891-679b53576f89', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43661', 7, N'IT check list - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'9813dae3-b3cd-8b9d-4bb9-2fe1c1f9acd7', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43662', 8, N'Policy and Checklist - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'd42303ac-84f6-daf8-38ce-0fc7fbbcacae', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43663', 9, N'Update Pastel - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'dde389fd-2d86-4208-a163-9f4f0137a1a7', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49933', 0, N'Install Machine', N'PA49932', N'24e9420f-1824-fd9b-a7c9-d9aa710ae498', N'2db66d5b-b86e-fa1b-df97-771dba9db337')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49934', 1, N'SharePoint Access', N'PA49932', N'732febbd-9252-546f-af01-e193108f14d8', N'2db66d5b-b86e-fa1b-df97-771dba9db337')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49935', 2, N'Update Registery', N'PA49932', N'f89548a6-5aed-a12e-7c76-11f19eeaeaab', N'2db66d5b-b86e-fa1b-df97-771dba9db337')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49936', 3, N'Update mobility manager', N'PA49932', N'197d4488-496c-a15d-15db-4a0964a15ea1', N'2db66d5b-b86e-fa1b-df97-771dba9db337')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49938', 7, N'Setup and configure new user''s workstation ', N'SR49931', N'03a38198-7bad-7c87-115a-3bb4c24f0d55', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49939', 8, N'Update Register', N'SR49931', N'0f45a989-6459-7f6f-8a86-cdc50992d7f7', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49942', 0, N'Quote\Order new Workstation + Cable Lock', N'PA49941', N'51151bdf-f0db-6fcd-fd33-5b845cdc0319', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49943', 1, N'Quote\Order new Printer', N'PA49941', N'dccfdeda-a02f-2d0e-22e6-1ee110601f04', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49944', 2, N'Quote\Order new 3G card', N'PA49941', N'36ff6ab1-2114-b9f7-e0cb-0283b5bd44de', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49945', 3, N'Quote\Order new Phone hand set', N'PA49941', N'e38577b1-6b93-8a38-f374-be2db22df0e5', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49947', 0, N'Create AD\Email and Network Drivers', N'SR49931', N'ac2b7e48-958f-a5c8-517a-8b293803f9a5', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49949', 0, N'Allocate CAMS Rights', N'PA49948', N'38db0840-0a77-ad5f-3214-6b808244d7a7', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49950', 1, N'Allocate CRM Rights', N'PA49948', N'3a8e7474-d1bf-de1b-fbf1-defe91b23c70', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49951', 2, N'Allocate AX Rights', N'PA49948', N'9a2f615f-5d2d-82f1-07cd-67f5a50e7f1a', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49952', 3, N'Allocate Alias Rights', N'PA49948', N'593ee3e9-4f35-9ee6-5f16-5e42586dc536', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49953', 4, N'Allocate SCSM Rights', N'PA49948', N'7a0805b6-dfd1-6e8c-fc54-3086b40b5707', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49954', 5, N'Allocate Intralink Rights', N'PA49948', N'3749b8c3-e141-e59b-d7be-be8e21ef6ed6', N'879c1960-e170-f734-5777-034deb61ab2c')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49956', 0, N'Give access to Pastel', N'PA49955', N'1e77f5d8-e247-b98f-3557-7667b399fa07', N'8106c486-7ae4-a03a-6131-a183439507f6')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49957', 1, N'Give access to VIP', N'PA49955', N'4493fc79-c094-df24-eb05-30f21dab7aaa', N'8106c486-7ae4-a03a-6131-a183439507f6')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA49958', 2, N'Give access to Pencil Box', N'PA49955', N'c70a66ea-10ef-cf0f-b7f2-3d6f02b03959', N'8106c486-7ae4-a03a-6131-a183439507f6')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA43649', 0, N'P7 ', N'SR43648', N'b9ad687f-e786-4672-6015-b9b69980a062', N'cab21c72-75f6-c0ea-43d1-f9f3ead888d3')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA49932', 4, N'Install\Configure New Workstation', N'SR49931', N'2db66d5b-b86e-fa1b-df97-771dba9db337', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA49941', 3, N'Quote\Order a new workstation ', N'SR49931', N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA49948', 6, N'Give System Rights', N'SR49931', N'879c1960-e170-f734-5777-034deb61ab2c', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'PA49955', 1, N'System Access', N'SR49931', N'8106c486-7ae4-a03a-6131-a183439507f6', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'RA49937', 5, N'Allocate SAM Rights to BPA to Authorize P7 form', N'SR49931', N'066d9e18-73ca-910e-a502-50f4e022e348', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'RA49940', 9, N'Review User', N'SR49931', N'608337ee-853e-44e1-875b-99bdbb01d7e3', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'RA49946', 2, N'Review and approve hardware quotes', N'SR49931', N'81f62900-87b2-8ca5-9eb8-92c82efd58e4', N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43651', 0, N'Placement Partner Access - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'1b9cb0f9-61c1-849c-4b64-655ab355bf9f', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43652', 1, N'3rd Partiy Access - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'53c40824-56e3-0416-548c-069975ab9d98', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43653', 2, N'Install Machine - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'98046992-6739-9257-28bf-c362405d3978', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43656', 3, N'User Profile on VOIP - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'4ef1b10c-b820-0a37-acf2-b9a4371a841b', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[RelationshipView] ([ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], [TargetEntityId], [SourceEntityId]) VALUES (N'MA43657', 4, N'Create AD\Email - P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', N'PA43649', N'ddd199d4-c783-48b6-4b09-457f0c2218ed', N'b9ad687f-e786-4672-6015-b9b69980a062')
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4474, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4475, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4478, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4480, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4483, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4484, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4493, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4496, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4498, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4503, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4497, 28386)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5185, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5194, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5195, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5196, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5209, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5213, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5182, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5187, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5191, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5198, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5200, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5202, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5203, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5205, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5206, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5211, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5183, 33210)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5189, 33210)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5212, 33210)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5214, 33210)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5186, 33221)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5188, 33221)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5197, 33221)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5181, 33223)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5184, 33223)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5193, 33223)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5207, 33223)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4474, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4475, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4478, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4480, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4483, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4484, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4493, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4496, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4498, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4503, 28376)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2E300BA1638 AS DateTime), 20140303, NULL, 253667, 0, 4497, 28386)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5185, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5194, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5195, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5196, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5209, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5213, 33183)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5182, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5187, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5191, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5198, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5200, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5202, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5203, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5205, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5206, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5211, 33205)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5183, 33210)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5189, 33210)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5212, 33210)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5214, 33210)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5186, 33221)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5188, 33221)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5197, 33221)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5181, 33223)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5184, 33223)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5193, 33223)
INSERT [dbo].[WorkItemContainsActivityFactvw] ([CreatedDate], [DateKey], [DeletedDate], [InsertedBatchId], [UpdatedBatchId], [WorkItemContainsActivity_ActivityDimKey], [WorkItemDimKey]) VALUES (CAST(0x0000A2F400C7F52E AS DateTime), 20140320, NULL, 266375, 0, 5207, 33223)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'00000000-0000-0000-0000-000000000000', NULL, NULL, NULL, 0, NULL, N'00000000-0000-0000-0000-000000000000', NULL, 0, 0)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'b9ad687f-e786-4672-6015-b9b69980a062', CAST(0x0000A2E300B68737 AS DateTime), 313005, N'PA43649', 253667, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'P7 ', 271648, 28376)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'cab21c72-75f6-c0ea-43d1-f9f3ead888d3', CAST(0x0000A2E300B6872D AS DateTime), 313089, N'SR43648', 253667, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 271648, 28386)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'879c1960-e170-f734-5777-034deb61ab2c', CAST(0x0000A2F400C74936 AS DateTime), 353727, N'PA49948', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'Give System Rights', 0, 33183)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5', CAST(0x0000A2F400C7486C AS DateTime), 353797, N'SR49931', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'TESTING ', 0, 33205)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'2db66d5b-b86e-fa1b-df97-771dba9db337', CAST(0x0000A2F400C7487B AS DateTime), 353811, N'PA49932', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'Install\Configure New Workstation', 0, 33210)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'8106c486-7ae4-a03a-6131-a183439507f6', CAST(0x0000A2F400C74977 AS DateTime), 353846, N'PA49955', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'System Access', 0, 33221)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab', CAST(0x0000A2F400C748EB AS DateTime), 353851, N'PA49941', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'Quote\Order a new workstation ', 0, 33223)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'00000000-0000-0000-0000-000000000000', NULL, NULL, NULL, 0, NULL, N'00000000-0000-0000-0000-000000000000', NULL, 0, 0)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'b9ad687f-e786-4672-6015-b9b69980a062', CAST(0x0000A2E300B68737 AS DateTime), 313005, N'PA43649', 253667, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'P7 ', 271648, 28376)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'cab21c72-75f6-c0ea-43d1-f9f3ead888d3', CAST(0x0000A2E300B6872D AS DateTime), 313089, N'SR43648', 253667, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'P7 New Employee - Alita Steenekamp - Start Date 03 03 2014 (Takeover Desktop)', 271648, 28386)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'879c1960-e170-f734-5777-034deb61ab2c', CAST(0x0000A2F400C74936 AS DateTime), 353727, N'PA49948', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'Give System Rights', 0, 33183)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'c8fbe8bf-21f4-5e22-ff77-69354e1d89b5', CAST(0x0000A2F400C7486C AS DateTime), 353797, N'SR49931', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'TESTING ', 0, 33205)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'2db66d5b-b86e-fa1b-df97-771dba9db337', CAST(0x0000A2F400C7487B AS DateTime), 353811, N'PA49932', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'Install\Configure New Workstation', 0, 33210)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'8106c486-7ae4-a03a-6131-a183439507f6', CAST(0x0000A2F400C74977 AS DateTime), 353846, N'PA49955', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'System Access', 0, 33221)
INSERT [dbo].[WorkItemDimvw] ([BaseManagedEntityId], [CreatedDate], [EntityDimKey], [Id], [InsertedBatchId], [IsDeleted], [SourceId], [Title], [UpdatedBatchId], [WorkItemDimKey]) VALUES (N'fb6ad688-9a09-c313-9fa9-aa86ee3c17ab', CAST(0x0000A2F400C748EB AS DateTime), 353851, N'PA49941', 266375, 0, N'786faba5-2877-8cf4-d759-4b9d94ca9739', N'Quote\Order a new workstation ', 0, 33223)
March 30, 2014 at 7:11 am
Pet peeve, you didn't bother to fix the inconsistency between Lvl and lvl.
March 30, 2014 at 8:29 am
And now for something completely different (Please note I did have to put in a COLLATE clause to make the code work in my Sandbox database, so take it out and give it a try without it in the code on your system. Also, I changed the procedures input parameter to NVARCHAR(4000) so I could use the dbo.DelimitedSplitN4K itvf in the stored procedure.):
/****** Object: UserDefinedFunction [dbo].[DelimitedSplitN4K] Script Date: 3/30/2014 18:52:45 ******/
IF OBJECT_ID('dbo.DelimitedSplitN4K') is not null
DROP FUNCTION [dbo].[DelimitedSplitN4K]
GO
/****** Object: UserDefinedFunction [dbo].[DelimitedSplitN4K] Script Date: 3/30/2014 18:52:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[DelimitedSplitN4K]
/**********************************************************************************************************************
Purpose:
Split a given string at a given delimiter and return a list of the split elements (items).
Notes:
1. Leading a trailing delimiters are treated as if an empty string element were present.
2. Consecutive delimiters are treated as if an empty string element were present between them.
3. Except when spaces are used as a delimiter, all spaces present in each element are preserved.
Returns:
iTVF containing the following:
ItemNumber = Element position of Item as a BIGINT (not converted to INT to eliminate a CAST)
Item = Element value as a VARCHAR(8000)
Statistics on this function may be found at the following URL:
http://www.sqlservercentral.com/Forums/Topic1101315-203-4.aspx
CROSS APPLY Usage Examples and Tests:
--=====================================================================================================================
-- TEST 1:
-- This tests for various possible conditions in a string using a comma as the delimiter. The expected results are
-- laid out in the comments
--=====================================================================================================================
--===== Conditionally drop the test tables to make reruns easier for testing.
-- (this is NOT a part of the solution)
IF OBJECT_ID('tempdb..#JBMTest') IS NOT NULL DROP TABLE #JBMTest
;
--===== Create and populate a test table on the fly (this is NOT a part of the solution).
-- In the following comments, "b" is a blank and "E" is an element in the left to right order.
-- Double Quotes are used to encapsulate the output of "Item" so that you can see that all blanks
-- are preserved no matter where they may appear.
SELECT *
INTO #JBMTest
FROM ( --# & type of Return Row(s)
SELECT 0, NULL UNION ALL --1 NULL
SELECT 1, SPACE(0) UNION ALL --1 b (Empty String)
SELECT 2, SPACE(1) UNION ALL --1 b (1 space)
SELECT 3, SPACE(5) UNION ALL --1 b (5 spaces)
SELECT 4, ',' UNION ALL --2 b b (both are empty strings)
SELECT 5, '55555' UNION ALL --1 E
SELECT 6, ',55555' UNION ALL --2 b E
SELECT 7, ',55555,' UNION ALL --3 b E b
SELECT 8, '55555,' UNION ALL --2 b B
SELECT 9, '55555,1' UNION ALL --2 E E
SELECT 10, '1,55555' UNION ALL --2 E E
SELECT 11, '55555,4444,333,22,1' UNION ALL --5 E E E E E
SELECT 12, '55555,4444,,333,22,1' UNION ALL --6 E E b E E E
SELECT 13, ',55555,4444,,333,22,1,' UNION ALL --8 b E E b E E E b
SELECT 14, ',55555,4444,,,333,22,1,' UNION ALL --9 b E E b b E E E b
SELECT 15, ' 4444,55555 ' UNION ALL --2 E (w/Leading Space) E (w/Trailing Space)
SELECT 16, 'This,is,a,test.' --E E E E
) d (SomeID, SomeValue)
;
--===== Split the CSV column for the whole table using CROSS APPLY (this is the solution)
SELECT test.SomeID, test.SomeValue, split.ItemNumber, Item = QUOTENAME(split.Item,'"')
FROM #JBMTest test
CROSS APPLY dbo.DelimitedSplit8K(test.SomeValue,',') split
;
--=====================================================================================================================
-- TEST 2:
-- This tests for various "alpha" splits and COLLATION using all ASCII characters from 0 to 255 as a delimiter against
-- a given string. Note that not all of the delimiters will be visible and some will show up as tiny squares because
-- they are "control" characters. More specifically, this test will show you what happens to various non-accented
-- letters for your given collation depending on the delimiter you chose.
--=====================================================================================================================
WITH
cteBuildAllCharacters (String,Delimiter) AS
(
SELECT TOP 256
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
CHAR(ROW_NUMBER() OVER (ORDER BY (SELECT NULL))-1)
FROM master.sys.all_columns
)
SELECT ASCII_Value = ASCII(c.Delimiter), c.Delimiter, split.ItemNumber, Item = QUOTENAME(split.Item,'"')
FROM cteBuildAllCharacters c
CROSS APPLY dbo.DelimitedSplit8K(c.String,c.Delimiter) split
ORDER BY ASCII_Value, split.ItemNumber
;
-----------------------------------------------------------------------------------------------------------------------
Other Notes:
1. Optimized for VARCHAR(8000) or less. No testing or error reporting for truncation at 8000 characters is done.
2. Optimized for single character delimiter. Multi-character delimiters should be resolvedexternally from this
function.
3. Optimized for use with CROSS APPLY.
4. Does not "trim" elements just in case leading or trailing blanks are intended.
5. If you don't know how a Tally table can be used to replace loops, please see the following...
http://www.sqlservercentral.com/articles/T-SQL/62867/
6. Changing this function to use NVARCHAR(MAX) will cause it to run twice as slow. It's just the nature of
VARCHAR(MAX) whether it fits in-row or not.
7. Multi-machine testing for the method of using UNPIVOT instead of 10 SELECT/UNION ALLs shows that the UNPIVOT method
is quite machine dependent and can slow things down quite a bit.
-----------------------------------------------------------------------------------------------------------------------
Credits:
This code is the product of many people's efforts including but not limited to the following:
cteTally concept originally by Iztek Ben Gan and "decimalized" by Lynn Pettis (and others) for a bit of extra speed
and finally redacted by Jeff Moden for a different slant on readability and compactness. Hat's off to Paul White for
his simple explanations of CROSS APPLY and for his detailed testing efforts. Last but not least, thanks to
Ron "BitBucket" McCullough and Wayne Sheffield for their extreme performance testing across multiple machines and
versions of SQL Server. The latest improvement brought an additional 15-20% improvement over Rev 05. Special thanks
to "Nadrek" and "peter-757102" (aka Peter de Heer) for bringing such improvements to light. Nadrek's original
improvement brought about a 10% performance gain and Peter followed that up with the content of Rev 07.
I also thank whoever wrote the first article I ever saw on "numbers tables" which is located at the following URL
and to Adam Machanic for leading me to it many years ago.
-----------------------------------------------------------------------------------------------------------------------
Revision History:
Rev 00 - 20 Jan 2010 - Concept for inline cteTally: Lynn Pettis and others.
Redaction/Implementation: Jeff Moden
- Base 10 redaction and reduction for CTE. (Total rewrite)
Rev 01 - 13 Mar 2010 - Jeff Moden
- Removed one additional concatenation and one subtraction from the SUBSTRING in the SELECT List for that tiny
bit of extra speed.
Rev 02 - 14 Apr 2010 - Jeff Moden
- No code changes. Added CROSS APPLY usage example to the header, some additional credits, and extra
documentation.
Rev 03 - 18 Apr 2010 - Jeff Moden
- No code changes. Added notes 7, 8, and 9 about certain "optimizations" that don't actually work for this
type of function.
Rev 04 - 29 Jun 2010 - Jeff Moden
- Added WITH SCHEMABINDING thanks to a note by Paul White. This prevents an unnecessary "Table Spool" when the
function is used in an UPDATE statement even though the function makes no external references.
Rev 05 - 02 Apr 2011 - Jeff Moden
- Rewritten for extreme performance improvement especially for larger strings approaching the 8K boundary and
for strings that have wider elements. The redaction of this code involved removing ALL concatenation of
delimiters, optimization of the maximum "N" value by using TOP instead of including it in the WHERE clause,
and the reduction of all previous calculations (thanks to the switch to a "zero based" cteTally) to just one
instance of one add and one instance of a subtract. The length calculation for the final element (not
followed by a delimiter) in the string to be split has been greatly simplified by using the ISNULL/NULLIF
combination to determine when the CHARINDEX returned a 0 which indicates there are no more delimiters to be
had or to start with. Depending on the width of the elements, this code is between 4 and 8 times faster on a
single CPU box than the original code especially near the 8K boundary.
- Modified comments to include more sanity checks on the usage example, etc.
- Removed "other" notes 8 and 9 as they were no longer applicable.
Rev 06 - 12 Apr 2011 - Jeff Moden
- Based on a suggestion by Ron "Bitbucket" McCullough, additional test rows were added to the sample code and
the code was changed to encapsulate the output in pipes so that spaces and empty strings could be perceived
in the output. The first "Notes" section was added. Finally, an extra test was added to the comments above.
Rev 07 - 06 May 2011 - Peter de Heer, a further 15-20% performance enhancement has been discovered and incorporated
into this code which also eliminated the need for a "zero" position in the cteTally table.
**********************************************************************************************************************/
--===== Define I/O parameters
(@pString NVARCHAR(4000), @pDelimiter NCHAR(1))
RETURNS TABLE WITH SCHEMABINDING AS
RETURN
--===== "Inline" CTE Driven "Tally Table" produces values from 0 up to 10,000...
-- enough to cover NVARCHAR(4000)
WITH E1(N) AS (
SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL
SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL
SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1
), --10E+1 or 10 rows
E2(N) AS (SELECT 1 FROM E1 a, E1 b), --10E+2 or 100 rows
E4(N) AS (SELECT 1 FROM E2 a, E2 b), --10E+4 or 10,000 rows max
cteTally(N) AS (--==== This provides the "base" CTE and limits the number of rows right up front
-- for both a performance gain and prevention of accidental "overruns"
SELECT TOP (ISNULL(DATALENGTH(@pString),0)) ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) FROM E4
),
cteStart(N1) AS (--==== This returns N+1 (starting position of each "element" just once for each delimiter)
SELECT 1 UNION ALL
SELECT t.N+1 FROM cteTally t WHERE SUBSTRING(@pString,t.N,1) = @pDelimiter
),
cteLen(N1,L1) AS(--==== Return start and length (for use in substring)
SELECT s.N1,
ISNULL(NULLIF(CHARINDEX(@pDelimiter,@pString,s.N1),0)-s.N1,8000)
FROM cteStart s
)
--===== Do the actual split. The ISNULL/NULLIF combo handles the length for the final element when no delimiter is found.
SELECT ItemNumber = ROW_NUMBER() OVER(ORDER BY l.N1),
Item = SUBSTRING(@pString, l.N1, l.L1)
FROM cteLen l;
GO
if object_id('dbo.usp_HierarchyCTE_New') is not null
DROP PROCEDURE dbo.usp_HierarchyCTE_New;
go
CREATE PROCEDURE [dbo].[usp_HierarchyCTE_New] @SRID NVARCHAR(4000)
AS
-- exec usp_HierarchyCTE_New N'SR49931' -- returns 27 records
-- exec usp_HierarchyCTE_New N'SR43648' -- returns 11 records
-- exec usp_HierarchyCTE_New N'SR49931,SR43648' -- should return 38 records, and now does
with BaseData as (
SELECT
ad.Id AS ad_Id
, ad.SequenceId ad_SequenceId
,ad.Title AS ad_Title
,workitem.Id AS workitem_Id
FROM
dbo.ActivityDimvw ad
LEFT JOIN dbo.WorkItemContainsActivityFactvw wicaf
ON wicaf.WorkItemContainsActivity_ActivityDimKey = ad.ActivityDimKey
LEFT JOIN dbo.WorkItemDimvw workitem
ON wicaf.WorkItemDimKey = workitem.WorkItemDimKey
INNER JOIN dbo.RelationshipView RV
ON RV.TargetEntityId = ad.BaseManagedEntityId
AND RV.SourceEntityId = workitem.BaseManagedEntityId
WHERE
workitem.Id IN (select Item collate SQL_Latin1_General_CP1_CI_AS from [dbo].[DelimitedSplitN4K](@SRID,N','))
UNION
-- get everything except the specified SR (everything else is child objects of anchor objects)
SELECT
ad.Id AS ad_Id
,NULL ad_SequenceId
,ad.Title AS ad_Title
,workitem.Id AS workitem_Id
FROM
dbo.ActivityDimvw ad
LEFT JOIN dbo.WorkItemContainsActivityFactvw wicaf
ON wicaf.WorkItemContainsActivity_ActivityDimKey = ad.ActivityDimKey
LEFT JOIN dbo.WorkItemDimvw workitem
ON wicaf.WorkItemDimKey = workitem.WorkItemDimKey
INNER JOIN dbo.RelationshipView RV
ON RV.TargetEntityId = ad.BaseManagedEntityId
AND RV.SourceEntityId = workitem.BaseManagedEntityId
WHERE
workitem.Id NOT IN (select Item collate SQL_Latin1_General_CP1_CI_AS from [dbo].[DelimitedSplitN4K](@SRID,N','))
), rCTE as (
select
ad_Id,
ad_SequenceId,
ad_Title,
workitem_Id,
Lvl = 0,
sortkey = cast(workitem_Id as nvarchar(max)) + N' - ' + cast(ad_SequenceId as nvarchar)
from
BaseData
where
ad_SequenceId is not null
union all
select
s.ad_Id,
r.ad_SequenceId,
s.ad_Title,
s.workitem_Id,
Lvl = Lvl + 1,
sortkey = r.sortkey + N' - ' + cast(s.workitem_Id as nvarchar(max)) + N' - ' + cast(r.ad_SequenceId as nvarchar)
from
BaseData s
inner join rCTE r
on r.ad_Id = s.workitem_Id
)
select
ad_Id,
ad_SequenceId,
ad_Title,
workitem_Id,
Lvl
from rCTE order by sortkey;
go
exec usp_HierarchyCTE_New N'SR49931' -- returns 27 records
exec usp_HierarchyCTE_New N'SR43648' -- returns 11 records
exec usp_HierarchyCTE_New N'SR49931,SR43648' -- should return 38 records, and does
March 31, 2014 at 11:53 am
Hi Lynne, a special thanks - you're a star.
--------------------------------------------------------
I noted the changes you made relating ad_SequenceId with ( --- replaced with above ).
Found that replacing the BaseData () cte with #SUMMARY (temp table) improved the performance of the stored procedure a lot.
I applied my original logic to the stored procedure which you updated to cater for multiple SRID's,
so I could highlight the SRID where (ad_SequenceId = 0 and Lvl = 0), view below:
-----------------------------------------------------------------
ALTER PROC [dbo].[usp_HierarchyCTE2]
@SRIDnvarchar(max)
AS
-- exec usp_HierarchyCTE2 'SR49931'-- returns 27 records
-- exec usp_HierarchyCTE2 'SR43648'-- returns 11 records
-- exec usp_HierarchyCTE2 'SR49931,SR43648'-- does return 38 records
DECLARE @tableID TABLE (value nvarchar(256))
INSERT @tableID (value)
SELECT * FROM dbo.fn_CSVToTableString(ISNULL(@SRID,''))
-- get the specified SR only (lists all the anchor objects)
SELECT distinct
ad.Id AS ad_Id
,ad.SequenceId ad_SequenceId
-- ,CASE WHEN workitem.Id in (@SRID) THEN ad.SequenceId ELSE NULL END AS ad_SequenceId --- replaced with above
,ad.Title AS ad_Title
,workitem.Id AS workitem_Id
INTO #SUMMARY
FROM dbo.ActivityDimvw ad
left JOIN dbo.WorkItemContainsActivityFactvw wicaf ON wicaf.WorkItemContainsActivity_ActivityDimKey = ad.ActivityDimKey
left join dbo.WorkItemDimvw workitem ON wicaf.WorkItemDimKey = workitem.WorkItemDimKey
join dbo.RelationshipView RV ON RV.TargetEntityId = ad.BaseManagedEntityId AND RV.SourceEntityId = workitem.BaseManagedEntityId
Where
((@SRID IS NULL) OR (workitem.Id IN (Select value from @tableID)))
UNION
-- get everything except the specified SR (everything else is child objects of anchor objects)
SELECT distinct
ad.Id AS ad_Id
,NULL ad_SequenceId
-- ,CASE WHEN workitem.Id in (@SRID) THEN ad.SequenceId ELSE NULL END AS ad_SequenceId --- replaced with above
,ad.Title AS ad_Title
,workitem.Id AS workitem_Id
FROM dbo.ActivityDimvw ad
left join dbo.WorkItemContainsActivityFactvw wicaf ON wicaf.WorkItemContainsActivity_ActivityDimKey = ad.ActivityDimKey
left join dbo.WorkItemDimvw workitem ON wicaf.WorkItemDimKey = workitem.WorkItemDimKey
join dbo.RelationshipView RV ON RV.TargetEntityId = ad.BaseManagedEntityId AND RV.SourceEntityId = workitem.BaseManagedEntityId
Where
(workitem.Id NOT LIKE 'CR%' AND workitem.Id NOT LIKE 'IR%' AND workitem.Id NOT LIKE 'SR%')
ORDER BY workitem.Id desc, ad_SequenceId
------------------------------------------------------------------------------------------
;WITH EmpCTE
AS
(
SELECT [ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], Lvl = 0, sortkey = cast(workitem_Id as nvarchar(max)) + N' - ' + cast(ad_SequenceId as nvarchar)
FROM #SUMMARY
where
ad_SequenceId is not NULL
-- [ad_Id] = (SELECT [ad_Id] FROM #SUMMARY WHERE [ad_SequenceId] = 0 and workitem_Id = @SRID) --- replaced with above
UNION ALL
SELECT E.[ad_Id], E.[ad_SequenceId], E.[ad_Title], E.[workitem_Id], Lvl = Lvl + 1, sortkey = M.sortkey + N' - ' + cast(E.workitem_Id as nvarchar(max)) + N' - ' + cast(M.ad_SequenceId as nvarchar)
FROM #SUMMARY AS E
JOIN EmpCTE AS M ON E.[workitem_Id] = M.[ad_Id]
)
----------------------------------------------------------------
select
ad_Id,
ad_SequenceId,
ad_Title,
workitem_Id,
Lvl
from EmpCTE order by sortkey;
--------------------------------------------------------------
DROP TABLE #SUMMARY
--------------------------------------------------------------
March 31, 2014 at 12:58 pm
kevin_nikolai (3/31/2014)
Hi Lynne, a special thanks - you're a star.--------------------------------------------------------
I noted the changes you made relating ad_SequenceId with ( --- replaced with above ).
Found that replacing the BaseData () cte with #SUMMARY (temp table) improved the performance of the stored procedure a lot.
I applied my original logic to the stored procedure which you updated to cater for multiple SRID's,
so I could highlight the SRID where (ad_SequenceId = 0 and Lvl = 0), view below:
-----------------------------------------------------------------
ALTER PROC [dbo].[usp_HierarchyCTE2]
@SRIDnvarchar(max)
AS
-- exec usp_HierarchyCTE2 'SR49931'-- returns 27 records
-- exec usp_HierarchyCTE2 'SR43648'-- returns 11 records
-- exec usp_HierarchyCTE2 'SR49931,SR43648'-- does return 38 records
DECLARE @tableID TABLE (value nvarchar(256))
INSERT @tableID (value)
SELECT * FROM dbo.fn_CSVToTableString(ISNULL(@SRID,''))
-- get the specified SR only (lists all the anchor objects)
SELECT distinct
ad.Id AS ad_Id
,ad.SequenceId ad_SequenceId
-- ,CASE WHEN workitem.Id in (@SRID) THEN ad.SequenceId ELSE NULL END AS ad_SequenceId --- replaced with above
,ad.Title AS ad_Title
,workitem.Id AS workitem_Id
INTO #SUMMARY
FROM dbo.ActivityDimvw ad
left JOIN dbo.WorkItemContainsActivityFactvw wicaf ON wicaf.WorkItemContainsActivity_ActivityDimKey = ad.ActivityDimKey
left join dbo.WorkItemDimvw workitem ON wicaf.WorkItemDimKey = workitem.WorkItemDimKey
join dbo.RelationshipView RV ON RV.TargetEntityId = ad.BaseManagedEntityId AND RV.SourceEntityId = workitem.BaseManagedEntityId
Where
((@SRID IS NULL) OR (workitem.Id IN (Select value from @tableID)))
UNION
-- get everything except the specified SR (everything else is child objects of anchor objects)
SELECT distinct
ad.Id AS ad_Id
,NULL ad_SequenceId
-- ,CASE WHEN workitem.Id in (@SRID) THEN ad.SequenceId ELSE NULL END AS ad_SequenceId --- replaced with above
,ad.Title AS ad_Title
,workitem.Id AS workitem_Id
FROM dbo.ActivityDimvw ad
left join dbo.WorkItemContainsActivityFactvw wicaf ON wicaf.WorkItemContainsActivity_ActivityDimKey = ad.ActivityDimKey
left join dbo.WorkItemDimvw workitem ON wicaf.WorkItemDimKey = workitem.WorkItemDimKey
join dbo.RelationshipView RV ON RV.TargetEntityId = ad.BaseManagedEntityId AND RV.SourceEntityId = workitem.BaseManagedEntityId
Where
(workitem.Id NOT LIKE 'CR%' AND workitem.Id NOT LIKE 'IR%' AND workitem.Id NOT LIKE 'SR%')
ORDER BY workitem.Id desc, ad_SequenceId
------------------------------------------------------------------------------------------
;WITH EmpCTE
AS
(
SELECT [ad_Id], [ad_SequenceId], [ad_Title], [workitem_Id], Lvl = 0, sortkey = cast(workitem_Id as nvarchar(max)) + N' - ' + cast(ad_SequenceId as nvarchar)
FROM #SUMMARY
where
ad_SequenceId is not NULL
-- [ad_Id] = (SELECT [ad_Id] FROM #SUMMARY WHERE [ad_SequenceId] = 0 and workitem_Id = @SRID) --- replaced with above
UNION ALL
SELECT E.[ad_Id], E.[ad_SequenceId], E.[ad_Title], E.[workitem_Id], Lvl = Lvl + 1, sortkey = M.sortkey + N' - ' + cast(E.workitem_Id as nvarchar(max)) + N' - ' + cast(M.ad_SequenceId as nvarchar)
FROM #SUMMARY AS E
JOIN EmpCTE AS M ON E.[workitem_Id] = M.[ad_Id]
)
----------------------------------------------------------------
select
ad_Id,
ad_SequenceId,
ad_Title,
workitem_Id,
Lvl
from EmpCTE order by sortkey;
--------------------------------------------------------------
DROP TABLE #SUMMARY
--------------------------------------------------------------
I see you are still using that inefficient delimited split function, dbo.fn_CSVToTableString(ISNULL(@SRID,'')). You really need to do two things. One, read that article I told you about. Two, use a CLR string splitter to split a NVARCHAR(MAX) string.
March 31, 2014 at 1:35 pm
Hi Lynn, I will compare your function with the one below and the function 'fn_CSVToTableString', notify you 2moro which I find is the best.
-----------------------------------------------
CREATE FUNCTION [dbo].[SplitList]
(
@RowData nvarchar(Max)='',
@SplitOn nvarchar(5)=''
)
RETURNS @RtnValue table
(
Id int identity(1,1),
Data nvarchar(100)
)
AS
BEGIN
Declare @Cnt int
Set @Cnt = 1
While (Charindex(@SplitOn,@RowData)>0)
Begin
Insert Into @RtnValue (data)
Select
Data = ltrim(rtrim(Substring(@RowData,1,Charindex(@SplitOn,@RowData)-1)))
Set @RowData = Substring(@RowData,Charindex(@SplitOn,@RowData)+1,len(@RowData))
Set @Cnt = @Cnt + 1
End
Insert Into @RtnValue (data)
Select Data = ltrim(rtrim(@RowData))
Return
END
-----------------------------------------------
/*
-- using the function in a stored procedure or SQL query:
WHERE workitem.Id IN (SELECT Data FROM SplitList(@SRID, ','))
*/
-----------------------------------------------
March 31, 2014 at 1:48 pm
kevin_nikolai (3/31/2014)
Hi Lynn, I will compare your function with the one below and the function 'fn_CSVToTableString', notify you 2moro which I find is the best.-----------------------------------------------
CREATE FUNCTION [dbo].[SplitList]
(
@RowData nvarchar(Max)='',
@SplitOn nvarchar(5)=''
)
RETURNS @RtnValue table
(
Id int identity(1,1),
Data nvarchar(100)
)
AS
BEGIN
Declare @Cnt int
Set @Cnt = 1
While (Charindex(@SplitOn,@RowData)>0)
Begin
Insert Into @RtnValue (data)
Select
Data = ltrim(rtrim(Substring(@RowData,1,Charindex(@SplitOn,@RowData)-1)))
Set @RowData = Substring(@RowData,Charindex(@SplitOn,@RowData)+1,len(@RowData))
Set @Cnt = @Cnt + 1
End
Insert Into @RtnValue (data)
Select Data = ltrim(rtrim(@RowData))
Return
END
-----------------------------------------------
/*
-- using the function in a stored procedure or SQL query:
WHERE workitem.Id IN (SELECT Data FROM SplitList(@SRID, ','))
*/
-----------------------------------------------
Please, take the time to read the following article:
March 31, 2014 at 2:10 pm
Thanks Lynn, I read the article.
Just for the fun of it I will compare all 4 functions for accuracy and speed:
DelimitedSplitN4K, DelimitedSplit8K, SplitList, fn_CSVToTableString.
Judging by the article, I assume DelimitedSplitN4K and DelimitedSplit8K should top the list,
but would like to compare by how many %.
March 31, 2014 at 2:24 pm
kevin_nikolai (3/31/2014)
Thanks Lynn, I read the article.Just for the fun of it I will compare all 4 functions for accuracy and speed:
DelimitedSplitN4K, DelimitedSplit8K, SplitList, fn_CSVToTableString.
Judging by the article, I assume DelimitedSplitN4K and DelimitedSplit8K should top the list,
but would like to compare by how many %.
Since you are using NVARCHAR(MAX) as the input parameter you really should look at the CLR DelimitedSplit routine. Again, look at all the info in that article.
April 1, 2014 at 2:46 pm
I compared the functions DelimitedSplitN4K and SplitList for accuracy and speed:
Found that if you are calling the function Split in the where clause of many of your cte's as
I did below, then the function SplitList (which I added to this post outperforms the function DelimitedSplitN4K by 50%. If you only call the function Split in the where clause of one cte,
then the performance is kind of similar for both. Accuracy of both are the same.
;with Branch
AS
(
SELECT BranchID, BranchName, ....
FROM tableA
WHERE Branch.Id IN (SELECT Data FROM SplitList(@Branch, ','))
)
,Customer
AS
(
SELECT CustomerID, CustomerName, ....
FROM tableB
WHERE CustomerID IN (SELECT Data FROM SplitList(@Customer, ','))
)
,Status
AS
(
SELECT StatusID, StatusName, ....
FROM tableC
WHERE StatusID IN (SELECT Data FROM SplitList(@Status, ','))
)
April 1, 2014 at 3:38 pm
kevin_nikolai (4/1/2014)
I compared the functions DelimitedSplitN4K and SplitList for accuracy and speed:Found that if you are calling the function Split in the where clause of many of your cte's as
I did below, then the function SplitList (which I added to this post outperforms the function DelimitedSplitN4K by 50%. If you only call the function Split in the where clause of one cte,
then the performance is kind of similar for both. Accuracy of both are the same.
;with Branch
AS
(
SELECT BranchID, BranchName, ....
FROM tableA
WHERE Branch.Id IN (SELECT Data FROM SplitList(@Branch, ','))
)
,Customer
AS
(
SELECT CustomerID, CustomerName, ....
FROM tableB
WHERE CustomerID IN (SELECT Data FROM SplitList(@Customer, ','))
)
,Status
AS
(
SELECT StatusID, StatusName, ....
FROM tableC
WHERE StatusID IN (SELECT Data FROM SplitList(@Status, ','))
)
You should go back to the article and compare against DelimitedSplit8K. With a single call and only 1-2 elements the difference isn't likely going to be much. But as the number of elements increases the performance separation between the nibble you posted and the DelimitedSplit8K is exponential. Why stick with slower code when much faster code is readily available?
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 13 posts - 16 through 27 (of 27 total)
You must be logged in to reply to this topic. Login to reply