<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Of Ones and Zeros</title>
	<atom:link href="http://www.ofonesandzeros.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ofonesandzeros.com</link>
	<description>a discussion of technology and software development</description>
	<lastBuildDate>Fri, 20 Jan 2012 13:25:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Programmatically Add ListViewWebPart with Customized View by bryan</title>
		<link>http://www.ofonesandzeros.com/2011/06/15/programmatically-add-listviewwebpart-with-customized-view/#comment-792</link>
		<dc:creator>bryan</dc:creator>
		<pubDate>Fri, 20 Jan 2012 13:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.ofonesandzeros.com/?p=205#comment-792</guid>
		<description>Imran,

Could you elaborate on what your business requirements are, and what your current technical solution is?

Thanks!

-Bryan</description>
		<content:encoded><![CDATA[<p>Imran,</p>
<p>Could you elaborate on what your business requirements are, and what your current technical solution is?</p>
<p>Thanks!</p>
<p>-Bryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programmatically Add ListViewWebPart with Customized View by Imran</title>
		<link>http://www.ofonesandzeros.com/2011/06/15/programmatically-add-listviewwebpart-with-customized-view/#comment-791</link>
		<dc:creator>Imran</dc:creator>
		<pubDate>Fri, 20 Jan 2012 11:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ofonesandzeros.com/?p=205#comment-791</guid>
		<description>Nice,
But i want to warp a listview webpart in usercontrol,so that it my connect to another webpart using connected webpart.

how is possible,i need help.

Thanx in advance.

Regard
Imran</description>
		<content:encoded><![CDATA[<p>Nice,<br />
But i want to warp a listview webpart in usercontrol,so that it my connect to another webpart using connected webpart.</p>
<p>how is possible,i need help.</p>
<p>Thanx in advance.</p>
<p>Regard<br />
Imran</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SPLimitedWebPartManager Memory Leak? by bryan</title>
		<link>http://www.ofonesandzeros.com/2007/06/05/splimitedwebpartmanager-memory-leak/#comment-128</link>
		<dc:creator>bryan</dc:creator>
		<pubDate>Fri, 18 Nov 2011 13:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ofonesandzeros.com/2007/06/05/splimitedwebpartmanager-memory-leak/#comment-128</guid>
		<description>Ah, you&#039;re right Adrian!  When I looked earlier I just took a quick glance at Dispose() and noticed it still wasn&#039;t cleaning it up, but you&#039;re right, it&#039;s no longer creating the instance inside of SPLimitedWebPartManager, instead it&#039;s point to an instance created by SPWebPartManager, and SPWebPartManager cleans up the SPWeb object.

Thanks for the correction!</description>
		<content:encoded><![CDATA[<p>Ah, you&#8217;re right Adrian!  When I looked earlier I just took a quick glance at Dispose() and noticed it still wasn&#8217;t cleaning it up, but you&#8217;re right, it&#8217;s no longer creating the instance inside of SPLimitedWebPartManager, instead it&#8217;s point to an instance created by SPWebPartManager, and SPWebPartManager cleans up the SPWeb object.</p>
<p>Thanks for the correction!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SPLimitedWebPartManager Memory Leak? by Adrian Iurov</title>
		<link>http://www.ofonesandzeros.com/2007/06/05/splimitedwebpartmanager-memory-leak/#comment-126</link>
		<dc:creator>Adrian Iurov</dc:creator>
		<pubDate>Fri, 18 Nov 2011 13:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ofonesandzeros.com/2007/06/05/splimitedwebpartmanager-memory-leak/#comment-126</guid>
		<description>From what I&#039;ve seen in the code, this is NOT a memory leak in SP2010.

These 2 fields are part of the SPLimitedWebPartManager class:

SPWeb m_web;
SPWebPartManager m_manager;

When Dispose() is called on SPLimitedWebPartManager, inside it calls m_manager.Dispose() which calls m_web.Dipose()

The m_web of the SPWebPartManager instance references the same SPWeb instance as the m_web of the SPLimitedWebPartManager instance.

In order to see that the 2 fields reference the same SPWeb instance, take a look at the way this m_web is opened inside SPWeb.GetLimitedWebPartManagerInternal. Later on is assigned to the m_web of a SPWebPartCollectionInitialState instance and in the end to the newly created SPWebPartManager instance.

It&#039;s a bit hard to follow, but if you need more details about the entire flow, I could provide them to you.</description>
		<content:encoded><![CDATA[<p>From what I&#8217;ve seen in the code, this is NOT a memory leak in SP2010.</p>
<p>These 2 fields are part of the SPLimitedWebPartManager class:</p>
<p>SPWeb m_web;<br />
SPWebPartManager m_manager;</p>
<p>When Dispose() is called on SPLimitedWebPartManager, inside it calls m_manager.Dispose() which calls m_web.Dipose()</p>
<p>The m_web of the SPWebPartManager instance references the same SPWeb instance as the m_web of the SPLimitedWebPartManager instance.</p>
<p>In order to see that the 2 fields reference the same SPWeb instance, take a look at the way this m_web is opened inside SPWeb.GetLimitedWebPartManagerInternal. Later on is assigned to the m_web of a SPWebPartCollectionInitialState instance and in the end to the newly created SPWebPartManager instance.</p>
<p>It&#8217;s a bit hard to follow, but if you need more details about the entire flow, I could provide them to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SPLimitedWebPartManager Memory Leak? by bryan</title>
		<link>http://www.ofonesandzeros.com/2007/06/05/splimitedwebpartmanager-memory-leak/#comment-47</link>
		<dc:creator>bryan</dc:creator>
		<pubDate>Tue, 01 Nov 2011 15:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ofonesandzeros.com/2007/06/05/splimitedwebpartmanager-memory-leak/#comment-47</guid>
		<description>From what I&#039;ve seen, yes.  I poked around in SPLimitedWebPartManager for 2010 and it still does not appear to close the SPWeb object that it opens up, so I would recommend still explicitly closing it.  If anyone has seen differently in 2010 let me know!</description>
		<content:encoded><![CDATA[<p>From what I&#8217;ve seen, yes.  I poked around in SPLimitedWebPartManager for 2010 and it still does not appear to close the SPWeb object that it opens up, so I would recommend still explicitly closing it.  If anyone has seen differently in 2010 let me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SPLimitedWebPartManager Memory Leak? by Tudor Iliescu</title>
		<link>http://www.ofonesandzeros.com/2007/06/05/splimitedwebpartmanager-memory-leak/#comment-46</link>
		<dc:creator>Tudor Iliescu</dc:creator>
		<pubDate>Tue, 01 Nov 2011 10:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ofonesandzeros.com/2007/06/05/splimitedwebpartmanager-memory-leak/#comment-46</guid>
		<description>Very interesting! It the same in 2010?</description>
		<content:encoded><![CDATA[<p>Very interesting! It the same in 2010?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncating Transaction Logs in SQL 2008 by MM</title>
		<link>http://www.ofonesandzeros.com/2010/01/29/truncating-transaction-logs-in-sql-2008/#comment-52</link>
		<dc:creator>MM</dc:creator>
		<pubDate>Fri, 09 Sep 2011 03:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.ofonesandzeros.com/?p=182#comment-52</guid>
		<description>Thank you so much.........
you made my day...</description>
		<content:encoded><![CDATA[<p>Thank you so much&#8230;&#8230;&#8230;<br />
you made my day&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncating Transaction Logs in SQL 2008 by Pare</title>
		<link>http://www.ofonesandzeros.com/2010/01/29/truncating-transaction-logs-in-sql-2008/#comment-51</link>
		<dc:creator>Pare</dc:creator>
		<pubDate>Sun, 28 Aug 2011 06:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ofonesandzeros.com/?p=182#comment-51</guid>
		<description>Great Man, thx</description>
		<content:encoded><![CDATA[<p>Great Man, thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncating Transaction Logs in SQL 2008 by juanMa</title>
		<link>http://www.ofonesandzeros.com/2010/01/29/truncating-transaction-logs-in-sql-2008/#comment-50</link>
		<dc:creator>juanMa</dc:creator>
		<pubDate>Fri, 24 Jun 2011 20:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ofonesandzeros.com/?p=182#comment-50</guid>
		<description>Hey Bryan, here is my version I was working on when I stumbled upon your version (wasn&#039;t sure how to get the log names).  It&#039;s made for sql server 2005.  Also I don&#039;t like cursors so they&#039;re not here.  
------------------------------------------
declare @SQLString NVARCHAR(MAX), @dbName as nvarchar(255), @logName as nvarchar(255)
declare @dbList as table( dbName nvarchar(255),logName nvarchar(255), runStatus bit default 0)

--Populate table variable with all db names and all db log file names
insert into @dbList (dbName,logName)
SELECT a.name, b.name from sys.databases a join sys.master_files b on a.database_id = b.database_id 
where b.type = 1 AND a.name not in (&#039;master&#039;, &#039;model&#039;, &#039;msdb&#039;, &#039;tempdb&#039;,&#039;distribution&#039;) 
order by a.name
--Loop over all db 
while (exists(select * from @dbList where runStatus=0))
begin
	--Get first available database
	SELECT top 1  @dbName = dbName, @logName = logName from @dbList where runStatus = 0
	--Prepare sql statement here
	SET @SQLString = 
		N&#039; USE &#039; + quotename(@dbName) + N&#039; ; &#039; +
		N&#039; DBCC SHRINKFILE(&#039; + quotename(@logName) + &#039; , 1) ; &#039; +
		N&#039; BACKUP LOG &#039; + quotename(@dbName) +&#039; WITH TRUNCATE_ONLY ;&#039; +
		N&#039; DBCC SHRINKFILE(&#039; + quotename(@logName) + &#039; , 1) ;&#039;
	--Execute
	EXECUTE sp_executesql @SQLString
	--Flag used database
	update @dbList set runStatus = 1 where dbName = @dbName
end</description>
		<content:encoded><![CDATA[<p>Hey Bryan, here is my version I was working on when I stumbled upon your version (wasn&#8217;t sure how to get the log names).  It&#8217;s made for sql server 2005.  Also I don&#8217;t like cursors so they&#8217;re not here.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
declare @SQLString NVARCHAR(MAX), @dbName as nvarchar(255), @logName as nvarchar(255)<br />
declare @dbList as table( dbName nvarchar(255),logName nvarchar(255), runStatus bit default 0)</p>
<p>&#8211;Populate table variable with all db names and all db log file names<br />
insert into @dbList (dbName,logName)<br />
SELECT a.name, b.name from sys.databases a join sys.master_files b on a.database_id = b.database_id<br />
where b.type = 1 AND a.name not in (&#8216;master&#8217;, &#8216;model&#8217;, &#8216;msdb&#8217;, &#8216;tempdb&#8217;,'distribution&#8217;)<br />
order by a.name<br />
&#8211;Loop over all db<br />
while (exists(select * from @dbList where runStatus=0))<br />
begin<br />
	&#8211;Get first available database<br />
	SELECT top 1  @dbName = dbName, @logName = logName from @dbList where runStatus = 0<br />
	&#8211;Prepare sql statement here<br />
	SET @SQLString =<br />
		N&#8217; USE &#8216; + quotename(@dbName) + N&#8217; ; &#8216; +<br />
		N&#8217; DBCC SHRINKFILE(&#8216; + quotename(@logName) + &#8216; , 1) ; &#8216; +<br />
		N&#8217; BACKUP LOG &#8216; + quotename(@dbName) +&#8217; WITH TRUNCATE_ONLY ;&#8217; +<br />
		N&#8217; DBCC SHRINKFILE(&#8216; + quotename(@logName) + &#8216; , 1) ;&#8217;<br />
	&#8211;Execute<br />
	EXECUTE sp_executesql @SQLString<br />
	&#8211;Flag used database<br />
	update @dbList set runStatus = 1 where dbName = @dbName<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncating Transaction Logs in SQL 2008 by juanMa</title>
		<link>http://www.ofonesandzeros.com/2010/01/29/truncating-transaction-logs-in-sql-2008/#comment-49</link>
		<dc:creator>juanMa</dc:creator>
		<pubDate>Fri, 24 Jun 2011 19:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ofonesandzeros.com/?p=182#comment-49</guid>
		<description>Have you tried using the built in function quotename() for T-SQL?
It returns the input string a valid SQL Server delimited identifier. ie, with [ ]

Very useful script.</description>
		<content:encoded><![CDATA[<p>Have you tried using the built in function quotename() for T-SQL?<br />
It returns the input string a valid SQL Server delimited identifier. ie, with [ ]</p>
<p>Very useful script.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 1/10 queries in 0.012 seconds using disk: basic
Object Caching 328/343 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: dfcv747gi313t.cloudfront.net

Served from: www.ofonesandzeros.com @ 2012-02-05 12:56:11 -->
