<?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>Ryan's Obligatory Blog &#187; SharePoint</title>
	<atom:link href="http://blog.ryanwheeler.co.uk/category/sharepoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ryanwheeler.co.uk</link>
	<description>Random thoughts, SharePoint and the software business...</description>
	<lastBuildDate>Sun, 03 Oct 2010 13:09:28 +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>Setting up SharePoint with a SQL Server 2008 Instance</title>
		<link>http://blog.ryanwheeler.co.uk/2008/11/setting-up-sharepoint-with-sql-server-2008-instance/</link>
		<comments>http://blog.ryanwheeler.co.uk/2008/11/setting-up-sharepoint-with-sql-server-2008-instance/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 11:08:35 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.ryanwheeler.co.uk/?p=18</guid>
		<description><![CDATA[This seems to come up time and time again and can leave people hairless. I haven&#8217;t found a good, simple walkthrough &#8211; so I thought I would put together a quick post. Disclaimer : This post is written from the perspective of a developer setting up a dev/test system. For production purposes you need to [...]]]></description>
			<content:encoded><![CDATA[<p>This seems to come up time and time again and can leave people hairless. I haven&#8217;t found a good, simple walkthrough &#8211; so I thought I would put together a quick post.</p>
<p><span style="color: #ff6600;"><em>Disclaimer : This post is written from the perspective of a developer setting up a dev/test system. For production purposes you need to thoroughly understand the security implications of all the setting listed below. But you knew that already.</em></span></p>
<p>Back in the good ol days you never had any trouble getting apps connecting to SQL Sever. Username<a title="Voyager Alpha Force worm" href="http://support.microsoft.com/kb/313418" target="_blank"> &#8220;sa&#8221; and a blank password</a> and you were good to go <img src='http://blog.ryanwheeler.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Things are a bit more difficult now&#8230;</p>
<p>This particular example walks through installing <a title="Download Windows SharePoint Services" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=D51730B5-48FC-4CA2-B454-8DC2CAF93951&amp;displaylang=en" target="_blank">Windows SharePoint Services</a> on one server (a virtual server, but it makes no difference) connecting to a <a title="SQL Server 2008 Express" href="http://www.microsoft.com/SQL/default.mspx" target="_blank">SQL Server 2008 Express</a> database <strong>Instance </strong>on another server.</p>
<p>Both servers are using the same domain. This <a title="SharePoint and database on different domains" href="http://support.microsoft.com/kb/932376" target="_blank">kb 932376</a> should help if you are running SharePoint and a Database on servers in different domains or no domain at all.</p>
<p>Firstly, install SQL Server on its own instance (lets assume the machine is called <strong>SQL2008EXP </strong>and the instance is called <strong>SharePoint</strong>). There&#8217;s a whole big process here that involves what is possibly the worlds most complex installer that inexplicably leaves you manually hunting for all the pre-requisites (Windows Installer 4.5, NET 3.5 SP1, Powershell &#8211; but that&#8217;s all out of the scope of this post). Seriously Microsofties, you have outdone yourselves with this installer!</p>
<p>Grumbling aside &#8211; setup a Domain Account <strong>(A)</strong> that the SharePoint services will use. As usual for service account make it &#8216;password never expires&#8217; and uncheck &#8216;user must change password on first login&#8217;.</p>
<p>Start <strong>Microsoft SQL Server Management Studio</strong> and go to <strong>Security </strong>&gt; <strong>Logins</strong>, right click and select <strong>New Login</strong>. Enter your DOMAIN\UserName <strong>(A)</strong> that you created above. Select <strong>Server Roles</strong> and check <strong>dbcreator </strong>and <strong>securityadmin</strong>.</p>
<p style="text-align: center;"><a href="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/sql-permissions.gif" target="_blank"><img class="size-medium wp-image-19 aligncenter" title="sql-permissions" src="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/sql-permissions-300x172.gif" alt="" width="300" height="172" /></a><br />
Install <a title="Download Windows SharePoint Services" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=D51730B5-48FC-4CA2-B454-8DC2CAF93951&amp;displaylang=en" target="_blank">WSSv3 (SP1 or above)</a> &#8211; select <strong>Advanced </strong>and then <strong>&#8220;Web Front End&#8221;</strong> as we want to use SQL Server not MSDE.</p>
<p style="text-align: center;"><a href="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/install-advanced.gif" target="_blank"><img class="alignnone size-medium wp-image-20" title="install-advanced" src="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/install-advanced-300x167.gif" alt="SharePoint - select Advanced Install" width="300" height="167" /></a> <a href="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/install-webfrontend.gif" target="_blank"><img class="alignnone size-medium wp-image-21" title="install-webfrontend" src="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/install-webfrontend-300x108.gif" alt="SharePoint - select Web Farm Front End" width="300" height="108" /></a></p>
<p>The <strong>SharePoint Products and Technologies Configuration Wizard</strong> should start automatically</p>
<p>Select <strong>&#8220;No, I want to create a new server farm&#8221;</strong></p>
<p style="text-align: center;"><a href="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/config-new-farm.gif" target="_blank"><img class="aligncenter size-medium wp-image-23" title="config-new-farm" src="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/config-new-farm-300x99.gif" alt="Create a new server farm" width="300" height="99" /></a></p>
<p>Fill in the account details that you setup earlier (A)</p>
<p style="text-align: center;"><a href="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/install-database-settings.gif" target="_blank"><img class="aligncenter size-medium wp-image-24" title="install-database-settings" src="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/install-database-settings-300x255.gif" alt="Configuration Database Settings" width="300" height="255" /></a></p>
<p>Get the follwoing error</p>
<p><a href="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/install-error.gif"><img class="aligncenter size-medium wp-image-25" title="install-error" src="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/install-error-300x76.gif" alt="" width="300" height="76" /></a></p>
<address style="text-align: center;">Failed to connect to the database server or the database name does not exist. </address>
<address style="text-align: center;">Ensure the database server exists, is a Sql server, and that you have the appropriate permissions to access the database server.</address>
<p>Now its time to waste 2 hours of your life pinging servers, checking names, passwords, permissions and event logs. Or feel free to skip this step and carry on below :-</p>
<h2>SQL 2008 installs in a state that will stop you connecting from a remote server.</h2>
<p>This is not done out of badness, but for security.</p>
<p>Start <strong>SQL Server Configuration Manager</strong></p>
<p>Expand the <strong>SQL Server Network Configuration</strong> node and find the <strong>Protocols </strong>for your Instance</p>
<p>Right click on <strong>TCP/IP</strong> and click <strong>Enabled </strong>- do the same with <strong>Named Pipes</strong></p>
<p style="text-align: center;"><a href="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/config-manager.gif" target="_blank"><img class="size-medium wp-image-26 aligncenter" title="config-manager" src="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/config-manager-300x115.gif" alt="Enable TCP/IP and Named Pipes" width="300" height="115" /></a></p>
<p>Right click on <strong>TCP/IP </strong>and click <strong>Properties</strong>. Select the <strong>IP Address</strong> tab and make a note <strong>(B)</strong> of the <strong>TCP Dynamic Port</strong></p>
<p><a href="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/tcpip-properties.gif"><img class="aligncenter size-medium wp-image-27" title="tcpip-properties" src="http://blog.ryanwheeler.co.uk/wp-content/uploads/2008/11/tcpip-properties-272x300.gif" alt="" width="272" height="300" /></a></p>
<p>Restart the SQL server service</p>
<p>When you connect to a SQL Server <em>instance</em> via TCP/IP the connection attempt will query the SQL Server Browser service (on port 1434) and find out which port a specific instance is set to listen on. However by default the <strong>SQL Server Browser service</strong> is disabled. You can now either start it or use the Port number <strong>(B)</strong> you found earlier to connect directly.</p>
<p>Confusingly the syntax is different to what you may expect &#8211; no semi-colons here, <strong>use a comma</strong></p>
<pre>ServerName\InstanceName<span style="color: #ff0000;">,</span>PORT</pre>
<p><em>(If you are using a default instance then the connection will happen on port 1433 by default and you won&#8217;t have to enter the port number or worry about the SQL Browser service)</em></p>
<p>If you have a firewall running you will also have to open up this port number for incoming TCP connections. See <a title="Configuring Windows Firewall" href="http://technet.microsoft.com/en-us/library/cc737845.aspx" target="_blank">Windows Firewall</a> or the <a title="Firewall guide for SQL Server 2005" href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277" target="_blank">Firewall guide for SQL Server 2005</a></p>
<p>Further reading <a href="http://blogs.msdn.com/sql_protocols/archive/2006/09/30/SQL-Server-2005-Remote-Connectivity-Issue-TroubleShooting.aspx" target="_blank">SQL Server 2005 Remove Connectivity Issue Troubleshooting</a> (most steps applicable to 2008)</p>
 <img src="http://blog.ryanwheeler.co.uk/wp-content/plugins/feed-statistics.php?view=1&post_id=18" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.ryanwheeler.co.uk/2008/11/setting-up-sharepoint-with-sql-server-2008-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

