Hello All,
I have several destination tasks in my data flow. What I want is once each destination task has completed, I want to insert the following into a table called “LoadStatus”:
- RecordCount
- TableName
- LoadTime
Please see the below example table:
LoadStatusID |
DateTimeEntry |
RecordCount |
TableName |
LoadTime |
1 |
10/18/12 7:46 AM |
45454 |
1stTable |
200 |
2 |
10/18/12 7:47 AM |
63472 |
2ndTable |
348 |
3 |
10/18/12 7:48 AM |
19352 |
3rdTable |
123 |
Below is the create table statement:
CREATE TABLE [dbo].[LoadStatus](
[LoadStatusID] [int] IDENTITY(1,1) NOT NULL,
[DateTimeEntry] [datetime] NULL,
[RecordCount] [int] NULL,
[TableName] [nchar](50) NULL,
[LoadTime] [nchar](10) NULL,
CONSTRAINT [PK_LoadStatus] PRIMARY KEY CLUSTERED
(
[LoadStatusID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LoadStatus] ADD CONSTRAINT [DF_LoadStatus_DateTimeEntry] DEFAULT (getdate()) FOR [DateTimeEntry]
GO
What is needed to accomplish this goal?
Thanks.