Read from Text File Into Table?

  • A co-worker of mine asked if it is possible to create a query that will read a specific line and tab position in a text file and insert it into a table.

    He says that he knows it is possible with Oracle. Has anyone heard of this? Unfortunately I'm at work and they don't use SQL Server so I can't search Books Online.

    Thanks for any help.

  • DTS can do this. Bulk Copy can, but you'd probably want to do a DOS find and get the lines you need into a separate table.

    Or load hte whole thing and delete what you don't want.

    Steve Jones

    sjones@sqlservercentral.com

    http://www.sqlservercentral.com/columnists/sjones

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply