<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Do you have Instant File Initialization?</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx</link><description>You might ask yourself: What is Instant File Initialization and why does it matter? What Instant File Initialization is: Instant File Initialization allow SQL Server to allocate storage (space from disks) very very quickly. As you probably know, when</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Do you have Instant File Initialization?</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx#12503</link><pubDate>Mon, 09 Mar 2009 19:31:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12503</guid><dc:creator>jerryhung</dc:creator><description>&lt;p&gt;Good article I always use&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.mssqltips.com/tip.asp?tip=1572"&gt;http://www.mssqltips.com/tip.asp?tip=1572&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For some reason I kept thinking this is a 2005 Enterprise feature, guess not. &lt;/p&gt;
</description></item><item><title>re: Do you have Instant File Initialization?</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx#12548</link><pubDate>Tue, 10 Mar 2009 21:34:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12548</guid><dc:creator>Scott R.</dc:creator><description>&lt;p&gt;Tibor,&lt;/p&gt;
&lt;p&gt;Great post! &amp;nbsp;A lot of energy was spent on promoting this feature when SQL 2005 was being released, but the attention has fallen off over time. &amp;nbsp;A reminder of this benefit and how to get it is a good thing.&lt;/p&gt;
&lt;p&gt;As you mentioned, Instant File Initialization applies only to database files, and does not apply to log files (still initialize the old, slower way).&lt;/p&gt;
&lt;p&gt;I found another way to confirm if you have the Manage Volume privilege for the SQL Server service account: use the Sysinternals command line utility AccessChk (free download at &lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/en-us/sysinternals/bb664922.aspx"&gt;http://technet.microsoft.com/en-us/sysinternals/bb664922.aspx&lt;/a&gt;), using the following command line parameters:&lt;/p&gt;
&lt;p&gt;accesschk.exe -p sqlservr.exe -t -v -q –f&lt;/p&gt;
&lt;p&gt;The SeManageVolumePrivilege will show up in the list followed by either “ENABLED” or “DISABLED”.&lt;/p&gt;
&lt;p&gt;I believe AccessChk will also report on the status of the “Lock Pages in Memory” privilege that can be important to some SQL Server instances (32-bit using AWE, possibly x64 64-bit?).&lt;/p&gt;
&lt;p&gt;These privileges are associated with the service account used by the SQL Server DB engine service, and can be harder to confirm through conventional security administration tools if you are not a security administrator (as most of us are not).&lt;/p&gt;
&lt;p&gt;Paul Randal had a few good posts on this topic awhile back:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://sqlskills.com/BLOGS/PAUL/post/How-to-tell-if-you-have-instant-initialization-enabled.aspx"&gt;http://sqlskills.com/BLOGS/PAUL/post/How-to-tell-if-you-have-instant-initialization-enabled.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://sqlskills.com/BLOGS/PAUL/post/Follow-on-from-instant-initialization-privilege-checking.aspx"&gt;http://sqlskills.com/BLOGS/PAUL/post/Follow-on-from-instant-initialization-privilege-checking.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Scott R.&lt;/p&gt;
</description></item><item><title>re: Do you have Instant File Initialization?</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx#12566</link><pubDate>Wed, 11 Mar 2009 17:14:43 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12566</guid><dc:creator>TiborKaraszi</dc:creator><description>&lt;p&gt;Hi Jerry and Scott,&lt;/p&gt;
&lt;p&gt;Thanks. I realized after posting this that there already are plenty of blog posts on this. But, as Scott said, a reminder can't harm. After some discussion, it seems I was incorrect in who does the zeroing out of disk (when we don't have IFI) - it seems it is SQL Server.&lt;/p&gt;
&lt;p&gt;Also, Paul Randal just yesterday blogged about some commong misconceptions around IFI:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.sqlskills.com/BLOGS/PAUL/post/Misconceptions-around-instant-file-initialization.aspx"&gt;http://www.sqlskills.com/BLOGS/PAUL/post/Misconceptions-around-instant-file-initialization.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Do you have Instant File Initialization?</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx#25015</link><pubDate>Tue, 11 May 2010 09:59:13 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25015</guid><dc:creator>Gy. Herman</dc:creator><description>&lt;p&gt;(sysinternals)&lt;/p&gt;
&lt;p&gt;Process Explorer-&amp;gt;sqlservr.exe-&amp;gt;right click Properties-&amp;gt;Security tab\Privilage listbox also shows if SeManageVolumePrivilege is assigned to the service account user.&lt;/p&gt;
</description></item><item><title>Does the tempdb Log file get Zero Initialized at Startup?</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx#25138</link><pubDate>Fri, 14 May 2010 00:13:57 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:25138</guid><dc:creator>The Rambling DBA: Jonathan Kehayias</dc:creator><description>&lt;p&gt;While working on a problem today I happened to think about what the impact to startup might be for a&lt;/p&gt;
</description></item><item><title>re: Do you have Instant File Initialization?</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx#46403</link><pubDate>Tue, 27 Nov 2012 01:27:55 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46403</guid><dc:creator>Kipb7</dc:creator><description>&lt;p&gt;Thanks, very handy.&lt;/p&gt;
&lt;p&gt;Another pattern for timing, expressing time in seconds:&lt;/p&gt;
&lt;p&gt;declare @t1 datetime2=SYSDATETIME()&lt;/p&gt;
&lt;p&gt;SELECT TOP 1 * FROM sys.columns A --slow thing&lt;/p&gt;
&lt;p&gt;JOIN sys.columns B ON A.object_id&amp;gt;B.object_id &lt;/p&gt;
&lt;p&gt;WHERE A.object_id&amp;lt;1000 ORDER BY A.object_id^B.object_id&lt;/p&gt;
&lt;p&gt;print datediff(ms, @t1, SYSDATETIME())*.001&lt;/p&gt;
&lt;p&gt;print convert(varchar,datediff(ms,@t1,sysdatetime())*.001)+' seconds'&lt;/p&gt;
&lt;p&gt;SELECT datediff(ms, @t1, SYSDATETIME())*.001 AS LargeLogFile&lt;/p&gt;
</description></item></channel></rss>