I am restoring a Bak file
RESTORE DATABASE WEbERP2 FROM DISK = 'c:\r\WEbERP_backup_201105210100.bak' WITH REPLACE , MOVE 'WEbERP' TO 'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WEbERP2.mdf', MOVE 'WEbERP_log' TO 'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\WEbERP2_log.ldf',REPLACE
Im restoring it AS WEbERP2 // 2 !!!
and it works.
Db opens as a new Db with the name: WEbERP2
But the logical name is still: WebErp.
I know the functionality is fine.
But still itโs hard for me to understand his customs.

I know I can change it:
ALTER DATABASE xxx MODIFY FILE (NAME=N...
But I want to understand his customs and when it is important to change him.
source share