Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Excel OLEDB Destination Drop/Create Table Results in Empty Rows in Worksheet

$
0
0
Greetings, upgrading DTS packages and have run into an issue where I try to use the same code that was used in DTS, to perform a Drop and Create "table" to overwrite and refresh a worksheet in an Excel 8.0/2010 file using the Jet.Oledb.4.0 driver. This worked as expected in DTS but....what happens in SSIS is the Drop performs a delete but does not remove the empty/blank rows. So my initial worksheet has say 126 rows in it, when I run the package to refresh with the 100 rows of data from the souce, I wind up with a header row, 126 blank rows and on row 128 my refreshed data starts. I want to overwrite. I have found some work arounds such as using File System Task to physically delete the file and run the create statement or copy a  template file to resolve but wondering if there are any other suggestions on how to fix this as it seems simple enough. I have an existing worksheet with the proper formatted columns (numeric and text) and I just want to delete the rows and overwrite.

Viewing all articles
Browse latest Browse all 24688


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>