<?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; sqlserver</title>
	<atom:link href="http://www.rohand.com/tag/sqlserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rohand.com</link>
	<description>the book of i</description>
	<lastBuildDate>Sat, 28 Jan 2012 01:52:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>List Stored Procedures with Contents in SQL Server</title>
		<link>http://www.rohand.com/2010/list-stored-procedures-with-contents-in-sql-server/</link>
		<comments>http://www.rohand.com/2010/list-stored-procedures-with-contents-in-sql-server/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 15:47:06 +0000</pubDate>
		<dc:creator>rohand</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sqlserver]]></category>

		<guid isPermaLink="false">http://www.rohand.com/2010/list-stored-procedures-with-contents-in-sql-server/</guid>
		<description><![CDATA[I needed to get a list of all stored procedures that accessed a specific column in a table. Some stored procedures generated dynamic SQL statements so the View Dependencies feature was not guaranteed to get me the full list. This query lets me retrieve the name and body of all stored procedures in a database. [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to get a list of all stored procedures that accessed a specific column in a table. Some stored procedures generated <a href="http://msdn.microsoft.com/en-us/library/ms188001.aspx">dynamic SQL</a> statements so the <a href="http://msdn.microsoft.com/en-us/library/bb630261.aspx">View Dependencies</a> feature was not guaranteed to get me the full list.</p>
<p>This query lets me retrieve the name and body of all stored procedures in a database. Adding the filter to look for the specific column is relatively simple.</p>
<pre>SELECT              o.Name AS SpName, c.Text AS SpBody
FROM                syscomments c WITH (NOLOCK)
JOIN                sysobjects o WITH (NOLOCK)
ON                  c.ID = o.ID
AND                 o.Type = 'P'        -- Only stored procedures
ORDER BY            o.Name</pre>
<p>This query is for SQL Server 2005 but should work across all versions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rohand.com/2010/list-stored-procedures-with-contents-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find All Rows in Table1 That Are Not in Table2 Using JOIN</title>
		<link>http://www.rohand.com/2010/find-all-rows-in-table1-that-are-not-in-table2-using-join/</link>
		<comments>http://www.rohand.com/2010/find-all-rows-in-table1-that-are-not-in-table2-using-join/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 21:06:21 +0000</pubDate>
		<dc:creator>rohand</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[sqlserver]]></category>

		<guid isPermaLink="false">http://www.rohand.com/?p=80</guid>
		<description><![CDATA[To find all rows that are in dbo.TABLE1 but not in dbo.TABLE2 using the SQL JOIN operator: SELECT COUNT(*) FROM dbo.TABLE1 t1 WITH (NOLOCK) LEFT OUTER JOIN dbo.TABLE2 t2 WITH (NOLOCK) ON t1.PrimaryKey = t2.PrimaryKey WHERE t2.PrimaryKey IS NULL]]></description>
			<content:encoded><![CDATA[<p>To find all rows that are in <code>dbo.TABLE1</code> but not in <code>dbo.TABLE2</code> using the SQL <code>JOIN</code> operator:</p>
<pre>
SELECT              COUNT(*)
FROM                dbo.TABLE1 t1 WITH (NOLOCK)
LEFT OUTER JOIN     dbo.TABLE2 t2 WITH (NOLOCK)
ON                  t1.PrimaryKey = t2.PrimaryKey
WHERE               t2.PrimaryKey IS NULL
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rohand.com/2010/find-all-rows-in-table1-that-are-not-in-table2-using-join/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL 2008 &#8211; Manage DTS Packages</title>
		<link>http://www.rohand.com/2010/sql-2008-manage-dts-packages/</link>
		<comments>http://www.rohand.com/2010/sql-2008-manage-dts-packages/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 01:25:05 +0000</pubDate>
		<dc:creator>rohand</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sqlserver]]></category>

		<guid isPermaLink="false">http://www.rohand.com/2010/sql-2008-manage-dts-packages/</guid>
		<description><![CDATA[I installed the SQL Server 2008 Feature Pack to get the DTS components for SQL Server Management Studio 2008. However, the IDE continued to error until I copied the following files from the SQL Server 2000 manager to the SQL 2008 Manager folders. You need to have SQL 2000 Enterprise Manager installed on the same [...]]]></description>
			<content:encoded><![CDATA[<p>I installed the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=228DE03F-3B5A-428A-923F-58A033D316E1&amp;displaylang=en">SQL Server 2008 Feature Pack</a> to get the DTS components for SQL Server Management Studio 2008. However, the IDE continued to error until I copied the following files from the SQL Server 2000 manager to the SQL 2008 Manager folders. </p>
<p>You need to have SQL 2000 Enterprise Manager installed on the same machine.</p>
<h3>Copy Components into SQL Server 2005</h3>
<p> <code> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\semsfc.dll" "%ProgramFiles%\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\semsfc.dll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\sqlgui.dll" "%ProgramFiles%\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\sqlgui.dll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\sqlsvc.dll" "%ProgramFiles%\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\sqlsvc.dll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources\1033\semsfc.rll" "%ProgramFiles%\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\Resources\1033\semsfc.rll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources\1033\sqlgui.rll" "%ProgramFiles%\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\Resources\1033\sqlgui.rll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources\1033\sqlsvc.rll" "%ProgramFiles%\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\Resources\1033\sqlsvc.rll" </code> </p>
<h3>Copy Components into SQL Server 2008</h3>
<p> <code> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\semsfc.dll" "%ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\semsfc.dll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\sqlgui.dll" "%ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\sqlgui.dll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\sqlsvc.dll" "%ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\sqlsvc.dll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources\1033\semsfc.rll" "%ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Resources\1033\semsfc.rll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources\1033\sqlgui.rll" "%ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Resources\1033\sqlgui.rll" <br /> copy /y "%ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources\1033\sqlsvc.rll" "%ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Resources\1033\sqlsvc.rll" </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rohand.com/2010/sql-2008-manage-dts-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

