HI,
I hope this script will help (it works for me on MSSQL 2000):
Function Main()
Set xls = CreateObject("Excel.Application"
xls.visible = false
xls.Workbooks.Open "c:\work\scripts\xls\Other\Currencies & Countries.XLS"
Set book = xls.Workbooks(1)
For each foo in book.Worksheets
foo.activate
foo.range("A2:F500".delete
next
book.close true
xls.quit
Main = DTSTaskExecResult_Success
End Function
Another way, add two steps before insert (connection to Excel file):
1) drop table`NReport`
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.