January 4, 2013 at 8:23 am
Dear friend
I have read and applied the instant file initialization but there is no difference?
first : I deleted the database and restored it -- it tooks 5 minites
second: I appplied local security pliocy -- security settings -- user rights assignments -- perform volume maintenance tasks. I double click on it and add sql users and groups , then reboot the device.
third : I delete the database then restored it expecting a difference or shrinking restoration time. but the result was same.
the question is why there is no differences after these changes.
the souces of knowldge is : http://timradney.com/2012/05/30/instant-file-initialization-for-sql-server-performance/
Thank you very much
January 4, 2013 at 8:31 am
zi (1/4/2013)
Dear friendI have read and applied the instant file initialization but there is no difference?
first : I deleted the database and restored it -- it tooks 5 minites
second: I appplied local security pliocy -- security settings -- user rights assignments -- perform volume maintenance tasks. I double click on it and add sql users and groups , then reboot the device.
third : I delete the database then restored it expecting a difference or shrinking restoration time. but the result was same.
the question is why there is no differences after these changes.
the souces of knowldge is : http://timradney.com/2012/05/30/instant-file-initialization-for-sql-server-performance/
Thank you very much
During a restore the database engine is laying down the data pages from the backup to disk, this is not instant file initialisation!
Instant file initialisation will be noticeable when adding new database files or growing database files.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
January 4, 2013 at 8:58 am
Perry Whittle (1/4/2013)
During a restore the database engine is laying down the data pages from the backup to disk, this is not instant file initialisation!Instant file initialisation will be noticeable when adding new database files or growing database files.
Instant file initialization is in play when doing a restore.
http://www.sqlskills.com/blogs/kimberly/instant-initialization-what-why-and-how/
http://msdn.microsoft.com/en-us/library/ms175935(v=sql.105).aspx
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
January 4, 2013 at 9:00 am
Dear friend
Thanks for replying, is creating database also apply this option because I have created a new database by 50,000 MG but it tooks a very long time.
and sory for that , lot of articles on the net published
What Operations Are Affected Inside SQL Server
•Database Creation
•Add data file to existing database
•Growing a data file
•Restores
•Backup Operations
Thank you very much
January 4, 2013 at 9:05 am
January 4, 2013 at 10:01 am
Thanks for replying
I followed the steps and wrote
USE master;
--Set Trace Flags 3004 and 3605 to On.
DBCC TRACEON(3004,-1);
DBCC TRACEON(3605,-1);
then I created a database by SSMS 1000 MG but it took a long time
I checked the sql error log I found zeoring completed....
any idea
Thanks lot
January 4, 2013 at 10:02 am
zi (1/4/2013)
Dear friendThanks for replying, is creating database also apply this option because I have created a new database by 50,000 MG but it tooks a very long time.
and sory for that , lot of articles on the net published
What Operations Are Affected Inside SQL Server
•Database Creation
•Add data file to existing database
•Growing a data file
•Restores
•Backup Operations
Thank you very much
Make sure the account that the sql server service runs under has the policy applied.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
January 4, 2013 at 10:16 am
Thanks for replying
it works well when I added 2 useres : system and everyone ?
Thank you very much
January 4, 2013 at 10:47 am
I restored a 5 GB database in 3.5 minites instead of 5 minites
is that good or it should be shorter ?
but creating database didnt take secondes ?
Thanks lot
January 4, 2013 at 11:23 am
Look at the SQL Server Error Log to see how long each step in the creation of a new database took. Post the messages here if you have doubts.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply