July 22, 2020 at 10:44 am
Morning Guys,
How can I get the correct file path from sysfiles (or anywhere in the database with t-sql) when the db is the read only replica.
It appears that sysfiles shows the location of the files on the principle database not on the replica. In this case the are in different locations.
Cheers
Alex
July 22, 2020 at 11:15 am
Ah, looks like sys.sysaltfiles is what I needed.
July 22, 2020 at 3:40 pm
That's deprecated. I think you want master.sys.master_files
July 22, 2020 at 3:53 pm
Ah, yes good point! Cheers Steve!
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy