Bulk insert nested xml with foreign key as identity column of first table
问题 I have an xml as follows: <Records> <Record> <Name>Best of Pop</Name> <Studio>ABC studio</Studio> <Artists> <Artist> <ArtistName>John</ArtistName> <Age>36</Age> </Artist> <Artist> <ArtistName>Jessica</ArtistName> <Age>20</Age> </Artist> </Artists> </Record> <Record> <Name>Nursery rhymes</Name> <Studio>XYZ studio</Studio> <Artists> <Artist> <ArtistName>Judy</ArtistName> <Age>10</Age> </Artist> <Artist> <ArtistName>Rachel</ArtistName> <Age>15</Age> </Artist> </Artists> </Record> </Records> This