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.
我已经成功使用 OpenXML 有一段时间了,但是当有时传递给 sql 的 xml 字符串太大而无法适应参数时,我遇到了一个问题。
如何解决这个问题,而不是仅仅限制数据表长度以适应 xml 字符串。
谢谢
你为什么要读入字符串?这是一个 zip 文件,因此可以将其以二进制模式直接放入 OpenXML SDK。或者,如果您不在 .net 中,也可以直接进入您正在使用的任何 zip 文件库。
使用 xml 而不是 varchar 将数据传递给 t-sql