Solved

SQL Server DTS issue with .txt file

Posted on 2015-02-11
2
60 Views
Last Modified: 2016-02-16
Hi,
I have been trying to import/create a new table from a .txt flate file tab delimited, nothing complicated, excepted that by default the string length that the DTS package set for the txt field id varchar (50).
I increased the field length in the mapping window to Nvarchar(max) for fields longer than 50 characters, set the global error to ingnore for each data fields on for the whole file, but the import or create table failed because of the Field Trucation error!
Is this a bug in DTS? How to solve this matter, I spent a great deal of time on it and can't find the solution. I need help.
0
Comment
Question by:pascalmartin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
Simon earned 500 total points
ID: 40605508
Are you using legacy DTS? Have you tried using the Import Data Wizard to bring it in via SSIS instead?
Are you using SQL Server 2008 (as the topic area of your question implies)?
0
 

Author Comment

by:pascalmartin
ID: 40611164
Hi,
As suggested I have tried with SSIS (new to me) and it works. Thanks!
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
A couple of weeks ago, my client requested me to implement a SSIS package that allows them to download their files from a FTP server and archives them. Microsoft SSIS is the powerful tool which allows us to proceed multiple files at same time even w…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

734 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