Afficher un message
Vieux 31/03/2008, 16h34   #2
Plamen Ratchev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: delete output into <xml column of audit table>

You cannot do it in a single statement because the OUTPUT clause does not
support subqueries. One way is to get the deleted rows into a temp table and
then transfer as XML to your audit table.

Here is one example of implementing this in a trigger:
http://blogs.sqlservercentral.com/pr...-with-xml.aspx

HTH,

Plamen Ratchev
http://www.SQLStudio.com

  Réponse avec citation
 
Page generated in 0,04027 seconds with 9 queries