What is the difference between bulk copy (bcp) and bulk insert in SQL Server 2008?
By : vt4a2h
Date : March 29 2020, 07:55 AM
this will help bulk copy is an utility program: bcp.exe BULK INSERT is a Transact-SQL statement. bcp.exe uses BULK INSERT to do its job. It's the same relation that the one between sqlcmd.exe (a tool) and SELECT (a statement).
|
SQL Server Bulk Insert of UTF-8 CSV file not working correctly
By : gattinaroma
Date : March 29 2020, 07:55 AM
|
Python Code for Bulk Insert into SQL Server 2014 DateTime format
By : Supattaraphong Fha A
Date : March 29 2020, 07:55 AM
|
Bulk insert in SQL Server Express 2005 is not working
By : user3795378
Date : March 29 2020, 07:55 AM
This might help you Firstly the rowterminators appear to be windows line endings 0D 0A in the file. (CR LF). I believe this translates to \r\n. However the issue still holds. There appears to be a hotfix from MS http://support.microsoft.com/kb/935446
|
Bulk insert is not working properly in Azure SQL Server
By : Kinjal Joshi
Date : March 29 2020, 07:55 AM
Hope this helps I'd suggest you set sqlBulkCopy.BatchSize to a reasonable amount, instead of inserting everything in one batch. Depending on the data you're inserting, try starting with 10.000 and work your way up or down until you're satisfied with the performance. Edit for some extra clarification: When you consider your batch size, you need to take into consideration that SqlBulkCopy will need to not only insert the data, but also read AND send it - the last part is probably the reason why it works on your local SQL server, but not on Azure - it also means that, if you're working with a large dataset, that you will need to work with lower batch size, or a considerably higher BulkCopyTimeout setting, to allow each batch the chance to finish before reaching the timeout limit.
|