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