Hi thereDECLARE @xmlDoc NVARCHAR(MAX)DECLARE @handle INTSET @xmlDoc ='<?xml version="1.0" encoding="utf-16"?><Data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><FileInfo><Copyright>Me</Copyright></FileInfo><Names><Name> <NameID/> <Type>G</Type> <Name>Special Bear</Name></Name></Names></Data>'EXEC sp_xml_preparedocument @handle OUTPUT, @xmlDoc-- Execute a SELECT statement that uses the OPENXML rowset provider.--INSERT INTO dbo.stgArtistsSELECT NameID , Type , Name FROM OPENXML (@handle, '/Data/Names/Name',2) WITH (NameID varchar(255), [Type] varchar(255), [Name] varchar(255))EXEC sp_xml_removedocument @handle
returns the following resultNameID Type name G Special Bear
I would like NameID to be NULL. How do I go about doing that?ThanksIf you don't have the passion to help people, you have no passion