Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

sys.sysaltfiles and sys.database_files showing different physical file names for same database

$
0
0

Hi All,

I restored a database from our PROD instance to reporting instance. While restoring through ssms i have selected the appropriate path in the "restore as" option and also selected standby mode. The DB is restored and is in standby mode and all users are able to access without any problem.

I checked with sys.sysaltfiles to see the path where exactly my mdf,ndfs and ldf are located. Its showing the path which is selected in the "restore as" option during restore. When i checked with the sys.database_files for the same DB, the physical filename which is see is the PROD DBs mdf,ndfs and ldf.

How it is possible to get two totally different physical paths for a DB when using sys.sysaltfiles and sys.database_files?

When i checked manually in the path which is selected in the "restore as" option, the files are created at the time i did the restore?

Im clueless about where exactly my datafiles and log file are now.

Thanks



Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>