title: Insert XML into SQL Table XML column
body: <p>Am trying to insert XML into XML Column.. getting following error: .</p>
  
  <p>Msg 6819, Level 16, State 1, Line 5
  The FOR XML clause is not allowed in a INSERT statement.</p>
  
  <p>My SQL query</p>
  
  <pre><code>declare @tempTable Table (xmlValue xml)
  insert into @tempTable
  select EmployeeName, EmployeeSalary from Employee2
  for xml path('EmployeeDetails')
  </code></pre>
  
  <p>what am i doing wrong</p>