Renaming the Logical Filename

This stored procedure was created to allow one to change logical file names of datbase files in a 7.0 database. After doing a restore with the move option, one can change the physical file path and physcal file name, but not the logical name. This posed a problem because some have internal standards for database names and for logical and physical file names.

Author: Joe Toscano

Download Script:

We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…

Disclaimer Continued

Back to Database Journal Home

Latest Articles