DaFou
asked on
paramater in xquery modify delete statement
Hi All,
I have a stored procedure with a param @culture char(5)
How do I use that param in an xquery modify delete statement?
DECLARE @modified xml
.... additional code setting the @modified
SET @modified.modify('delete (//Properties/Cultures/Cul ture[@cult ureName != "{ xs:string(sql:variable("@c ulture")) }"])')
error:
XQuery [modify()]: Syntax error near '@', expected ']'
I have a stored procedure with a param @culture char(5)
How do I use that param in an xquery modify delete statement?
DECLARE @modified xml
.... additional code setting the @modified
SET @modified.modify('delete (//Properties/Cultures/Cul
error:
XQuery [modify()]: Syntax error near '@', expected ']'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.