Bulk insert is not working properly in Azure SQL Server

前端 未结 4 716
感情败类
感情败类 2020-12-06 22:27

I\'m not able to insert the bulk amount of data into Azure SQL server DB using C# webapi

Consider

I want to insert 60K> data in SQL. In my local sql server

4条回答
  •  旧巷少年郎
    2020-12-06 22:44

    Firstly, please make sure whether you could connect to Azure SQL database and do operation without timeout error if you just insert a record to database.

    Secondly, please check whether you override the default timeout value by using the CommandTimeout property on the ObjectContext, and you could try to set 0 (that indicates no limit) for BulkCopyTimeout property.

    Besides, please make sure whether it hit limits of your Azure SQL database while you do bulk insert, you could try to change the service tier and performance level of your database.

提交回复
热议问题