Je hebt alleen een WHERE
. nodig clausule denk ik.
INSERT INTO SN_IO ( [C1] ,[C2] ,[C3] )
SELECT [C1] ,[C2] ,[C3]
FROM OPENXML (@currRecord, 'ios/io', 1)
WITH ([C1] [varchar](25) 'C1',
[C2] [varchar](25) 'C2',
[C3] [varchar](20) 'C3' )
WHERE [C1] IS NOT NULL AND [C2] IS NOT NULL AND [C3] IS NOT NULL
Of je kunt het in plaats daarvan in XPath doen, wat volgens mij efficiënter is
FROM OPENXML (@currRecord, 'ios/io[C1 and C2 and C3]', 1)