为SQL Server表自动生成INSERT语句的最佳方法是什么?
问题: We are writing a new application, and while testing, we will need a bunch of dummy data. 我们正在编写一个新的应用程序,并且在测试时,我们将需要一堆虚拟数据。 I've added that data by using MS Access to dump excel files into the relevant tables. 我通过使用MS Access将excel文件转储到相关表中来添加该数据。 Every so often, we want to "refresh" the relevant tables, which means dropping them all, re-creating them, and running a saved MS Access append query. 每隔一段时间,我们要“刷新”相关表,这意味着将它们全部删除,重新创建它们并运行保存的MS Access附加查询。 The first part (dropping & re-creating) is an easy sql script, but the last part makes me cringe. 第一部分(删除和重新创建)是一个简单的sql脚本,但最后一部分让我感到有些畏缩。 I