0
獲得XML記錄到臨時表中,我有以下XML無法通過OPENXML
<NewDataSet>
<data name="AC_Capacity_Creation_Notification.Text">
<value>Activation successfull and sent for approval.</value>
<comments>AC Capacity</comments>
</data>
<data name="AC_Capacity_Modification_Daily_Notification.Text">
<value>Approved successfully..</value>
<comments>AC Capacity</comments>
</data>
<data name="AC_Capacity_Modification_Schedule_Notification.Text">
<value>Are you sure you want to close this form?</value>
<comments>AC Capacity</comments>
</data>
</NewDataSet>
我想從那裏我可以進一步查詢它從該XML數據放入臨時表中,但我不能這樣做所以
我曾嘗試做這種方式:
EXEC sp_xml_PrepareDocument @intHandle OUTPUT, @XML
SELECT * into #tmp FROM OPENXML(@intHandle, '/NewDataset/data',2)
EXEC sp_xml_removedocument @intHandle
drop table #tmp
,但我得到空行
它的工作原理,但我也想要名字的價值...雖然我已經發布了自己的答案...謝謝你的努力... – daljeet