Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange result

Status
Not open for further replies.

esdee

Programmer
Apr 12, 2001
143
US
i have this query in sql2000:

declare @XML nvarchar(1024),
@idoc int
set @XML = '<App>
<Nam>AAAA</Nam>
<Nam>BBBB</Nam>
</App>'
exec sp_xml_preparedocument @idoc output, @XML
select *
from openxml(@idoc, '/App', 2)
with
(Nam nvarchar(128) '../App/Nam')

My question is: why would it return 1 row when it should return two result rows ??
could anyone help ???
 
i got an answer
thanx anyway
 
stoyanbd

It would be useful if you would share your answer with the rest of us......

It is important to use these types of groups for both asking questions, but also providing help and assistance, so that if someone else has a similar question they don't have to start a new posting !!!!

Thanks v. much


OLAPer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top