Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using bcp

Status
Not open for further replies.

sds814

Programmer
Feb 18, 2008
164
US
I've started reading about how bcp does bulk insert. I'm not sure how sql server does validation (i.e., data type). Using bcp, if 5 records are sent to sql server does sql server perform validation record by record and then insert the 5 records all at once? Thanks for the help!
 
In short, yes. Of course the answer is not that succinct. You can redirect the records that fail validation to an error file. Now, "to import data into a table, you must either use a format file created for that table or understand the structure of the table and the types of data that are valid for its columns", from BOL.


MCP SQL Server 2000, MCTS SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top