I have a test table
//---------------------------
name varchar(32)
version varchar(16)
profile XML
//---------------------------
The content of the XML file is
<sampleprofil e name="joe" version="123">
<phone>12345678 9</phone>
...
...
</sampleprofile>
//------------------------------------
While inserting a new row , I want to populate the 'name' and
'version' columns from the content of the XML data.
Is it possible to write a Trigger to manupulate the XML data before
its inserted? To make thing more interesting the table has a unique
index on name+version.
//---------------------------
name varchar(32)
version varchar(16)
profile XML
//---------------------------
The content of the XML file is
<sampleprofil e name="joe" version="123">
<phone>12345678 9</phone>
...
...
</sampleprofile>
//------------------------------------
While inserting a new row , I want to populate the 'name' and
'version' columns from the content of the XML data.
Is it possible to write a Trigger to manupulate the XML data before
its inserted? To make thing more interesting the table has a unique
index on name+version.
Comment