SQLSRV and multiple selects in Stored Procedure
问题 I have a Stored Procedured which creates a temporary table (#test), fills it with data from another table, runs 3 selects on this temporal table and drops it. The original table it's over 20 GBs big and the 3 SELECT statements contain a lot of different conditions on the original SP. I'm executing the SP from PHP using SQLSRV however I can only manage to retrieve the 2 first result sets. If I run the SP from MSSMS it will run just fine and returns the 3 resultsets as expected. But from PHP it