"Allan Mitchell" <allan@no-spam.sqldts.com> wrote in message
news:eRxa7NYdEHA.216@TK2MSFTNGP11.phx.gbl...
> As Darren says the READFILE transformation would seem to be the best way
of
> doing this. Turn this article on it's head.
>
> Write File Transformation
> (
http://www.sqldts.com/default.aspx?294)
>
>
> I will mock up an example and I can send you it privately before I put it
up
> on the site if you ping me.
>
>
>
> --
> --
>
> Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
>
www.SQLDTS.com - The site for all your DTS needs.
>
www.konesans.com - Consultancy from the people who know
>
>
> "IT Dep" <it@isslimREMOVE_TO_REPLYited.co.uk> wrote in message
> news:um5Q6KYdEHA.3988@tk2msftngp13.phx.gbl...
> > Hi
> >
> > Assuming the text files are all under 8Kb how would I go about importing
> > them? Thanks
> >
> > Dan
> >
> > "Allan Mitchell" <allan@no-spam.sqldts.com> wrote in message
> > news:OWauYEYdEHA.3732@TK2MSFTNGP11.phx.gbl...
> > > This should be relatively easy to do
> > >
> > > The problem you will have is that a row in SQL Sever is 8KB. A text
> file
> > > could possibly be much larger than that.
> > >
> > > --
> > > --
> > >
> > > Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
> > >
www.SQLDTS.com - The site for all your DTS needs.
> > >
www.konesans.com - Consultancy from the people who know
> > >
> > >
> > > "IT Dep" <it@isslimREMOVE_TO_REPLYited.co.uk> wrote in message
> > > news:e7ODaBYdEHA.228@TK2MSFTNGP11.phx.gbl...
> > > > Hi
> > > >
> > > > 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 of the textfile
> > >
> >
>
> --------------------------------------------------------------------------
> > > --
> > > > 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
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>