How can I do to insert rownumber in this situation (xml)
Rather than using a IDENTITY column, you can add a row_number column to your query:row_number() OVER( ORDER BY NFE.DATA, PAG.DATA)
View ArticleHow can I do to insert rownumber in this situation (xml)
Hi haichu1,In reality you don't need line # coming from the XML.Please follow the following steps:Add an IDENTITY column to your target table. Its responsibility to provide you unique "line #" on the...
View ArticleHow can I do to insert rownumber in this situation (xml)
;WITH XMLNAMESPACES(DEFAULT 'http://www.abc/nfe')SELECTPAG.DATA.value('(tPag/text())[1]' ,'CHAR(2)' ) AS LINHA2,PAG.DATA.value('(tPag/text())[1]' ,'CHAR(2)' ) AS...
View Article
More Pages to Explore .....