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.
我们的 ASP.NET 应用程序中有一个数据表。它拥有 800 多条记录。现在我们需要使用 SQL Server 存储过程将所有这些记录一次性存储到数据库中。
请让我知道实现它的最佳方法和参考代码示例。
谢谢,问候。文卡特。
SqlBulkCopy
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopy.aspx
http://msdn.microsoft.com/en-us/library/7ek5da1a(VS.80).aspx
http://www.codeproject.com/KB/database/SqlBulkCopy.aspx
您是否考虑过SqlBullCopy 类?