August 4, 2008 at 8:34 am
I have a table having some 80,00,000 records when i performed bcp out i have extracted all rows and when i perform bcp in on the same table some 4 lakh records are missing and no error file has been generated.
can any one tell me the reason for this?
can any one help me how can i retrive those 4 lakh records.
thanks in advance.
August 4, 2008 at 7:23 pm
Did you try BCP out to a text file then BULK INSERT to a table?
"-=Still Learning=-"
Lester Policarpio
August 4, 2008 at 8:10 pm
n.yarramreddy (8/4/2008)
I have a table having some 80,00,000 records when i performed bcp out i have extracted all rows and when i perform bcp in on the same table some 4 lakh records are missing and no error file has been generated.can any one tell me the reason for this?
can any one help me how can i retrive those 4 lakh records.
thanks in advance.
Not without seeing the BCP command you used... sans any passwords, of course. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 4, 2008 at 10:08 pm
These two processes (Bcp in/out) work the same. One's in, one's out. It's possible to you had errors, PK violation, etc. on the in.
Did these go to different instances?
August 4, 2008 at 11:09 pm
Uh huh... that's why I wanted to see the commands. And, I'd like to see the DDL for the source and destination tables, as well.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 2:39 pm
You might also try adding the following parameters to your bcp command:
-m maxerrors -e errfile
where maxerrors is 5 for your posed question and errfile is where any rows in error will reside that are not bcp'd in. each row in errfile will have the complete row and on the following line an @ sign will indicate the first erroneous/invalid column encountered for that row.
RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."
August 6, 2008 at 4:20 pm
1 lakh = [font="Courier New"]10 exp 5[/font]
1 crore = [font="Courier New"]10 exp 7[/font]
so, 4 lakh is 400,000.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply