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


Download TXT file to SQL Server

Posted on 2007-08-10
Medium Priority
Last Modified: 2013-11-05
I am trying to import a txt file into SQL server using the DTS Wizard. However my file has nearly 1800 columns and the Wizard will only let me import 1024. Is there a way I can split the file for import or get the Wizard to do it for me?
Question by:bpfsr
LVL 14

Accepted Solution

chinu1310 earned 750 total points
ID: 19674662
LVL 25

Assisted Solution

by:DBAduck - Ben Miller
DBAduck - Ben Miller earned 750 total points
ID: 19678032
As per http://msdn2.microsoft.com/en-us/library/ms143432.aspx
Columns per base table  1,024

So you will not be able to import this without splitting it, so that is correct.
So to split it, you would have to split it vertically and you may be able to do that if you opened it in Excel and only save out 900 columns in each import and then import them into SQL.



Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to recover a database from a user managed backup
Suggested Courses

872 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