I am writing the following stored procedureAlter Proc Sproc_Employer_Retrieve_GetEmployeesByEmployer@EmployerID intasexec SpProductionDB.dbo.Sproc_Employer_GetEmployees @EmployerIDinto PIUMSSite.#TmpSelect *, coalesce(b.ChangedStatusID,0) as PendingfromPIUMSSite.#Tmp aLeft JoinPIUMSSite.T_Changed_Employee bon a.EmployeeID = b.EmployeeIDwhere b.ChangeStatusID = 1
Does anyone know how to achieve a select Into on a stored procedure? Is there any way?