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 bkrike 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

Status
Not open for further replies.

jimny

Technical User
Oct 18, 2002
52
US
I do not have much experience with SQl but...

I am running sql server 2000 and am trying to import a text file that looks like:

|Lots-Land & Acreage|,|02/26/2003|,|03/12/2003|,||,||,||,|250,000|,
|HOPEWELL|,|Beautiful Farm Land, lakes, streams, lots of animals.|,||

I have tried the import utility, but it breaks the text string on the commas in the text string as if they were new columns. Is there some way to get it to break on "|,|" only? or do I have to create my own array and then loop through that inserting each element as I go through it?
 
Is it possible to a replace on |,| and substitute just a plain | or another character such as @ or * ??? Then run it through the SQL Import feature based on the new character based delimiter
Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top