Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

stored procedure return update statemnts / temp table

$
0
0

can a stored procedure return an update statement as output

stored procedure :

select BusinessEntityID, into #temp from [HumanResources].[Employee]
where jobtitle ='Engineering Manager'

o/p :update ph
set ph.payfrequency=10*2
from [HumanResources].[EmployeePayHistory] ph  where BusinessEntityID in (select * from #temp)

or can we use an another alternative by which we get an similar output


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>