SQL Server import data frequently error answers

Source: Internet
Author: User
Tags ssis

When you do data coversion for an SSIS project, you often encounter two issues like the following:

1.Validating (Error)

Messages

* Error 0xc02020f4:data Flow Task 1:the column "XXXX" cannot be processed because more than one code page (936 and 1252) is specified for it.

(SQL Server Import and Export Wizard)

* Error 0xc02020f4:data Flow Task 1:the column "XXXX" cannot be processed because more than one code page (936 and 1252) is specified for it.

(SQL Server Import and Export Wizard)

Workaround: Check if the collation of your source and target databases is inconsistent and there will be a large number of errors if the code page is inconsistent.

2: The following error message appears during validation

-Validating (Error)

Messages

* Error 0xc0202049:data Flow Task 1:failure inserting into the read-only column "xxxxx".

(SQL Server Import and Export Wizard)

* Error 0xc0202045:data Flow Task 1:column metadata validation failed.

(SQL Server Import and Export Wizard)

Workaround: This error occurs because this column is automatically growing and you need to check the "Enable Identity Insert" option in the "Edite Mappings" option.

MSDN's explanation for the code page is that for character and Unicode data, a code page is a definition of a bit pattern that represents a particular letter, number, or symbol (for example, 0x20 represents a space, and 0x74 represents the character "T"). Some data types use one byte per character, and the bit pattern for each byte can be one of 256 different bit patterns.

One solution you get today is:

When you import the Export Wizard with SQL Server, check the Enable Identity Insert option. After you save the SSIS package, if a code page error occurs. Then proceed to the next step:

Right-click the saved SSIS Package-edit, the Data Flow window appears, right-click the OLE DB source control, click Show Advanced Editor ...

Select Component Properties in the pop-up window, and set the property alwaysusedefaultcodepage here to True,defaultcodepage should also be 936.

So all two errors have been solved.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.