Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在使用 WCF SQL 适配器将消息记录到数据库,但是消息本身有几个字符需要在 xml 中转义,即我的消息看起来像这样 'abc&d',那么如果我使用类型化存储过程,我将拥有问题。有什么解决方法吗?谢谢。
您需要更改数据源以提供有效的 xml。没有我知道的解决方法。
仅供参考:我还发现我们的 sql server 可以生成无效的 xml。具体来说,它不会转义一些不可打印的字符。我们在相反的方向遇到了问题。我们将存储过程的输出消耗到 BizTalk 中。