<?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>appytizers &#187; db2</title>
	<atom:link href="http://www.rohand.com/tag/db2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rohand.com</link>
	<description>the book of i</description>
	<lastBuildDate>Fri, 13 Aug 2010 16:37:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>COUNT(*) All DB2 Tables</title>
		<link>http://www.rohand.com/2010/count-all-db2-tables/</link>
		<comments>http://www.rohand.com/2010/count-all-db2-tables/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 16:37:52 +0000</pubDate>
		<dc:creator>rohand</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[db2]]></category>

		<guid isPermaLink="false">http://www.rohand.com/2010/count-all-db2-tables/</guid>
		<description><![CDATA[Here&#8217;s a succinct way of generating SELECT COUNT(*) against all tables in a DB2 database. SELECT 'SELECT COUNT(*) AS COUNT_' &#124;&#124; TABLE_NAME &#124;&#124; ' FROM ' &#124;&#124; TABLE_SCHEMA &#124;&#124; '.' &#124;&#124; TABLE_NAME FROM sysibm.TABLES ORDER BY TABLE_NAME This returns output like the following: SELECT COUNT(*) AS COUNT_ADVISE_INDEX FROM DB2INST.ADVISE_INDEX SELECT COUNT(*) AS COUNT_ADVISE_WORKLOAD FROM DB2INST.ADVISE_WORKLOAD]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a succinct way of generating SELECT COUNT(*) against all tables in a DB2 database.</p>
<pre>SELECT 'SELECT COUNT(*) AS COUNT_' || TABLE_NAME ||
' FROM ' || TABLE_SCHEMA || '.' || TABLE_NAME
FROM sysibm.TABLES
ORDER BY TABLE_NAME </pre>
<p>This returns output like the following:</p>
<pre>SELECT COUNT(*) AS COUNT_ADVISE_INDEX FROM DB2INST.ADVISE_INDEX
SELECT COUNT(*) AS COUNT_ADVISE_WORKLOAD FROM DB2INST.ADVISE_WORKLOAD</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rohand.com/2010/count-all-db2-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DB2 System Properties</title>
		<link>http://www.rohand.com/2009/db2-system-properties/</link>
		<comments>http://www.rohand.com/2009/db2-system-properties/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 00:16:34 +0000</pubDate>
		<dc:creator>rohand</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[db2]]></category>

		<guid isPermaLink="false">http://www.rohand.com/2009/db2-system-properties/</guid>
		<description><![CDATA[These calls will retrieve DB2 system properties. SELECT * FROM TABLE(SYSPROC.ENV_GET_INST_INFO()) AS Instance_Info GO SELECT * FROM TABLE(SYSPROC.ENV_GET_PROD_INFO()) AS Product_Info GO SELECT * FROM TABLE(SYSPROC.ENV_GET_SYS_INFO()) AS System_Info GO]]></description>
			<content:encoded><![CDATA[<p>These calls will retrieve DB2 system properties.</p>
<p><code>SELECT *<br />
FROM TABLE(SYSPROC.ENV_GET_INST_INFO()) AS Instance_Info<br />
GO<br />
SELECT *<br />
FROM TABLE(SYSPROC.ENV_GET_PROD_INFO()) AS Product_Info<br />
GO<br />
SELECT *<br />
FROM TABLE(SYSPROC.ENV_GET_SYS_INFO()) AS System_Info<br />
GO<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rohand.com/2009/db2-system-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
