且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

处理SQL Server 2008中从C#多个数据库更新

更新时间:2023-02-07 09:10:14

是的,你需要创建的类型。

Yes, you need to create the types.

替代发送一个大字符串SQL批处理或通过XML来存储过程。

Alternatives are sending a big string sql batch or passing XML to sprocs.

这样做的缺点大的SQL字符串批次是可以吹的SQL PROC缓存,并可能导致SQL重新编译 - 特别是如果该批次是因为输入的数据是,大型字符串的一部分是独一无二的。从定义上每批将是独一无二的。

The downside to big sql string batches is it can blow the sql proc cache and might cause sql to recompile - especially if the batch is unique because of input data being part of that large string. By definition each batch would be unique.

XML是前***居民入境许可证的主要替代品。一个缺点为XML,至少有一段时间,SQL Azure的不支持它(这可能会改变?),所以它会限制你的选择。

XML was the main alternative before TVPs. The one downside to XML, for at least awhile, sql azure didn't support it (that might change?) so it limits your options.

***居民入境许可证似乎是做到这一点的方法。我们的项目只是转换为***居民入境许可证使用。

TVPs seem to be the way to do this. Our project just converted to using TVPs.

希望有所帮助。