TSQL syntax to restore .bak to new db
Posted
by justSteve
on Stack Overflow
See other posts from Stack Overflow
or by justSteve
Published on 2010-04-27T12:20:36Z
Indexed on
2010/04/27
12:23 UTC
Read the original article
Hit count: 548
tsql
I need to automate the creation of a duplicate db from the .bak of my production db. I've done the operation plenty of times via the GUI but when executing from the commandline I'm a little confused by the various switches, in particular, the filenames and being sure ownership is correctly replicated.
Just looking for the TSQL syntax for RESTORE that accomplishes that. thx
© Stack Overflow or respective owner