【发布时间】:2014-04-07 13:31:55
【问题描述】:
我需要读取存储在 SQL Server 2008 R2 中的 XML 数据类型的 XML 文档。
其实我是新手。我正在使用 SQL Server 2008 和 ASP.NET 4.0。我在 SQL 端以 XML 形式存储数据表 (.NET)。
这是一个将 XML 存储在 SQL Server 中的表列中的示例。好像我有10多列,这里需要选择最后插入的4列<Data />
"really a nice solution file"
请从下面的xml文件中帮忙
提前致谢
<Section xml:space="aligned" Paste="False" xmlns="http://schemas.microsoft.com">
<Para FontSize="11" FontWeight="Normal" FontStyle="Normal" TextAlignment="Left">
<Data Text="really a nice solution, but i have an other issue that want to create its xml file" />
</Para>
</Section>
<Section xml:space="aligned" Paste="False" xmlns="http://schemas.microsoft.com">
<Para FontSize="11" FontWeight="Normal" FontStyle="Normal" TextAlignment="Left">
<Data Text="really a nice solution file" />
</Para>
</Section>
这是我的表结构
ID Name XMLContent CreatedDate | Modified
--------|------------|------------------|------------------------|-----------------------------------------
1 | CATEGORYID |<Section xml:space="aligned" Paste="False".| |2011-04-05 12:28:15.030 |
2 | 114 |<Section xml:space="aligned" Paste="False".|2011-04-05 12:28:15.030 |
我需要得到类似的答案
1 |really a nice solution, but i have an other issue that want to create its xml file|
2 |really a nice solution, |
【问题讨论】:
标签: c# asp.net xml sql-server-2008