Solved

Sql Server Export errors

Posted on 2013-12-16
2
2,684 Views
Last Modified: 2016-02-10
Experts - I am getting this error when attempting to export data from Sql Server 2012 Express:

Error 0xc020802e: Data Flow Task 1: The data type for "Destination - Export test_csv.Inputs[Flat File Destination Input].Columns[Title]" is DT_NTEXT, which is not supported with ANSI files. Use DT_TEXT instead and convert the data to DT_NTEXT using the data conversion component.
 (SQL Server Import and Export Wizard)


What is the correct method (and in what application - sql server or the import/export wizard) to implement the solution in the error message:

Use DT_TEXT instead and convert the data to DT_NTEXT using the data conversion component.

I have several columns that are nvarchar(4000) in my SQL Server table which I suspect are causing the error. The Export Wizard identifies these columns are Unicode string [DT_WSTR] data type.

3 other columns are numeric and it identifies them as either eight-buyte integer [DT_I8] or double-precision float [DT-R8).

Thanks in advance.
0
Comment
Question by:bobinorlando
2 Comments
 
LVL 15

Accepted Solution

by:
JimFive earned 500 total points
ID: 39724344
Assuming you are using the Export wizard you could do this:
Create a View and cast all Nvarchar columns to varchar, then export the view to the csv file.  If you are actually using unicode in the data you are going to lose it.

If you are creating a solution in the Business Intelligence Designer you can create a Data conversion item inside your data flow task.
0
 
LVL 1

Author Closing Comment

by:bobinorlando
ID: 39746339
Creating a view in SSMS did the trick! Thank you!!
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now