<?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>I&#039;m CaLendarW Blog &#187; database</title>
	<atom:link href="http://wongkalun.idv.hk/category/computer-science/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://wongkalun.idv.hk</link>
	<description>任何時間，都要用內心既一點光，照亮世界</description>
	<lastBuildDate>Wed, 07 Dec 2011 15:39:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MsSQL &#8211; Identity Generator</title>
		<link>http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/</link>
		<comments>http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 15:24:39 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[mssql]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=629</guid>
		<description><![CDATA[MsSQL 內既 Identity Generator, 雖然被發現當 Table 儲存超過一百萬行時, 由 SELECT @@Identity 或者 SELECT SCOPE_IDENTITY() 會存在 Return 值錯誤既問題, 但經過呢個幾月既開發都未出現問題. 係 MsSQL 入面, 新增 Record 時主要提取 Primary Key 既方法主要有 @@IDENTITY, SCOPE_IDENTY() 同 IDENT_CURRENT(&#8216;table_name&#8217;) 三種: @@IDENTITY 使用 @@IDENTITY 會 Return 當前 Session 任何 Table 最後生產的 Primary Key, 如果 Insert statement 運行後如果有任何 Trigger 中會 Insert 在其他 Table 的話, @@IDENTITY 就會變得不準確. [...]]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/07/07/mssql-identity-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Control of Duplication</title>
		<link>http://wongkalun.idv.hk/2009/05/22/control-of-duplication/</link>
		<comments>http://wongkalun.idv.hk/2009/05/22/control-of-duplication/#comments</comments>
		<pubDate>Thu, 21 May 2009 16:20:46 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[duplication]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=540</guid>
		<description><![CDATA[近期做緊 Application to Database 呢部份, 開始對 Analysis Patterns 一書中既 Knowledge Level 同 Operation Level 多左理解, 除此之外, 仲開始感受既點樣控制重覆!! Duplication, 係 Program 入面係理應避免的, 正如見到重覆既 Code 就應該進行重構一樣, 但在 Database 層面上既管理又可能係另一種講法. 係 Knowledge Level 入面, 儲存既資料應該避免重覆, 因為所做既係最新既資訊, 以最實時既資訊去處理日常既運作, 雖然用既係最新既資訊, 但儲存落 Database 入面就可能要將所有有關既 Value Object 儲存埋, 因為往後既日子如果 Knowledge Level 有所改變, 亦唔應該影響到 Database 入面 Operation Level 完成品既歷史, 方面了解當時既情況, 等同於 Data Mining [...]]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/05/22/control-of-duplication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rebuild Index on MsSQL</title>
		<link>http://wongkalun.idv.hk/2009/04/28/rebuild-index-on-mssql/</link>
		<comments>http://wongkalun.idv.hk/2009/04/28/rebuild-index-on-mssql/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 15:57:45 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=501</guid>
		<description><![CDATA[今日要對現有既 Table 做 Performance Testing, 但因為要 join 太多既 Table, 搜尋一個要 join 4 個 Table 先拎到想要既 &#8220;一隻&#8221; Record 既時間竟然要 11 秒, 可想而知個 Table Size 有幾大吧 (其實七位數字既 Record Count 啫, 而 where case 只有兩個用 &#8216;=&#8217; 既 criteria, 而且所有 Record 只能 insert, 不能 delete). 經過我 rebuild 過接近 10 個已有既 index 之後 (等了好幾分鐘), 搜尋時間減少至只需 5 秒&#8230; 以下係 mssql 2005 [...]]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/04/28/rebuild-index-on-mssql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sqlcmd</title>
		<link>http://wongkalun.idv.hk/2009/04/27/sqlcmd/</link>
		<comments>http://wongkalun.idv.hk/2009/04/27/sqlcmd/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 14:41:22 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[batch]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=494</guid>
		<description><![CDATA[Project Development Phase 已經開始, 但因為部份 Design 未全面, 所以仲有好多 Drop Table, Create Table 及 Initialize Value 既動作要做, 因為係咁, 所以就上網搵左點樣在 command prompt 行 SQL file. Usage: Sqlcmd [-U login id] [-P password] [-S server] [-H hostname] [-E trusted connection] [-d use database name] [-l login timeout] [-t query timeout] [-h headers] [-s colseparator] [-w screen width] [-a [...]]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/04/27/sqlcmd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Notes</title>
		<link>http://wongkalun.idv.hk/2008/03/14/oracle-notes/</link>
		<comments>http://wongkalun.idv.hk/2008/03/14/oracle-notes/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 02:35:07 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=30</guid>
		<description><![CDATA[Run shell in sqlplus: or Dummy Table Name: dual Get user error message in oracle: or ERROR: PLS-00201: identifier &#8216;SYS.DBMS_PIPE&#8217; must be declared Connect to the SYS schema and issue the following command: dtsv.dtse_post_30_permalink = 'http://wongkalun.idv.hk/2008/03/14/oracle-notes/'; dtsv.dtse_post_30_title = 'Oracle Notes';]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2008/03/14/oracle-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

