![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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! |
#3
| |||
| |||
|
|
In message <1115669677.267036.93740 (AT) z14g2000cwz (DOT) googlegroups.com>, ezelasky (AT) hotmail (DOT) com 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 |
#4
| |||
| |||
|
|
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 (AT) z14g2000cwz (DOT) googlegroups.com>, ezelasky (AT) hotmail (DOT) com 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |