﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / Shrink Data file with truncateonly / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 23:29:29 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>[quote][b]SQLCrazyCertified (2/19/2013)[/b][hr]Hi, sorry, I was not aware of this, anyway, with truncate only option only available for sql 2005 right? because I know they took away this option for 2008 and above.  [/quote]SQL 2000, SQL 2005, SQL 2008, SQL 2008 R2, SQL 2012, not on the deprecation list, so 2 more versions at least, personally I doubt it'll be removed, too useful and no good reason to remove it. Maybe earlier too, never worked on SQL 7 though.</description><pubDate>Tue, 19 Feb 2013 06:54:10 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>Hi,It is still there in Shrink File .I use 2008 R2.</description><pubDate>Tue, 19 Feb 2013 05:23:56 GMT</pubDate><dc:creator>mwagh</dc:creator></item><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>[quote][b]anthony.green (2/19/2013)[/b][hr][quote][b]SQLCrazyCertified (2/19/2013)[/b][hr][quote][b]mwagh (2/19/2013)[/b][hr]Thanks!! works in my case as i  have a lot initially allocated space  which was never touched.[/quote]Hi, sorry, I was not aware of this, anyway, with truncate only option only available for sql 2005 right? because I know they took away this option for 2008 and above.  Just curious which version you are using.SueTons.[/quote]TRUNCATE ONLY been removed from the BACKUP LOG command, but not from DBCC SHRINKFILE[/quote]Got it.  Thank you.SueTons.</description><pubDate>Tue, 19 Feb 2013 05:17:57 GMT</pubDate><dc:creator>SQLCrazyCertified</dc:creator></item><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>[quote][b]SQLCrazyCertified (2/19/2013)[/b][hr][quote][b]mwagh (2/19/2013)[/b][hr]Thanks!! works in my case as i  have a lot initially allocated space  which was never touched.[/quote]Hi, sorry, I was not aware of this, anyway, with truncate only option only available for sql 2005 right? because I know they took away this option for 2008 and above.  Just curious which version you are using.SueTons.[/quote]TRUNCATE ONLY been removed from the BACKUP LOG command, but not from DBCC SHRINKFILE</description><pubDate>Tue, 19 Feb 2013 05:15:04 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>[quote][b]mwagh (2/19/2013)[/b][hr]Thanks!! works in my case as i  have a lot initially allocated space  which was never touched.[/quote]Hi, sorry, I was not aware of this, anyway, with truncate only option only available for sql 2005 right? because I know they took away this option for 2008 and above.  Just curious which version you are using.SueTons.</description><pubDate>Tue, 19 Feb 2013 05:13:14 GMT</pubDate><dc:creator>SQLCrazyCertified</dc:creator></item><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>Thanks!! works in my case as i  have a lot initially allocated space  which was never touched.</description><pubDate>Tue, 19 Feb 2013 02:55:37 GMT</pubDate><dc:creator>mwagh</dc:creator></item><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>Correct, shrink with truncate only doesn't fragment indexes, but it also may not reduce space usage if the space and the end of the file is in use.</description><pubDate>Tue, 19 Feb 2013 02:51:16 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>thanks for your reply.I know it is not recommended as it will cause fragmentation of indexes but i need to free up some space.As per http://msdn.microsoft.com/en-us//library/ms189493.aspxthe TruncateOnly clause "Releases all free space at the end of the file to the operating system but does not perform any page movement inside the file"So i was hoping that this should not create fragmentation as there is no movement of pages. :unsure:</description><pubDate>Tue, 19 Feb 2013 02:44:48 GMT</pubDate><dc:creator>mwagh</dc:creator></item><item><title>RE: Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>[quote][b]mwagh (2/19/2013)[/b][hr]Hi,I wanted to shrink a data file with the truncate only clause.Will i require to rebuild my indexes?[/quote]Shrinking data file is not recommended as it will create fragmentation and it affects the performance.  What's the reason you are trying to shrink?SueTons.</description><pubDate>Tue, 19 Feb 2013 02:36:05 GMT</pubDate><dc:creator>SQLCrazyCertified</dc:creator></item><item><title>Shrink Data file with truncateonly</title><link>http://www.sqlservercentral.com/Forums/Topic1421486-1550-1.aspx</link><description>Hi,I wanted to shrink a data file with the truncate only clause.Will i require to rebuild my indexes?</description><pubDate>Tue, 19 Feb 2013 02:30:40 GMT</pubDate><dc:creator>mwagh</dc:creator></item></channel></rss>