I am restoring two large .bcp files that together total approximately 1.6B records. The total records in each file is unknown. To keep from filling up the transaction log, I'm importing 100M records at a time using -F and -L arguments. Is there a way to figure out how many records are in each file?
Here is what I'm doing for the restore. If I don't know the right number of records, I am thinking I'll end up rolling back when I give bcp a -L value that doesn't exist:
bcp [IMP_Table].[dbo].[LINE_ITEM] in "E:\Temp\LINE_ITEM-1.BCP" -b100000 -f "E:\Temp\LINE_ITEM-1.fmt" -T -S"Server\DS" -F 1 -L100000000
Thanks,
Pat