<?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>shepherdweb.com &#187; MS SQL</title>
	<atom:link href="http://shepherdweb.com/category/database/ms-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://shepherdweb.com</link>
	<description>Shane Shepherd: web design and development; music</description>
	<lastBuildDate>Wed, 11 Nov 2009 01:46:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Error While Installing Microsoft SQL Server 2005 on Windows XP</title>
		<link>http://shepherdweb.com/2006/11/07/error-while-installing-microsoft-sql-server-2005-on-windows-xp/</link>
		<comments>http://shepherdweb.com/2006/11/07/error-while-installing-microsoft-sql-server-2005-on-windows-xp/#comments</comments>
		<pubDate>Tue, 07 Nov 2006 16:23:31 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://www.shepherdweb.com/2006/11/07/error-while-installing-microsoft-sql-server-2005-on-windows-xp/</guid>
		<description><![CDATA[I&#8217;m setting up a new PC with all the tools a Web Developer might need. While installing Microsoft SQL Server 2005, I encountered the following error during setup: SQL Server Setup failed to obtain system account information for the ASPNET account. To proceed, reinstall the .NET Framework, and then run SQL Server Setup again. This [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m setting up a new PC with all the tools a Web Developer might need.  While installing Microsoft SQL Server 2005, I encountered the following error during setup:</p>
<blockquote><p>SQL Server Setup failed to obtain system account information for the ASPNET account. To proceed, reinstall the .NET Framework, and then run SQL Server Setup again.</p></blockquote>
<p>This is caused when ASP.net is installed <em>before</em> enabling IIS.  This is easily fixed using the following on the command line:</p>
<p><kbd>\WINDOWS\Microsoft.NET\Framework\&lt;version&gt;\aspnet_regiis.exe -i</kbd></p>
<h3>References</h3>
<ul>
<li><a href="http://www.builderau.com.au/program/sqlserver/soa/Avoiding_Microsoft_SQL_Server_2005_deployment_pitfalls/0,339028455,339229543,00.htm">Avoiding Microsoft SQL Server 2005 deployment pitfalls</a></li>
<li><a href="http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx">ASP.NET IIS Registration Tool</a></li>
</ul>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/aspnet_regiis.exe" rel="tag">aspnet_regiis.exe</a>, <a href="http://technorati.com/tag/SQL+Server+2005" rel="tag"> SQL Server 2005</a>, <a href="http://technorati.com/tag/ASP.net" rel="tag"> ASP.net</a>, <a href="http://technorati.com/tag/IIS" rel="tag"> IIS</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2006/11/07/error-while-installing-microsoft-sql-server-2005-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Query Active Directory Using Enterprise Manager</title>
		<link>http://shepherdweb.com/2006/07/20/how-to-query-active-directory-using-enterprise-manager/</link>
		<comments>http://shepherdweb.com/2006/07/20/how-to-query-active-directory-using-enterprise-manager/#comments</comments>
		<pubDate>Thu, 20 Jul 2006 22:40:20 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MS SQL]]></category>

		<guid isPermaLink="false">http://www.shepherdweb.com/2006/07/20/how-to-query-active-directory-using-enterprise-manager/</guid>
		<description><![CDATA[Step 1 Open Security and find Linked Servers (Figure 1). This is where your linked server will show up after you add it. Open Tools -> SQL Query Analyzer and paste in the following code: exec sp_addlinkedserver 'ADSI', 'Active Directory Services 2.5', 'ADsDSOObject', 'adsdatasource' You should now be able to expand Linked Servers and see [...]]]></description>
			<content:encoded><![CDATA[<h3>Step 1</h3>
<p>Open <strong>Security</strong> and find <strong>Linked Servers</strong> (<a href="/images/posts/20060702_Figure1.png" onclick="window.open('/images/posts/20060702_Figure1.png', 'Figure 1', 'width=235, height=198'); return false">Figure 1</a>).  This is where your linked server will show up after you add it.</p>
<p>Open <strong>Tools</strong> -> <strong>SQL Query Analyzer</strong> and paste in the following code:</p>
<p><code class="block">exec sp_addlinkedserver 'ADSI', 'Active Directory Services 2.5', 'ADsDSOObject', 'adsdatasource'</code></p>
<p>You should now be able to expand Linked Servers and see a server called ADSI&#8230;and under that Tables and Views (<a href="/images/posts/20060720_Figure2.png" onclick="window.open('/images/posts/20060720_Figure2.png', 'Figure 2', 'width=150, height=95'); return false">Figure 2</a>).</p>
<h3>Step 2</h3>
<p>Go back to SQL Query Analyzer and run the following query:</p>
<p><code class="block">SELECT SAMaccountname, CN, telephoneNumber FROM     OPENQUERY(ADSI,                 'SELECT telephoneNumber, CN, SAMaccountname FROM ''LDAP://DC=your-domain,DC=com''  WHERE   objectCategory=''person'' AND objectClass=''user''  ')</code></p>
<p>Nice huh?!?  Now, create a new view and paste in this code!  To get more fields, simply add the <acronym title="Active Directory">AD</acronym> properties you would like returned&#8230;and update your SELECT.  You can also filter by using WHERE on the outside of the parenthesis.  For example:</p>
<p><code class="block">SELECT SAMaccountname, CN, telephoneNumber FROM     OPENQUERY(ADSI,                 'SELECT telephoneNumber, CN, SAMaccountname FROM ''LDAP://DC=your-domain,DC=com''  WHERE   objectCategory=''person'' AND objectClass=''user''  ') WHERE SAMaccountname='sshepherd'</code></p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/distributed_query.asp">more info: <acronym title="MicroSoft Developer Network">MSDN</acronym></a></p>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/Active+Directory" rel="tag">Active Directory</a>, <a href="http://technorati.com/tag/SQL" rel="tag"> SQL</a>, <a href="http://technorati.com/tag/Enterprise+Manager" rel="tag"> Enterprise Manager</a>, <a href="http://technorati.com/tag/Linked+Server" rel="tag"> Linked Server</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2006/07/20/how-to-query-active-directory-using-enterprise-manager/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

