I need to automate the creation of a duplicate db from the .bak of my production db. I did the operation many times through the graphical interface, but when executed from the command line, various switches confuse me a bit, in particular, file names and confidence in replication.
Just find the TSQL syntax for RESTORE that will do this.
source share