Viewing 5 posts - 1 through 5 (of 5 total)
@kevin, Thanks for your response. I managed to solve this, given below sample code.
INSERT INTO @mstab
SELECT [mId]
, [tId]
, [msDate]
FROM [dbo].[MS]
WHERE ([msName] NOT LIKE 'forecastedDate' AND [msName]...
May 28, 2016 at 3:30 pm
Hi Riaan,
After a little struggle, I fixed the "The metadata could not be determined..." . I had to prefix the complete db and user name before the stored proc...
February 27, 2016 at 10:30 am
Hi Riaan,
INSERT INTO @temp VALUES
(
(SELECT * FROM OPENQUERY([INTL-DBSERVER], 'EXEC spGetCriticalGapsForATransition @transitionId = 1') FOR XML AUTO, ELEMENTS),
(SELECT * FROM OPENQUERY([INTL-DBSERVER], 'EXEC spGetCriticalIssuesForATransition @transitionId = 1') FOR XML AUTO, ELEMENTS)
);
select...
February 27, 2016 at 8:05 am
#Grasshopper, the compiler isnt happy. It fails at the first param of OPENQUERY itself.
DECLARE @server_name VARCHAR(100);
SELECT @server_name = @@SERVERNAME;
DECLARE @temp TABLE
(
Gaps XML,
Issues XML
)
INSERT INTO @temp VALUES
(
(SELECT *...
February 27, 2016 at 4:59 am
I'm looking for a similar solution, but instead of the 3 select statements, the values will come from 3 stored procs. I tried replacing the procs, get error.
INSERT...
February 27, 2016 at 4:16 am
Viewing 5 posts - 1 through 5 (of 5 total)