在SQL Server中运行多个查询 [英] Running multiple queries in SQL Server

查看:94
本文介绍了在SQL Server中运行多个查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何并行运行多个INSERT命令?我有一个非常大的查询与许多插入命令。需要对其进行优化以便更快地运行。

How to run many INSERT commands parallel? I have a really big query with many insert commands. Need to optimize it to run faster.

推荐答案

最佳解决方案是创建包含多个INSERT语句的多个存储过程。为了能够并行运行它们,可以使用不同的连接来执行它们。
Best solution is to create multiple store procedures containing multiple INSERT statements. To be able to run them "parallel" execute them using different connections.


这篇关于在SQL Server中运行多个查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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