![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Problem: I need to know the affected rows by the bulk insert task. In my DTS package I tried to have the ActiveX Script or Exec SQL task to fetch the rowcount after insertion. But in my scenario there would be simultaneous packages running sometimes against the same table. Due to which I get different record counts, rather than actual rowcount done by one Bulk insert. Is there a way like properties to get hold of affected rows after bulkinsert completion. -- Thanks SatishTL |
#3
| |||
| |||
|
|
Only if you use the DataPump task, the Bulk Insert Task does not have any such property. Another alternative would be to wrap the BulkCopy in code and capture the RowsCopied event which has a suitable parameter. -- Darren Green http://www.sqldts.com http://www.sqlis.com "SatishTL" <SatishTL (AT) discussions (DOT) microsoft.com> wrote in message news:1D0C4609-73C0-46CE-A7F4-B9983655B925 (AT) microsoft (DOT) com... Problem: I need to know the affected rows by the bulk insert task. In my DTS package I tried to have the ActiveX Script or Exec SQL task to fetch the rowcount after insertion. But in my scenario there would be simultaneous packages running sometimes against the same table. Due to which I get different record counts, rather than actual rowcount done by one Bulk insert. Is there a way like properties to get hold of affected rows after bulkinsert completion. -- Thanks SatishTL |
#4
| |||
| |||
|
|
Thanks Darren, but I have to go for Bulkinsert task as the volume of data being inserted through some of the files are in 1.5Gig sizes. I belive DataPumptask takes longer duration for such huge files. - SatishTL "Darren Green" wrote: Only if you use the DataPump task, the Bulk Insert Task does not have any such property. Another alternative would be to wrap the BulkCopy in code and capture the RowsCopied event which has a suitable parameter. -- Darren Green http://www.sqldts.com http://www.sqlis.com "SatishTL" <SatishTL (AT) discussions (DOT) microsoft.com> wrote in message news:1D0C4609-73C0-46CE-A7F4-B9983655B925 (AT) microsoft (DOT) com... Problem: I need to know the affected rows by the bulk insert task. In my DTS package I tried to have the ActiveX Script or Exec SQL task to fetch the rowcount after insertion. But in my scenario there would be simultaneous packages running sometimes against the same table. Due to which I get different record counts, rather than actual rowcount done by one Bulk insert. Is there a way like properties to get hold of affected rows after bulkinsert completion. -- Thanks SatishTL |
![]() |
| Thread Tools | |
| Display Modes | |
| |