SQL Server flat file import/SSIS flatfilesource import file LocaleID is not installed error problem

Source: Internet
Author: User
Tags locale import database ssis

When using SQL Server and SSIS to import a CSV file to a database recently (SSIS chooses FlatFileSource as the source of the data stream), you always encounter the LocaleID 4 is isn't installed on this system. this error.

Later, long time found that there was a problem with the locale option selection on FlatFileSource, because the CSV file to be imported contains Chinese, so the sqlserver/ When SSIS imported CSV, I chose Chinese (Simplified) on the FlatFileSource locale to prevent Chinese entry into the database as garbled (as shown), but the client's database server was installed in English Windows Server 2008, there is no Chinese language pack in the operating system, so when you select Locale as Chinese (Simplified) in FlatFileSource in sqlserver/ssis, SQL Server is in Windows The language pack for Chinese (Simplified) was not found in the server system, so there was an error in the above.

To solve this problem, you must first understand the SSIS server on which the operating system installed the language pack, and then the most important point is that as long as the code page in the FlatFileSource is set to the correct encoding to solve the Chinese import database after the problem of garbled, You can select a good code page in the FlatFileSource preview first, if the preview of the data is not garbled so the data should not be garbled. In this example, I found that the client server operating system does not support the locale of Chinese (Simplified), but supports the locale of Chinese (People's Republic of China), Change the locale of FlatFileSource to Chinese (People's Republic of China), and then make sure that the code page is set to 936 and I successfully import the CSV file into the database without garbled characters.

SQL Server flat file import/SSIS flatfilesource import file LocaleID is not installed error problem

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.