[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Sql Server Export errors

Posted on 2013-12-16
2
Medium Priority
?
2,852 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Suggested Courses

834 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