<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kushalnagar.com</title>
	<atom:link href="http://www.kushalnagar.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kushalnagar.com</link>
	<description></description>
	<lastBuildDate>Tue, 23 Apr 2013 22:43:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Turn off Auto Close for all Databases in MSSQL</title>
		<link>http://www.kushalnagar.com/turn-off-auto-close-for-all-databases-in-mssql/</link>
		<comments>http://www.kushalnagar.com/turn-off-auto-close-for-all-databases-in-mssql/#comments</comments>
		<pubDate>Tue, 23 Apr 2013 22:43:28 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Coding Tips]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=569</guid>
		<description><![CDATA[Please run the following code to turn off auto_close for all databases: EXECUTE sp_MSforeachdb ' IF (''?'' NOT IN (''master'', ''tempdb'', ''msdb'', ''model'')) EXECUTE (''ALTER DATABASE [?] SET AUTO_CLOSE OFF WITH NO_WAIT'') ']]></description>
				<content:encoded><![CDATA[<p>Please run the following code to turn off auto_close for all databases:</p>
<p><code><br />
EXECUTE sp_MSforeachdb<br />
'<br />
IF (''?'' NOT IN (''master'', ''tempdb'', ''msdb'', ''model''))<br />
   EXECUTE (''ALTER DATABASE [?] SET AUTO_CLOSE OFF WITH NO_WAIT'')<br />
'<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/turn-off-auto-close-for-all-databases-in-mssql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Punyakoti Kathe &#8211; dharaNi manDala madhyadoLage</title>
		<link>http://www.kushalnagar.com/punyakoti-kathe-dharani-mandala-madhyadolage/</link>
		<comments>http://www.kushalnagar.com/punyakoti-kathe-dharani-mandala-madhyadolage/#comments</comments>
		<pubDate>Fri, 05 Apr 2013 23:24:56 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=566</guid>
		<description><![CDATA[P unyakoti - A Janapada Geethe (A folk song) &#8211; With Translation! dharaNi manDala madhyadoLage mereyutiha karNATa dEshadOLiruva kALinganemba gollana pariyanentu pELvenu I speak about the cowherd Kalinga residing in the resplendent country of Karnata(ka) within the middle region of the earth . eLeya mAvina marada kELage koLalnUduta golla gauDanu baLasi ninda turugaLannu baLige karedanu [...]]]></description>
				<content:encoded><![CDATA[<p>P<br />
<strong>unyakoti </strong>- A Janapada Geethe (A folk song) &#8211; With Translation!</p>
<p><em>dharaNi manDala madhyadoLage<br />
mereyutiha karNATa dEshadOLiruva<br />
kALinganemba gollana pariyanentu pELvenu<br />
</em><br />
I speak about the cowherd Kalinga residing in the resplendent country of Karnata(ka)<br />
within the middle region of the earth .</p>
<p><em>eLeya mAvina marada kELage koLalnUduta golla gauDanu<br />
baLasi ninda turugaLannu baLige karedanu harushadi<br />
gange bAre gauri bAre tungabhadre tAyi bAre<br />
puNyakOTi nInu bArE endu gollanu karedanu<br />
golla kareda daniya kELi ella hasugaLu bandu nindu<br />
chelli sUsi hAlu kareyalu alli tumbitu bindige<br />
satyavE bhagavantanemba puNyakOTiya kateyidu</em></p>
<p>Playing his flute under the young mango tree, the cowherd called to the cattle standing around him<br />
“ Ganga (e) come, Gauri come hither, mother Tungabhadre come, Punyakoti you too come”<br />
On hearing the cowherd’s voice, the cows came closer, and upon milking them, the vessel was filled to the brim.</p>
<p>This is the tale of Punyakoti who believed that Truth is God<br />
<em></p>
<p>habbidA male madhyadoLage arbhutAnendemba vyAghranu<br />
abbarisi hasihasidu beTTada kibbiyoLu tAniddanu<br />
moredu rOshadi guDugutA huli bhOriDuta<br />
chhangane jigidu negeyalu chedari hOdavu hasugaLu</em></p>
<p>In the middle of the spreading forest, a hungrily roaring tiger named Arbhutan lived in a cave among the mountains<br />
Bellowing and thundering with rage, the tiger in search of a meal leapt and jumped amidst the cattle upon which they ran helter &#8211; skelter.</p>
<p><em>puNyakOTi emba hasuvu tanna kandana nenedukonDu<br />
munna hAlanu koDuvenenuta chendadi tA barutire<br />
indenage AhAra sikkitu endu bEgane dushTa vyAghranu<br />
bandu baLasi aDDagaTTi nindanA hulirAyanu<br />
</em><br />
The cow named Punyakoti, thinking of her child and planning to feed her was coming by</p>
<p>“Today I have found food” thought the wicked tiger and circling the cow he stood blocking her way</p>
<p><em>mEle biddu ninnanIgale bILahoyvenu ninna hoTTeya<br />
sILibiDuvenu enuta kOpadi khULa vyAghranu kUgalu<br />
ondu binnaha huliye kELu kandaniruvanu doDDiyoLage<br />
ondu nimishadi moleya koTTu bandu sEruve nillige<br />
hasida vELege sikkidoDaveya vashava mADade biDalu nInu<br />
nusuLi hOguve matte baruveya husiya nuDiyuvenenditu</em></p>
<p>“I will fall upon you and bring you down. I will split your belly” screamed the tiger.</p>
<p>Punyakoti says “Listen Tiger, I have a request. I have a son in the cowshed. I will feed him and return to you in a minute”</p>
<p>“At a hungry time when I have cornered you, if I do not capture you, you will slip away. Will you come back? You are lying” says the tiger</p>
<p><em>satyavE namma tAyi tande satyavE namma bandhu baLaga<br />
satya vAkyake tappi naDedare mechchanA paramAtmanu<br />
satyavE bhagavantanemba puNyakOTiya kateyidu</em></p>
<p>“Truth is our mother and father. Truth is our near and dear. If the truth is not followed, the Supreme Self will not approve” answers Punyakoti</p>
<p>This is the tale of Punyakoti who believed that Truth is God</p>
<p><em>kondu tinnuvenemba hulige chendadinda bhAshe koTTu<br />
kanda ninnanu nODi pOguve nendu bandenu doDDige<br />
Ara moleyanu kuDiyalamma Ara baLiyali malagalamma<br />
Ara sEri badukalamma Aru nanage hitavaru<br />
</em></p>
<p>“I have come after promising the tiger who wanted to kill and eat me that I will return to him after seeing you” says Punyakoti to her child</p>
<p>Punyakoti’s calf: “Whose udder shall I drink from? By whose side shall I sleep? With whom shall I live? Who is there to be good to me?”</p>
<p><em><br />
ammagaLirA akkagaLirA enna tAyoDa huTTugaLirA<br />
kanda nimmavanendu kANiri tabbaliyanI karuvanu<br />
munde bandare hAyabEDi hinde bandare odeyabEDi<br />
kanda nimmavanendu kANiri tabbaliyanI karuvanu<br />
</em></p>
<p>Punyakoti: “Oh mothers and sisters, those born to my mother, please look upon this orphan calf as your own”<br />
“If he comes in front of you, please do not gore him. If he gets behind you kindly do not kick him. Please look upon this orphan as your own child.”</p>
<p><em>tabbaliyu nInAde magane hebbuliya bAyannu hoguvenu<br />
ibbarA R^iNa tIritendu tabbikonDitu kandana<br />
satyavE bhagavantanemba puNyakOTiya kateyidu</em></p>
<p>“Son, you have become an orphan. I am going into the mouth of the great tiger. Our bond ends here” Punyakoti hugs her child</p>
<p>This is the tale of Punyakoti who believed that Truth is God</p>
<p><em>gOvu karuvanu biTTu bandu sAvakAshava mADadante<br />
gaviya bAgila sErinintu tavakadali huligenditu<br />
khanDavideko mAmsavideko gunDigeya bisiraktavideko<br />
chanDavyAghrane nInidellava nunDu santasadindiru</em></p>
<p>Leaving the calf behind, the cow with no further delay stood in front of the cave door and said anxiously<br />
“Take my flesh, take my meat. Take the warm blood from my heart. Oh fierce tiger, have all this and be happy”</p>
<p><em>puNyakOTiya mAta kELi kaNNanIranu surisi nondu<br />
kanneyivaLanu kondu tindare mechchanA paramAtmanu<br />
enna oDahuTTakka nInu ninna kondu Ena paDevenu<br />
ennutA huli hAri negedu tanna prANava biTTitu</em></p>
<p>Listening to Punyakoti’s words, the tiger was pained. Shedding tears, he says “If I kill and eat you it will not please God Almighty”</p>
<p>“You are like a sister born with me. What will I gain by killing you?” So saying, the tiger jumped down and gave up his life</p>
<p><em>satyavE bhagavantanemba puNyakOTiya kateyidu</em></p>
<p>This is the tale of Punyakoti who believed that Truth is God </p>
<p>Now Listen to it here:<br />
<a href="http://www.kushalnagar.com/assets/uploads/2013/04/Punyakoti.mp3">Punyakoti</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/punyakoti-kathe-dharani-mandala-madhyadolage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.kushalnagar.com/assets/uploads/2013/04/Punyakoti.mp3" length="1477498" type="audio/mpeg" />
		</item>
		<item>
		<title>SQL Queries for performance.</title>
		<link>http://www.kushalnagar.com/sql-queries-for-performance/</link>
		<comments>http://www.kushalnagar.com/sql-queries-for-performance/#comments</comments>
		<pubDate>Fri, 01 Mar 2013 19:24:48 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Coding Tips]]></category>
		<category><![CDATA[Interesting Stuff]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=563</guid>
		<description><![CDATA[SQL Queries]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.kushalnagar.com/sql-queries-for-performance/sql/" rel="attachment wp-att-564">SQL Queries</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/sql-queries-for-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto Submit Forms using jQuery</title>
		<link>http://www.kushalnagar.com/auto-submit-forms-using-jquery/</link>
		<comments>http://www.kushalnagar.com/auto-submit-forms-using-jquery/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 16:51:21 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Coding Tips]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=561</guid>
		<description><![CDATA[There are numerous methods to auto submit forms but here is the code that you can use to auto submit forms using jQuery. First name: Last name: E-mail:]]></description>
				<content:encoded><![CDATA[<p>There are numerous methods to auto submit forms but here is the code that you can use to auto submit forms using jQuery.</p>
<p><code><br />
<!DOCTYPE html><br />
<html><br />
<head><br />
  <script src="http://code.jquery.com/jquery-latest.js"></script><br />
  <script>
  	$(document).ready(function () {
  		$('#form1').submit();
	});
 </script></p>
<p></head><br />
<body></p>
<form id="form1" name="form1" action="anypage.asp" action="post">
  	 First name:<input type="text" name="fname"><br />
 	 Last name: <input type="text" name="lname"><br />
  	 E-mail: <input type="email" name="email" ><br />
  	 <input type="submit" name="submit" value="Go"><br />
</form>
<p></body><br />
</html><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/auto-submit-forms-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome Work Spaces!!!</title>
		<link>http://www.kushalnagar.com/awesome-work-spaces/</link>
		<comments>http://www.kushalnagar.com/awesome-work-spaces/#comments</comments>
		<pubDate>Mon, 04 Feb 2013 21:39:26 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Interesting Stuff]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=543</guid>
		<description><![CDATA[Stumbled on this link which shows some awesome work pods that can land in your back yard. Now I just need some cash to land one of these on my backyard!!!! http://inthralld.com/2013/01/outdoor-design-12-awesome-office-pods-for-your-backyard/]]></description>
				<content:encoded><![CDATA[<p>Stumbled on this link which shows some awesome work pods that can land in your back yard.  Now I just need some cash to land one of these on my backyard!!!!</p>
<p><code></p>
<p>http://inthralld.com/2013/01/outdoor-design-12-awesome-office-pods-for-your-backyard/</p>
<p></code></p>
<p><a href="http://inthralld.com/2013/01/outdoor-design-12-awesome-office-pods-for-your-backyard/" title="Awesome Office Pods for your backyard." target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/awesome-work-spaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent .DS_Store litter on your network shares</title>
		<link>http://www.kushalnagar.com/prevent-ds_store-litter-on-your-network-shares/</link>
		<comments>http://www.kushalnagar.com/prevent-ds_store-litter-on-your-network-shares/#comments</comments>
		<pubDate>Thu, 17 Jan 2013 22:36:34 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=537</guid>
		<description><![CDATA[Now that I started using Mac OSX I am copying files from network shares and find that my network shared windows folder is now littered with .DS_Store files. To prevent this run the following command in the Mac Terminal defaults write com.apple.desktopservices DSDontWriteNetworkStores true You will have to restart the mac or logout and log [...]]]></description>
				<content:encoded><![CDATA[<p>Now that I started using Mac OSX I am copying files from network shares and find that my network shared windows folder is now littered with .DS_Store files.  To prevent this run the following command in the Mac Terminal</p>
<p><code><br />
defaults write com.apple.desktopservices DSDontWriteNetworkStores true<br />
</code> </p>
<p>You will have to restart the mac or logout and log back in for the changes to take effect.</p>
<p>That&#8217;s all folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/prevent-ds_store-litter-on-your-network-shares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Hackintosh on my HP Probook 4530s</title>
		<link>http://www.kushalnagar.com/installing-hackintosh-on-my-hp-probook-4530s/</link>
		<comments>http://www.kushalnagar.com/installing-hackintosh-on-my-hp-probook-4530s/#comments</comments>
		<pubDate>Thu, 17 Jan 2013 18:53:32 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[10.8.2]]></category>
		<category><![CDATA[Error0]]></category>
		<category><![CDATA[Experience]]></category>
		<category><![CDATA[Hackintosh]]></category>
		<category><![CDATA[HP Probook 4530s]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Mountain Lion]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=536</guid>
		<description><![CDATA[After numerous attempts I finally got Mac OSX Mountain Lion 10.8.2 working on my HP Probook 4530s On how my experience went&#8230;well it was a huge rigmarole but now I know how to set this up in one hit! Here are a few things about my HP Probook that I did not know: 1. There [...]]]></description>
				<content:encoded><![CDATA[<p>After numerous attempts I finally got Mac OSX Mountain Lion 10.8.2 working on my HP Probook 4530s</p>
<p>On how my experience went&#8230;well it was a huge rigmarole but now I know how to set this up in one hit!</p>
<p>Here are a few things about my HP Probook that I did not know:<br />
1.  There is no HD Display.  I was selecting this for better display and was having display issues<br />
2.  The HDD on the laptop is a new 4k sector one.  So direct boot always gives Error0</p>
<p>Here is the code to resolve issue 2.  This must be run in the terminal when booting off the USB.<br />
<code><br />
dd if=/Volumes/USB/usr/standalone/i386/boot1h of=/dev/disk0s2<br />
</code><br />
where USB is the name of my USB stick.</p>
<p>Just to touch a note on making of the USB, I had to use my old iMac which weighs a ton and buy Mountain Lion from the App store before using iBoot to make the USB a Mac OSX Mountain Lion Boot Disk. I am not sure how I could have purchased the OS otherwise.  Thanks to the $20 I spent to buy the old iMac a few years ago!  I should say that Mac OSX is fun to use and is damn cheaper than buying Windows OS.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/installing-hackintosh-on-my-hp-probook-4530s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This youtube video made my day today.</title>
		<link>http://www.kushalnagar.com/this-youtube-video-made-my-day-today/</link>
		<comments>http://www.kushalnagar.com/this-youtube-video-made-my-day-today/#comments</comments>
		<pubDate>Fri, 11 Jan 2013 02:07:10 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Jokes]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=525</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube.com/embed/xVrJ8DxECbg?rel=0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/this-youtube-video-made-my-day-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save a file in UTF-8 using classic ASP</title>
		<link>http://www.kushalnagar.com/save-a-file-in-utf-8-using-classic-asp/</link>
		<comments>http://www.kushalnagar.com/save-a-file-in-utf-8-using-classic-asp/#comments</comments>
		<pubDate>Tue, 27 Nov 2012 21:25:03 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=524</guid>
		<description><![CDATA[Use the following code: dim objStream const adTypeBinary = 1 const adSaveCreateOverwrite = 2 const adModeReadWrite = 3 Set objStream = server.CreateObject("ADODB.Stream") objStream.Open objStream.CharSet = "UTF-8" objStream.WriteText(strData) objStream.SaveToFile strPath &#038; strFileName, adSaveCreateOverWrite objStream.Close Set objStream = Nothing]]></description>
				<content:encoded><![CDATA[<p>Use the following code:</p>
<p><code><br />
	dim objStream<br />
	const adTypeBinary = 1<br />
	const adSaveCreateOverwrite = 2<br />
	const adModeReadWrite = 3</p>
<p>	Set objStream = server.CreateObject("ADODB.Stream")<br />
	objStream.Open<br />
	objStream.CharSet = "UTF-8"<br />
	objStream.WriteText(strData)</p>
<p>	objStream.SaveToFile strPath &#038; strFileName, adSaveCreateOverWrite<br />
	objStream.Close</p>
<p>	Set objStream = Nothing<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/save-a-file-in-utf-8-using-classic-asp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Space used by each table in SQL Server 2008 R2</title>
		<link>http://www.kushalnagar.com/get-space-used-by-each-table-in-sql-server-2008-r2/</link>
		<comments>http://www.kushalnagar.com/get-space-used-by-each-table-in-sql-server-2008-r2/#comments</comments>
		<pubDate>Fri, 09 Nov 2012 22:36:53 +0000</pubDate>
		<dc:creator>Abhinav Kushalnagar</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[space used]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.kushalnagar.com/?p=521</guid>
		<description><![CDATA[Run the Below SQL Query in SQL Management Studio and you get all the information you are looking for! begin try SELECT (row_number() over(order by a3.name, a2.name))%2 as l1, a3.name AS [schemaname], a2.name AS [tablename], a1.rows as row_count, (a1.reserved + ISNULL(a4.reserved,0))* 8 AS reserved, a1.data * 8 AS data, (CASE WHEN (a1.used + ISNULL(a4.used,0)) > [...]]]></description>
				<content:encoded><![CDATA[<p>Run the Below SQL Query in SQL Management Studio and you get all the information you are looking for!<br />
<code><br />
begin try<br />
SELECT<br />
 (row_number() over(order by a3.name, a2.name))%2 as l1,<br />
 a3.name AS [schemaname],<br />
 a2.name AS [tablename],<br />
 a1.rows as row_count,<br />
 (a1.reserved + ISNULL(a4.reserved,0))* 8 AS reserved,<br />
 a1.data * 8 AS data,<br />
 (CASE WHEN (a1.used + ISNULL(a4.used,0)) > a1.data THEN<br />
   (a1.used + ISNULL(a4.used,0)) - a1.data ELSE 0 END) * 8 AS index_size,<br />
 (CASE WHEN (a1.reserved + ISNULL(a4.reserved,0)) > a1.used THEN<br />
   (a1.reserved + ISNULL(a4.reserved,0)) - a1.used ELSE 0 END) * 8 AS unused<br />
FROM<br />
 (SELECT<br />
  ps.object_id,<br />
  SUM (<br />
   CASE<br />
    WHEN (ps.index_id < 2) THEN row_count<br />
    ELSE 0<br />
   END<br />
   ) AS [rows],<br />
  SUM (ps.reserved_page_count) AS reserved,<br />
  SUM (<br />
   CASE<br />
     WHEN (ps.index_id < 2) THEN<br />
   (ps.in_row_data_page_count + ps.lob_used_page_count + ps.row_overflow_used_page_count)<br />
     ELSE (ps.lob_used_page_count + ps.row_overflow_used_page_count)<br />
   END<br />
   ) AS data,<br />
  SUM (ps.used_page_count) AS used<br />
 FROM sys.dm_db_partition_stats ps<br />
 GROUP BY ps.object_id) AS a1<br />
LEFT OUTER JOIN<br />
 (SELECT<br />
  it.parent_id,<br />
  SUM(ps.reserved_page_count) AS reserved,<br />
  SUM(ps.used_page_count) AS used<br />
  FROM sys.dm_db_partition_stats ps<br />
  INNER JOIN sys.internal_tables it ON (it.object_id = ps.object_id)<br />
  WHERE it.internal_type IN (202,204)<br />
  GROUP BY it.parent_id) AS a4 ON (a4.parent_id = a1.object_id)<br />
INNER JOIN sys.all_objects a2  ON ( a1.object_id = a2.object_id )<br />
INNER JOIN sys.schemas a3 ON (a2.schema_id = a3.schema_id)<br />
WHERE a2.type <> 'S' and a2.type <> 'IT'<br />
ORDER BY a3.name, a2.name<br />
end try<br />
begin catch<br />
select<br />
 -100 as l1<br />
, 1 as schemaname<br />
,       ERROR_NUMBER() as tablename<br />
,       ERROR_SEVERITY() as row_count<br />
,       ERROR_STATE() as reserved<br />
,       ERROR_MESSAGE() as data<br />
,       1 as index_size<br />
,   1 as unused<br />
end catch<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kushalnagar.com/get-space-used-by-each-table-in-sql-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic

 Served from: www.kushalnagar.com @ 2013-05-22 15:13:26 by W3 Total Cache -->