How to add columns to an existing table

  • I have over 300 tables from manufacturers that need to be added to a table where the columns aready exist. I am having problems with a column in the table I am adding to, it has a not null. I have to add this column to my manufacturer tables and that makes it null. I can not change it there.

    I am getting the following in trying to import my table because the PRODUCT-PKEY in the table I am copying to has does not except nulls. In the table I am moving it will acept nulls and I have set the value to 1.

    Operation stopped...

    - Initializing Data Flow Task (Success)

    - Initializing Connections (Success)

    - Setting SQL Command (Success)

    - Setting Source Connection (Success)

    - Setting Destination Connection (Success)

    - Validating (Success)

    - Prepare for Execute (Success)

    - Pre-execute (Success)

    - Executing (Success)

    - Copying to [dbo].[Master Table] (Error)

    Messages

    * Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.

    An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Unspecified error".

    (SQL Server Import and Export Wizard)

    * Error 0xc020901c: Data Flow Task 1: There was an error with input column "PRODUCT_PKEY" (123) on input "Destination Input" (47). The column status returned was: "The value violated the integrity constraints for the column.".

    (SQL Server Import and Export Wizard)

    * Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "Destination Input" (47)" failed because error code 0xC020907D occurred, and the error row disposition on "input "Destination Input" (47)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.

    (SQL Server Import and Export Wizard)

    * Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - Master Table" (34) failed with error code 0xC0209029 while processing input "Destination Input" (47). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.

    (SQL Server Import and Export Wizard)

    - Post-execute (Success)

    Messages

    * Information 0x402090df: Data Flow Task 1: The final commit for the data insertion in "component "Destination - Master Table" (34)" has started.

    (SQL Server Import and Export Wizard)

    * Information 0x402090e0: Data Flow Task 1: The final commit for the data insertion in "component "Destination - Master Table" (34)" has ended.

    (SQL Server Import and Export Wizard)

    * Information 0x4004300b: Data Flow Task 1: "component "Destination - Master Table" (34)" wrote 0 rows.

    (SQL Server Import and Export Wizard)

    Can someone please hlep.

    LadyDee

Viewing post 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply