Group: microsoft.public.sqlserver.xml · Group Profile · Search for Extract and Insert Xml nodes in microsoft.public.sqlserver.xml
Author: Bob
Date: Aug 28, 2008 03:41
... @debug_yn = 1 SELECT @sql -- Extract loaded XML EXEC sp_executesql @sql, N'@xml...x.y.value( '@type', 'SYSNAME' ) FROM @xml.nodes( '//xs:element' ) x(y) ...Add sql:is-constant attribute SET @xml.modify( 'declare namespace sql="urn:schemas-microsoft-com:mapping-schema"; insert attribute sql:is-constant{1} ... IF @debug_yn = 1 -- Inspect the XML afterwards SELECT 'After' AS source,...
|