Hi All
I keep getting back VINET and not Lilas...can someone point me in the
right direction?
Thanks a lot
DECLARE @idoc int
DECLARE @doc varchar(1000)
SET @doc ='
<ROOT>
<CustomerID>VINET </CustomerID>
<CustomerID>Lilas</CustomerID>
</ROOT>'
--Create an internal representation of the XML document.
EXEC sp_xml_preparedocument @idoc OUTPUT, @doc
-- Execute a SELECT statement that uses the OPENXML rowset provider.
SELECT *
FROM OPENXML (@idoc, '/ROOT',2)
WITH (
CustomerID varchar(100) )