2
我正在尋找類似的東西。雖然語法錯誤,但它演示了原理如何運行未知數量的並行存儲過程
foreach(int i in myIntArray)
{
execute mystoredProc i;//this should kick off the proc and go onto next one without waiting for a return value
}
這些存儲過程是從Windows應用程序中調用的。我有點懷疑在應用程序端創建大量線程。我寧願在SQL服務器端執行線程。我願意使用SSIS。
查看這個答案的分而治之節http://stackoverflow.com/questions/4129071/optimal-mysql-settings-for-queries-that-deliver-large-amounts-of-data/4144514#4144514 –