Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 importing from txt file to sql

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-05-09 : 18:08:54
Lars writes "Hi there!
here goes my question:
I have to import a txt file into a sql table. the txt file is structured like records/fields. i give an example:
ADAMS LA. Amsterdam 000000041901019ADAMSSOFT SERVICES BV

now i have a microsoft SQL server running without the DTS, but with the bcp. can you tell me which is the best way to do this? Can i import the file into the table where parts of the txt file can be imported to a field (NO NULL CHAR 34) or something? Hope to hear from you soon!

thanx in Advance

Lars"
   

- Advertisement -