Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的存储过程中,三个表有 3 个存储过程。每个我都从前端传递参数和存储过程名称(在 asp.net 4.0 中设计)
我们可以同时执行 3 个 SP,即并行执行,这样我就可以最大限度地减少存储过程的执行时间吗?
您需要将存储过程拆分为三个单独的存储过程,并在三个不同的连接上执行它们。
理论上,也可以使用 .Net 语言中的 CLR 编写存储过程并使用多线程来实现您的目标。这个选项会更复杂。我不能再说第二个选项,因为我还没有真正做到。
请参阅CLR 存储过程中的多线程代码?