Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

bcp import error numeric value out of range

$
0
0
lo, I have table with columns of type int. I export this table by using bcp:
bcp dbo.int_table out file.dat -q -CRAW -T -S localhost -E . 

Now I want to import it to table with columns of type bigint. I use bcp command:

bcp dbo.bigint_table in file.dat -q -CRAW -T -S localhost -E 

I get error:

Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Native Client]Numeric value out of range
SQLState = 22003, NativeError = 0

i was trying import table by using format file created based on bigint_table by command:

bcp dbo.bigint_table in file.dat -f format_file_bigint.xml -q -CRAW -T -S localhost -E

but i also gets the same errors. 

Can I use format file when during export was used -CRAW option???? 

Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>