Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 16th, 2004, 09:35 AM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to delete text file header

I'm brand new to DTS packages and have run into a bit of a quandry. I am trying to load a text file into a database using a fixed length text file. However, the first line is a header. When I try to use the text file source task to skip the first row it actually skips the header AND the first good row. When I check the "First row has column names" checkbox SQL Server 2000 crashes with a memory error. When I do nothing, the formatting is ruined. Can anyone offer any suggestions as to how to get rid of this header?

 
Old June 16th, 2004, 10:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can use a VBscript task to remove the header, by altering the text file.

Brian
 
Old June 16th, 2004, 02:34 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I wound up using an ActiveX script to take out the header. It works great.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete file System.IO.Delete error maricar C# 13 March 14th, 2014 06:50 AM
Vertical Text Header in MSFLEXGRID Andraw Beginning VB 6 0 October 16th, 2008 10:08 PM
Text File Header rohan.c Intro Programming 0 August 19th, 2007 04:19 PM
In c# read a text file and delete a string dhol General .NET 1 June 30th, 2005 05:00 AM
header text in datagrid msrnivas .NET Web Services 1 March 4th, 2004 01:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.