Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL Server DTS issue with .txt file

Posted on 2015-02-11
2
Medium Priority
?
64 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
2 Comments
 
LVL 18

Accepted Solution

by:
Simon earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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.
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.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

927 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