That statement should be
insert into @tblData
USE study
GO
CREATE PROCEDURE uspAnotherProcedure
AS
SELECT employee_id, department_id, salary FROM employees WHERE department_id Is null
USE DB2
GO
CREATE procedure uspGetData
As
BEGIN
declare @tblData table( empid INT, deptid INT, sal DEC(8,2))
insert into @tblData
exec study.dbo.uspAnotherProcedure
SELECT * FROM @tblData
END
EXEC uspGetData
--
Chandu