![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi! I am using DTS SQL DMO Bulk Copy program to bulk export/import data. Now i have 2 problems! 1. The incoming data file will have a header record containing the no. of records in the file followed by the file data. Now - how do i check the no. of records in the flat file is same as the no. of records mentioned in the header? My option is: Read the flat file using Activex script/FSO object with the first line and check the no. of records. Now compare it by Dividing the file size by a single record size. Any comments? Is there any alternative 2. While exporting data I need to add a header record while using SQL DMO BCP, SQL DMO table Export data function. The header record will contain the no. of records exported. Do i need to use ActiveX script/FSO object here also? Is there any alternative? Thanks in advance |
![]() |
| Thread Tools | |
| Display Modes | |
| |