Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 What am i missing....

Author  Topic 

pithhelmet
Posting Yak Master

183 Posts

Posted - 2008-02-21 : 11:53:24
DECLARE @SQL nvarchar(300)
DECLARE @Params nvarchar (200)
DECLARE @DOC XML

SET @SQL = N'SET @DOCOUT = (SELECT * FROM clnmas FOR XML RAW)'
SET @Params = N'@DOCOUT XML OUTPUT'
EXEC sp_executesql @SQL, @Params, @DOCOUT = @DOC OUTPUT
SELECT @DOC


I get an error....

Server: Msg 2715, Level 16, State 3, Line 1
Column or parameter #-3: Cannot find data type XML.
Parameter '@DOC' has an invalid data type.


thanks
tony

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2008-02-21 : 11:56:27
You got answer here: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=97696

Please don't post similar question in two different threads.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -