Re: How to import fixed-width text file in MS SQL 2000?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Stuart Fish (stuart_at_fish._no__spam_.net.nz)
Date: 01/17/05


Date: Tue, 18 Jan 2005 08:53:45 +1300

This can be done through the DTS import wizard in Enterprise Manager under
Tools --> Data Transformation Services --> Import Data.

In the wizard select the source Data Source as 'Text File'. The wizard will
guide you through the steps.

Alternative methods to DTS are the bcp utility and the 'BULK INSERT'
command.

-- 
----------
Stuart Fish
www.technologic.co.nz
"Tom" <tom@killspam.com> wrote in message 
news:M0UGd.14491$W33.456289@news20.bellglobal.com...
> Hello,
>
> Is there a simple answer to this simple question?
>
> How to import fixed-width text file?
>
> I know the width of the columns but there are so many that I don't want 
> redefine them. I have already a table build for that data with the 
> necessary fields width. In dbase it was such a simple thing to do...
>
> Note:
> I went through the Import wizard in MS SQL 2000 and I could not find any 
> thing there about importing fixed-width text file.
>
>
> Any help is greatly appreciated,
> Les
>
> 


Relevant Pages

  • Re: DTS Changing data type from numeric to decimal
    ... you create a package and open it after the wizard. ... If I understand your fix, we can create the tables on the cluster were transfering too, then the DTS will apply the transfered data without defaulting to decimal. ... Did the Wizard create> the tables on the destination, I assume it must have done hence the problem. ... >> to transfer the database to a cluster that is case insenseitive. ...
    (microsoft.public.sqlserver.dts)
  • Re: Export to CSV
    ... Importing A Text File Using The DTS Wizard ... when I go thru the wizard to export data it prompts me for a DSN ... >> Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ...
    (microsoft.public.sqlserver.dts)
  • Re: API in VB code is rolling back SQL import but wizard does not
    ... >>I have a DTS package in visual basic that was created via the DTS ... >>This doesn't happen in the DTS wizard, I get a partial load on the ... > Darren Green (SQL Server MVP) ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS Datapump Column Order Unstable
    ... www.SQLDTS.com - The site for all your DTS needs. ... > When I use the wizard to assign source and destination properties I expect ... > above sometimes the order reverts back to normal. ... > property if the ordinal property keeps toggling bewteen reversing the ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS Import Problem
    ... I'm using the DTS Import Wizard and I've specified the ... "Allan Mitchell" wrote: ... > The error message says you are trying to. ...
    (microsoft.public.sqlserver.dts)