Re: import multiple text file into cell

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Steve Kass (skass_at_drew.edu)
Date: 07/31/04


Date: Sat, 31 Jul 2004 01:08:19 -0400

Dan,

  Except for your comment about commas, this might help you out:

http://groups.google.com/groups?q=skass+mytexts+tf2

-- Steve Kass
-- Drew University
-- Ref: 5414D02E-C819-4DCA-B553-9DDB2D503DB7

IT Dep wrote:

>Hi,
>
>Still having the same problem (as follows), I had posted it before but
>haven't managed to resolve the issue. Sorry for reposting it.
>
>
>I am trying to import some text files into MS SQL 2000. I want to import
>them into a table with the first column being the filename (excluding the
>extension) and the second colunm being the contents of the textfile, I want
>the entire textifle to fit into the one cell (ignoring any commas, etc).
>Example:
>
>
>
>
>Filename | Contents
>----------------------------------------------------------------------------
>-----
>1 | This is the contents of the first file
>2 | And the contents of the 2nd file, complete with commas!
>Test | And another textfile
>File | Some more text from a texfile......
>
>Thanks in advance
>
>Dan
>
>
>
>
>



Relevant Pages

  • Re: Import Multiple text Files
    ... IT Dep ... select * from OpenRowset('MSDASQL', 'Driver={Microsoft Text Driver (*.txt; ... > them into a table with the first column being the filename (excluding the ... > the entire textifle to fit into the one cell (ignoring any commas, ...
    (microsoft.public.sqlserver.programming)
  • Re: Automatic way of applying the same command to a bunch of files
    ... No Paul Howarth's method was best, the problem is probably coming from ... the commas. ... can you do the sox by hand with that filename ...
    (Fedora)