Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Tempdb files no.s are different in different sytem tables.

$
0
0

Hi All

One more weird issue. Please suggest whats causing same

I have one prod server which doesn't have any high availablity options configured. Today when i tried to find no of data and log files for tempdb i got different output from different sytem tables.

I tried below

  • Select*FROM sysfiles
  • Select*  FROMsys.database_files
  • Select*from sys.master_fileswhere database_id = 2
  • select*from sys.sysaltfileswhere dbid=2 orderby fileid
  • check database properties from GUI
  • Physically checked tempdb files on disk

Outputs: 

  • 1 Set of ouput from : sysfiles and sys.database_files – Showing 3 files (2 data and 1 log file)
  • 2nd Set of output from : sys.master_files and sys.sysaltfiles – Showing 7 files (5 data and 1 log file)
  • 3<sup>rd</sup> set of output from database properties (2 data and 1 log file)
  • 4<sup>th</sup> Set of output physically checked files 5 files (3 data file and 2 log file)


Thanks Saurabh Sinha http://saurabhsinhainblogs.blogspot.in/ Please click the Mark as answer button and vote as helpful if this reply solves your problem


Viewing all articles
Browse latest Browse all 12963

Trending Articles



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