I am trying to load data from an excel file, how do I use SSIS so that it won't import blank rows in the source excel file?
Thanks in advance!
As with other databases, you'll need to use a WHERE clause to exclude rows that you don't want. There is no such option available on the driver, the connection manager, or the Excel source or destination.
-Doug
|||
The easiest way ist to load all rows from thr excel file and then use in the DataFlow a Conditional Split transformation to split the blank rows.
Your condition may be ISNULL(xxxxxx).
|||
Thank both of you very much. Condition Split works.
I have another question:
SSIS is importing data from an EXCEL source file, which is on a password protected web site, like: http://www.abc.com/myexcel.xls
I always get validation error: Excel Source[649], The AcquireConnection method call to the connection manager "ExcelSource" failed with error code 0xC0202009. Please help!
Thanks again.
|||
If you mean a password-protected Excel file, the driver simply cannot open that.
If you're talking about a Web site that requires a login, the Excel Source certainly can't handle this, but I'm not certain what the solution is. One option might be to use a Script task that logged in and copied the file locally first...
-Doug
|||
Thanks for your reply, Doug.
Yes, what I meant is, the web site requires a login to access the excel file. Script task is an option, but any other suggestions is stilly highly appreciated.
No comments:
Post a Comment