Re: using a xpath variable in a replace xquery, getting an error
- From: "JCollum" <jcollum@xxxxxxxxx>
- Date: 3 Nov 2006 16:37:20 -0800
I thought I'd be able to get around it with the nodes command but no
go:
SELECT T.c.query('.') AS XmlResult
FROM @xml.nodes('sql:variable("@xpath")') T(c)
Same error. It works if I put in the xpath itself. Now I'm really
ticked because I spent a solid day developing a trigger in my database
that was based on xpath variables as an input. Guess what: you can't do
that. You apparently can't even build up a string or anything.
It's a literal hardcoded xpath or nothing. Now where in all of the .NET
world will you find similar behavior? Can't think of any place.
.
- Follow-Ups:
- References:
- Prev by Date: using a xpath variable in a replace xquery, getting an error
- Next by Date: Re: using a xpath variable in a replace xquery, getting an error
- Previous by thread: using a xpath variable in a replace xquery, getting an error
- Next by thread: Re: using a xpath variable in a replace xquery, getting an error
- Index(es):
Loading