消息50000,级别16,状态1,行1 111212;无法在事务内执行操作. [英] Msg 50000, Level 16, State 1, Line 1 111212;Operation cannot be performed within a transaction.

查看:2108
本文介绍了消息50000,级别16,状态1,行1 111212;无法在事务内执行操作.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨团队

我已经按照以下方式编写了实现交易和回滚的程序,但出现了以上错误消息.你能帮忙如何在azure dw服务器中实现这一点吗?

i have written procedure to implement the transactions and rollback in below way and i got above error message . can you please help how to implement this in azure dw server :

adithya

推荐答案

您好Adithya,

RAISERROR错误消息固定为50,000.如果未指定msg_id,则RAISERROR会引发错误消息,错误号为50000.

错误50000是用户定义的错误.检查该行并查找RAISERROR语句,并查看该代码周围的代码以及导致错误触发的条件.

有关详细信息,请参阅"RAISERROR ".

For more details, refer "RAISERROR".

SQL Data Warehouse支持将事务作为数据仓库工作负载的一部分.但是,为确保按比例维护SQL Data Warehouse的性能,某些功能 与SQL Server相比受到限制. 

SQL Data Warehouse supports transactions as part of the data warehouse workload. However, to ensure the performance of SQL Data Warehouse is maintained at scale some features are limited when compared to SQL Server. 

有关详细信息,请参阅"

For more details, refer "Using transactions in SQL Data Warehouse".

要了解有关优化交易的更多信息,请参见 SQL数据仓库最佳做法.

To learn more about optimizing transactions, see Transactions best practices. To learn about other SQL Data Warehouse best practices, see SQL Data Warehouse best practices.

希望这会有所帮助.


这篇关于消息50000,级别16,状态1,行1 111212;无法在事务内执行操作.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆