Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Esegui la procedura memorizzata nella tabella temporanea dinamica

SELECT * INTO #TempTable 
FROM OPENROWSET
('SQLNCLI','Server=(local)\SQL2008R2;Trusted_Connection=yes;',
     'EXEC OtherDb.DataProd.abc')

SELECT * FROM #TempTable