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 February 11th, 2004, 01:37 PM
Authorized User
 
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default open and remove the first row of Excel in DTS

Hi everybody,
I need to Import an Excel sheet from a directory into a table in SQL using DTS. But before putting the excel file in the directory, I need to open that excel file and remove the first row of excelsheet. Is there anyway that I can do it in DTS?
Thanks

 
Old February 11th, 2004, 02:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you talking about the column headers or the first data line?

Rand
 
Old February 11th, 2004, 03:51 PM
Authorized User
 
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default

The row that needs to be removed is the first data line in the excel file.
Any Idea?

 
Old February 12th, 2004, 08:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can set up the DTS to skip rows. In the DTS Designer, open the properties dialog for the import, then go to the Options tab and you'll find a field named 'First Row' which you can change as you like.
 
Old February 19th, 2004, 12:09 AM
Authorized User
 
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default

Hi Again,
Sorry but I did not get your idea. Could you pls give me some details. I get an excel file from email everyday. then I import it into a SQL server using DTS.
Here is the example. I need to remove their header of the report which is " Report solution" located at the first row fot the worksheet.
Thanks

                   Report Solutions
Name Last name Prop Address Prop City Prop State Prop Zip
Adam Sanler 100 Jane Street New York NY 10254


 
Old March 17th, 2004, 03:41 AM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a problem like yours as follows"
I will remove last row,How can I do?

hiroki wu





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Remove Excel Object From Memory jatinp82 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 2 May 30th, 2007 03:53 PM
How to remove duplicate row from sheet ketannsharma Excel VBA 1 February 18th, 2007 03:32 AM
How to remove row from datagrid iniro VB.NET 2002/2003 Basics 3 November 10th, 2004 09:28 AM
Re : How to remove Row handles lolo Pro VB Databases 0 May 7th, 2004 08:06 PM
Remove JTable row and column in one event rpalanivelu J2EE 0 October 30th, 2003 08:52 AM





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