What is the best way to auto-generate INSERT statements for a SQL Server table?

前端 未结 23 1781
难免孤独
难免孤独 2020-11-22 09:47

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 table

23条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 10:12

    GenerateData is an amazing tool for this. It's also very easy to make tweaks to it because the source code is available to you. A few nice features:

    • Name generator for peoples names and places
    • Ability to save Generation profile (after it is downloaded and set up locally)
    • Ability to customize and manipulate the generation through scripts
    • Many different outputs (CSV, Javascript, JSON, etc.) for the data (in case you need to test the set in different environments and want to skip the database access)
    • Free. But consider donating if you find the software useful :).

提交回复
热议问题