我有这样的xml文件
<SamplingPlanProject>
<CoordinateSystem>Lat/Long</CoordinateSystem>
<InputUnits>M</InputUnits>
<ProjectEngineerFirstName>Scott</ProjectEngineerFirstName>
<ProjectEngineerLastName>Deaton</ProjectEngineerLastName>
<ProjectName>1</ProjectName>
<ProjectNumber>Test Project</ProjectNumber>
<SamplingPlanProjectGUID>e91da635-0b5d-4e15-b71e-8e1986cf7a9d</SamplingPlanProjectGUID>
<SamplingPlanProjectSite>
<SiteID>Test Site</SiteID>
<SamplingPlanProjectSiteGUID>42113b66-92b2-4387-b17b-3a346b980f3c</SamplingPlanProjectSiteGUID>
</SamplingPlanProjectSite>
</SamplingPlanProject>
现在如何将这些元素值添加到 SQL Server 表中?我有单独samplingplanprojectsite
的表,其中包含列siteid
,SamplingPlanProjectSiteGUID
并且SamplingPlanProjectGUID
任何人都可以帮助形成这个吗?
如何为此编写代码以获取值rows