<Recording xmlns="http://www.m5net.com/test/configuration/connectors" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Id>16607</Id>
<Mode>1</Mode>
<Enable>true</Enable>
<Notification i:nil="true" />
<Notify>false</Notify>
</Recording>
I need to extract the value of mode . This is config column from a ModeConfiguration table .
I have tried
SELECT
config.Value('(/Recording//Mode)[1]', 'varchar(max)') as int
FROM ModeConfiguration
but looks like the namespace is not getting considered correctly .
