Copy SQL database (and ASP.NET user database) from live into test system
Posted on 2010-09-11
on my web server I have SQL databases containing my data (named Live) and the ASP.net users (named Live_aspnetdb). These I would like to copy into my test database (named Test and Test_aspnetdb), which reside on the same server.
So far I have restored database backups from Live and Live_aspnetdb to Test and Test_aspnetdb, but after that had to fix access rights manually, because the SQL users that can access the Live db may not access the Test db and vice versa. Having to do this for every such Copy process is pretty time consuming...
What is the best way to quickly copy the contents of the Live dbs into to Test dbs, without having to manually adjust access rights?
Thanks a lot!