Home Forums SQL Server 2005 Development Parsing text file and updating the output to database records RE: Parsing text file and updating the output to database records

  • I'm assuming what you mean is a text file with rows and columns of data in it. Is that correct? (Some examples would be comma-delimited data, or fixed-width data.)

    If so, then there are a number of options, including bcp, bulk insert, and openrowset. Take a look at ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/19049021-c048-44a2-b38d-186d9f9e4a65.htm in Books Online (search for "bulk import"). It has data on all of these methods.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon