Re: API in VB code is rolling back SQL import but wizard does not
- From: ezelasky@xxxxxxxxxxx
- Date: 17 May 2005 07:45:58 -0700
THANKS! This worked!!! Now, what is an optimal InsertCommitSize?
Some of my input files and databases can be quite large, upto 2 million
records.
Thanks again, Elizabeth
Darren Green wrote:
> In message <1115669677.267036.93740@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
> ezelasky@xxxxxxxxxxx writes
> >I have a DTS package in visual basic that was created via the DTS
> >wizard and it rolls back or empties the SQL table when a laod
failure
> >is encountered even though I have the following property set:
> >
> >oStep.RollbackFailure = False
> >
> >This doesn't happen in the DTS wizard, I get a partial load on the
> >table with the data before the row with the corrupt data is
> >encountered. I need it to not happen in the VB code and I am
wondering
> >why the wizard generated VB code doesn't do this.
> >
> >What other properties must I set?
> >
> >Thanks!
> >
>
> Do you have different transaction options set? Look at the insert
commit
> size for the DataPump. If no rows have been committed, then you are
not
> going to get rows left after failure.
>
>
> --
> Darren Green (SQL Server MVP)
> DTS - http://www.sqldts.com
>
> PASS - the definitive, global community for SQL Server professionals
> http://www.sqlpass.org
.
- Follow-Ups:
- Re: API in VB code is rolling back SQL import but wizard does not
- From: Darren Green
- Re: API in VB code is rolling back SQL import but wizard does not
- References:
- API in VB code is rolling back SQL import but wizard does not
- From: ezelasky
- Re: API in VB code is rolling back SQL import but wizard does not
- From: Darren Green
- API in VB code is rolling back SQL import but wizard does not
- Prev by Date: DTS ERROR 8004206A
- Next by Date: Re: setting a alert on time out of a schedulted dts package
- Previous by thread: Re: API in VB code is rolling back SQL import but wizard does not
- Next by thread: Re: API in VB code is rolling back SQL import but wizard does not
- Index(es):
Relevant Pages
|