StormbringerX
Programmer
Hi everyone.
I'm looking for some input as to the best way to create a copy of an entire database. Basically, I need to take an entire database and copy it to a NEW name, while retaining all permissions, stored procedures, etc...
The reason for this is the user needs to be able to perform a lot of statistical analysis on the data that is contained in the original database. And the results of these computations need to be refelected in the database so that OTHER analysis can be preformed. We don't want to modify the original database as that is our 'control' data.
I have tried to use the Backup DATABASE and RESTORE DATABASE, however I run into the problem that RESTOREing it to another name causes problems.
I need to be able to run this in a stored procedure that will be called from a VB program.
I hope this is enough information. Thanks for your help.
Dave
I'm looking for some input as to the best way to create a copy of an entire database. Basically, I need to take an entire database and copy it to a NEW name, while retaining all permissions, stored procedures, etc...
The reason for this is the user needs to be able to perform a lot of statistical analysis on the data that is contained in the original database. And the results of these computations need to be refelected in the database so that OTHER analysis can be preformed. We don't want to modify the original database as that is our 'control' data.
I have tried to use the Backup DATABASE and RESTORE DATABASE, however I run into the problem that RESTOREing it to another name causes problems.
I need to be able to run this in a stored procedure that will be called from a VB program.
I hope this is enough information. Thanks for your help.
Dave