开发者

how do I re-duplicate sql server database?

开发者 https://www.devze.com 2023-01-15 10:27 出处:网络
I would like to stress test my database, which is a hospital patient database. The current one is 2 GB. I would like to have a 100GB database, so I would like do the following:

I would like to stress test my database, which is a hospital patient database.

The current one is 2 GB. I would like to have a 100GB database, so I would like do the following:

1) read each patient record 2) create a new, fake patient id, and store back to database 3) repeat until size reaches 100GB

What is the easiest way of doing this开发者_开发技巧? Are there tools for this?

Thanks!


Are you familiar with SSIS? If so, you can change your PK to add a 2G value to make it unique, then copy all the rows from your source table back to the same table as the destination.

0

精彩评论

暂无评论...
验证码 换一张
取 消