我可以将sqlbulkcopy与Azure SQL Paas一起使用吗?

编程入门 行业动态 更新时间:2024-10-27 10:23:42
本文介绍了我可以将sqlbulkcopy与Azure SQL Paas一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我可以在Azure SQL Paas中使用sqlbulkcopy吗?

Can I use sqlbulkcopy with Azure SQL Paas?

我有一个可以批量复制到数据库的应用程序,我们正在使用SQL PaaS对其进行测试.在SQLBulkCopy上似乎失败了.

I have an app that does bulk copy to a database and we are testing it with SQL PaaS. It appears to be failing on the SQLBulkCopy.

我以为我在某些地方不支持阅读此文件,但在Azure SQL文档中看不到它.这仍然是一个限制吗?在哪里记录?

I thought I read this is not supported somewhere but do not see it in the Azure SQL documentation. Is this still a limitation? Where is that documented?

我正在使用代码进行批量复制(不是SSIS或任何其他工具),如果需要的话,它是应用程序.

I am using code to do the bulk copy (not SSIS or any other tool), it is a app, if it matters.

推荐答案

简单的答案是,是的,您可以使用SQLBulkCopy将应用程序中的数据插入SQL Azure.

Short answer is, yes, you can use SQLBulkCopy to insert data from your app to SQL Azure.

但是,如果记录太多,则可能会遇到SQL Azure节流问题.

However, if you have too much record you might face SQL Azure throttling issue.

现在,在CPU进行节流的情况下,SQL数据库不会引发错误,但会减慢操作速度,您可能只会得到超时错误.目前,除了可能查看查询统计信息以表明工作进展缓慢之外,没有任何机制可以确定这种节流形式是否正在发生.

Now, In case of CPU throttling SQL Database will not throw an error but will slowdown the operation and you will probably just get a timeout error. At this time there is no mechanism to determine whether this form of throttling is happening other than possibly looking at the query stats telling that the work is taking place slowly.

如果它是非CPU节流的,那么您将得到一个例外.

And if it is non-CPU throttling, then you will get an exception about it.

此外,如果我没记错的话,在SQL Azure中将批量数据插入到临时表中有一个限制,但是它适用于普通表.

Also, if I recall correctly, there is a limitation for inserting bulk data into temp tables in SQL Azure, but it works for normal tables.

更多推荐

我可以将sqlbulkcopy与Azure SQL Paas一起使用吗?

本文发布于:2023-10-16 11:36:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1497445.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Azure   sqlbulkcopy   Paas   SQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!