Last active
May 28, 2019 11:03
-
-
Save arkuznetsov/4c1e70339544bbfa9ff943cae3a6b3f4 to your computer and use it in GitHub Desktop.
SQL change logical file name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [master] | |
ALTER DATABASE [MyDatabase] MODIFY FILE (NAME = N'CurrentLogicalFileName', NEWNAME = N'NewLogicalFileName') | |
go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment