Viewing 12 posts - 16 through 28 (of 28 total)
Florian Reischl (9/7/2009)
claudiosil100 (9/7/2009)
Msg 6819, Level 16, State 5, Procedure spiappGetTrv, Line 22The FOR XML clause is not allowed in a INSERT statement.
Oups... didn't ever try this with FOR XML...
September 7, 2009 at 7:52 am
Florian Reischl (9/7/2009)
claudiosil100 (9/7/2009)
IF @SP2
SELECT field1,...
September 7, 2009 at 7:42 am
Florian Reischl (9/7/2009)
claudiosil100 (9/7/2009)
My usp_TestXML return an XML, using FOR XML RAW that it's used by another users/applications I can't...
September 7, 2009 at 7:35 am
would be the perfect way without any 3rd parameter to say if it is normal or is being called by another SP
IF @SP2
SELECT field1, field2, field3
...
September 7, 2009 at 7:26 am
Florian Reischl (9/7/2009)
Try this:
---==============================================
-- we test on tempdb
USE tempdb;
GO
---==============================================
-- a procedure which returns XML
IF (OBJECT_ID('usp_TestXML') IS NULL)
EXECUTE ('CREATE PROCEDURE usp_TestXML AS SELECT 1');
GO
ALTER PROCEDURE usp_TestXML
AS
...
September 7, 2009 at 7:15 am
kruti (9/7/2009)
Hi Cláudio,Kindly provide some sample of your both SPs.
Hi Kruti
something like this
CREATE PROC SP1
@param1 DATETIME,
@param2 INT
AS
SELECT field1,
field2,
field3,
field4,
field5
FROM table1
WHERE field1 = @param2
FOR XML RAW
GO
CREATE PROC SP2
AS
DECLARE...
September 7, 2009 at 6:52 am
sudhanva (9/7/2009)
check the code below:
----------------------------------------
create proc sp_test123
as
begin
SET NOCOUNT ON;
create table #temp ( testName varchar(50))
insert into #temp values ( 'abc'); insert into #temp values ( 'abc1');
insert...
September 7, 2009 at 6:35 am
sudhanva (9/7/2009)
claudiosil100 (9/7/2009)
I can't because the output of SP1 it's an XML
In the 1st SP. Make the return type as varchar or something..
refer below example
--creating some temp table for reference
create...
September 7, 2009 at 5:48 am
savee (9/7/2009)
Have u used a XML variable in your 2ndSP to receive the output?
I can't because the output of SP1 it's an XML
Msg 257, Level 16, State 3, Procedure spiappGetTrv,...
September 7, 2009 at 5:33 am
savee (9/7/2009)
Have u used a XML variable in your 2ndSP to receive the output?
Like
DECLARE @x XML
SET @x = SP @param1, @param2
??
Don't work the return only accept an INTEGER as...
September 7, 2009 at 5:31 am
Let me try to clarify my question
I know that it's possible to create an credential without clear text script going under Security Folder. (Here the password is typed with *****)
But...
August 27, 2009 at 2:06 am
RBarryYoung (8/25/2009)
Which Windows login? The SQL Server's? The SQL Agents? Someone else's?
The one that's logged in at the moment!
Imagine that I have to create an Job including...
August 25, 2009 at 12:42 pm
Viewing 12 posts - 16 through 28 (of 28 total)