Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Text File To Sql Server

Status
Not open for further replies.

Kruznn66

Programmer
Nov 16, 2001
3
US
I have a large text file with over 31000 lines of data; that I want to import into Sql table called SKU. When I use the DTS Wizard to import the text file into the SKU table I continuously get the following error.

TransFormCopy ‘ DirectCopyXForm’ Conversion Error: Conversion invalid for data types on column pair 32 (Source column ‘col032’ (DBTYPE_STR) destination column ‘Lstgibo’ (DBTYPE_I4))

However, I can import portion of the text file into the SKU table with no problem. Additionally, if I import the text file as a new table (SKU1) it works fine except I have no column headings except Col1, Col2 and so on. When I go to view the diagrams or create a new table it give me the following error:

An unexpected error happened during this process

How and what do I need to do to get this problem fixed. Also can you write a stored procedure (macro) in Sql that would import the data without using the DTS Wizard?

I am a new user using the SQL Server 7.0, and would appreciate any help in the matter.

Thanks,
Travis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top