title: Getting 'The argument 1 of the xml data type method "modify" must be a string literal' while inserting a attribute in xml
body: <p>Trying the following code. But getting  'The argument 1 of the xml data type method "modify" must be a string literal'  error. searched alot but cant find any solution for this problem</p>
  
  <pre><code>SET @Path = '/@ParentNodeName/@NodeName/child::*'
  SET @x.modify('insert attribute status {sql:variable("@status")}
                 as first into (' + @Path + ')[1]')
  </code></pre>