We are running exec xp_fixeddrives
to get the free space for each physical drive associated with the SQL Server.
I am running this code as part of an SSIS package which fetches all the SQL servers free space.
Currently I am creating a table in tempdb
and inserting the results of exec xp_fixeddrives
into this table. But the issue I am facing is, when ever the server is restarted I am facing access issue as the table is on Tempdb
.
I don't really like the idea of creating a table in Master
DB or Model
DB. A challenge I am facing is we execute on difference instance of SQL Server versions ranging from 2000 - 2014. So obviously there are issues I have to keep in mind.
Any suggestion on this are much appreciated.