[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1346
  • Last Modified:

logical file name is different in sys.database_files vs sys.master_files

The logical name of a database file went out sync after running following statement.

ALTER DATABASE UserDataBase MODIFY FILE (NAME = 'FileNameOld', NEWNAME = 'FileNameNew')

It updated the name column of sys.master_files table correctly to "FileNameNew" but the name column of sys.Database_files table remained as "FileNameOld".

Does anyone know the cause of it and how to fix the problem? Thanks in advance.
0
Merion
Asked:
Merion
1 Solution
 
lcohanDatabase AnalystCommented:
You need to do a SQL server service re-start for the change to take place but it may be tricky in cluster environment. If your db is attached to a SQL server not a SQL cluster then restart should do it.
0
 
MerionAuthor Commented:
That was it. Thank you.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now