Comments on: March Madness – SQL Server System Tables – fn_virtualfilestats https://thomaslarock.com/2011/03/march-madness-sql-server-system-tables-fn_virtualfilestats/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Fri, 25 Mar 2011 17:39:21 +0000 hourly 1 https://wordpress.org/?v=6.8 By: Thomas LaRock https://thomaslarock.com/2011/03/march-madness-sql-server-system-tables-fn_virtualfilestats/#comment-2407 Fri, 25 Mar 2011 17:39:21 +0000 http://thomaslarock.com/?p=5526#comment-2407 In reply to James Lean.

James,

Yes, that is very possible. Are you running with Service Pack 4? Let me know your version number and I’ll see about updating the code example.

]]>
By: James Lean https://thomaslarock.com/2011/03/march-madness-sql-server-system-tables-fn_virtualfilestats/#comment-2406 Fri, 25 Mar 2011 17:33:15 +0000 http://thomaslarock.com/?p=5526#comment-2406 When I tried this on SQL 2000 I found I had to prefix the function name with ::. I also had to use -1 rather than NULL to return info for all databases/files.

Is that the same for you or have I missed something?

— James

]]>