<?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>Thuan V. Nguyen &#187; SQL</title>
	<atom:link href="http://www.a8le.com/category/sql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.a8le.com</link>
	<description>Full steam ahead.</description>
	<lastBuildDate>Thu, 08 Jul 2010 02:45:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Removing MS SQL Full Text Search</title>
		<link>http://www.a8le.com/removing-ms-sql-full-text-search</link>
		<comments>http://www.a8le.com/removing-ms-sql-full-text-search#comments</comments>
		<pubDate>Thu, 30 Apr 2009 18:40:15 +0000</pubDate>
		<dc:creator>a8le</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[full text search]]></category>
		<category><![CDATA[remove]]></category>

		<guid isPermaLink="false">http://www.a8le.com/?p=420</guid>
		<description><![CDATA[This week I had to move one of my sites from web host to another. Full Text Search, though useful, turned out to be a nuance because the new host doesn&#8217;t not allow it and the old host wanted to charge me $20 to remove it.
Why didn&#8217;t I just remove it myself? Well, I assumed [...]]]></description>
			<content:encoded><![CDATA[<p>This week I had to move one of my sites from web host to another. Full Text Search, though useful, turned out to be a nuance because the new host doesn&#8217;t not allow it and the old host wanted to charge me $20 to remove it.</p>
<p>Why didn&#8217;t I just remove it myself? Well, I assumed I didn&#8217;t have the privileges because it was grayed out in Enterprise Manager. But hope was not lost, I fired up Query Analyzer and found that I was able to manage full text search functionality without any issues. Here&#8217;s the code if someone needs it&#8230;</p>
<p><strong>Step 1, Drop the table (or tables if you have multiple)</strong></p>
<blockquote>
<pre id="ctl00_mainContentContainer_ctl34other" class="libCScode" style="white-space: pre-wrap;">USE DB_NAME;
GO
EXEC sp_fulltext_table 'TABLE_NAME', 'drop';
GO</pre>
</blockquote>
<p><strong>Step 2,  Drop the Full Text Search Catalog</strong></p>
<blockquote>
<pre id="ctl00_mainContentContainer_ctl34other" class="libCScode" style="white-space: pre-wrap;">USE DB_NAME;
GO
EXEC sp_fulltext_catalog 'CATALOG_NAME', 'drop';
GO</pre>
</blockquote>
<p>In summary, working on a shared hosting environment can have its disadvantages but with a little Transact-SQL know-how it isn&#8217;t all that bad.</p>
<p>BTW, here&#8217;s a good reference for MS SQL Full Text Search Stored Procedures&#8230; <a href="http://msdn.microsoft.com/en-us/library/ms189801.aspx" target="_blank">linky</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.a8le.com/removing-ms-sql-full-text-search/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Subtract Join</title>
		<link>http://www.a8le.com/the-subtract-join</link>
		<comments>http://www.a8le.com/the-subtract-join#comments</comments>
		<pubDate>Tue, 08 Apr 2008 02:13:00 +0000</pubDate>
		<dc:creator>a8le</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[opposite of a join]]></category>
		<category><![CDATA[sql join]]></category>
		<category><![CDATA[subtract join]]></category>

		<guid isPermaLink="false">http://www.a8le.com/archives/46</guid>
		<description><![CDATA[
I needed a way of selecting all primary key(s) from a certain table (Table_1) that was not used as a foreign key in a sub-table (Table_2).  So I went at it with my SQL know-how to no end.  It was obvious that I needed to do a little catching up.  
I googled [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.a8le.com/wp-content/uploads/2008/04/subtractjoin.gif" alt="Subtract Join" class="reflect" /></p>
<p>I needed a way of selecting all primary key(s) from a certain table (Table_1) that was not used as a foreign key in a sub-table (Table_2).  So I went at it with my SQL know-how to no end.  It was obvious that I needed to do a little catching up. <img src='http://www.a8le.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I googled the following:</p>
<blockquote><p> •	all instances of unique id not found in sub-table<br />
•	primary key not found as foreign key in sub-table<br />
•	select all rows if not exist in sub-table<br />
•	sql tutorial<br />
•	sql join<br />
•	sql reference<br />
•	sql relational databases</p></blockquote>
<p>…and found nothing useful.  However, my research did lead me to one conclusion… what I needed was the opposite of a join. I googled for it, it as in “opposite of a join”. What I found was a very useful MS KB, <a href="http://support.microsoft.com/kb/136699" title="Subtract Join" target="_blank">http://support.microsoft.com/kb/136699</a>.</p>
<p>The described &#8220;Subtract Join&#8221; was exactly what I was looking for and it works! What’s odd is of all the SQL tutorials I ran into, none of them mentioned the SUBTRACT JOIN. That makes me think there might be a better way of doing this query. Is there a better way? Am I simply not using the right keywords when I search? Anyways, if there is I couldn&#8217;t find it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.a8le.com/the-subtract-join/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
