Besides creating a new database and timing it, is there a simple way to determine whether or not Instant File Initialization is enabled/functioning?
(on Windows Server 2008 Enterprise)
Besides creating a new database and timing it, is there a simple way to determine whether or not Instant File Initialization is enabled/functioning?
(on Windows Server 2008 Enterprise)
Using ntrights.exe, check if the SeManageVolumePrivilege priviledge is granted. IF you prefer a 'built in' tool, use secedit /export /areas USER_RIGHTS.
See here:
Control Panel->Administration->Local Security Policies->Local Policies->User Rights->Perform Volume Maintenance Tasks
In the past I've used this method by John Sansom: http://www.johnsansom.com/sqlserver-instant-file-initialization/
Simple SQL script involving trace flags.
secedit /export /areas USER_RIGHTS /cfg foo.txtif you need a working example. I did not post that because I found the idea of a command line tool that requires an output file and does not use the stdout quite embarrassing. Pipe intogrep, anyone? – Remus Rusanu Jan 17 '12 at 19:24TokenPrivilegesclass shouldn't be too hard... – Remus Rusanu Jan 17 '12 at 19:29