<?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>PeteStilgoe.com &#187; SQL Server</title>
	<atom:link href="http://www.petestilgoe.com/category/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.petestilgoe.com</link>
	<description>&#34;Be fearful when others are greedy, be greedy when others are fearful.”</description>
	<lastBuildDate>Mon, 30 Jan 2012 14:28:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>SQL script to search all tables for a particular column name</title>
		<link>http://www.petestilgoe.com/2012/01/sql-script-to-search-all-tables-for-a-particular-column-name/</link>
		<comments>http://www.petestilgoe.com/2012/01/sql-script-to-search-all-tables-for-a-particular-column-name/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 09:19:44 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Scripts]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=1025</guid>
		<description><![CDATA[

Run the below script against a database to return all tables where a particular column name exists

use my_db
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE &#039;&#60;columnname&#62;&#039;
ORDER BY schema_name, table_name;


]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2012/01/sql-script-to-search-all-tables-for-a-particular-column-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create an Excel Workbook from an SQL database using Open XML SDK 2.0</title>
		<link>http://www.petestilgoe.com/2011/03/how-to-create-an-excel-workbook-from-an-sql-database-using-open-xml-sdk-2-0/</link>
		<comments>http://www.petestilgoe.com/2011/03/how-to-create-an-excel-workbook-from-an-sql-database-using-open-xml-sdk-2-0/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 16:26:01 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[MS Office]]></category>
		<category><![CDATA[Open XML SDK]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[MS Excel]]></category>
		<category><![CDATA[Open XML SDK 2]]></category>
		<category><![CDATA[sql 2008]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=872</guid>
		<description><![CDATA[

Below is the C# code to create a new Excel workbook based on a template file &#038; populated by an SQL database.
You need to add references to:
DocumentFormat.OpenXml
System.Data.Linq
Windows.Base

using System;
using System.IO;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Spreadsheet;
using DocumentFormat.OpenXml;

namespace ElitetoExcel
{
    class Program
    {
        static string[] [...]]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2011/03/how-to-create-an-excel-workbook-from-an-sql-database-using-open-xml-sdk-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharepoint 2010: Database doesnt exist but sill appears in Central Admin &#8211;&gt; Manage Databases Upgrade Status</title>
		<link>http://www.petestilgoe.com/2011/02/sharepoint-2010-database-doesnt-exist-but-sill-appears-in-central-admin-manage-databases-upgrade-status/</link>
		<comments>http://www.petestilgoe.com/2011/02/sharepoint-2010-database-doesnt-exist-but-sill-appears-in-central-admin-manage-databases-upgrade-status/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 08:45:40 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[Sharepoint Databases]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[sql 2008]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=798</guid>
		<description><![CDATA[

If you have deleted your database in SQL but they sill appear in Central Admin &#8211;> Manage Databases Upgrade Status, you can use the following Powershell script to remove them:
$db = Get-SPDatabase &#124; where{$_.Name -eq &#34;YourDatabaseName&#34;}

$db.Delete()

]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2011/02/sharepoint-2010-database-doesnt-exist-but-sill-appears-in-central-admin-manage-databases-upgrade-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Populate a Sharepoint list from an SQL Database</title>
		<link>http://www.petestilgoe.com/2011/01/populate-a-sharepoint-list-from-an-sql-database/</link>
		<comments>http://www.petestilgoe.com/2011/01/populate-a-sharepoint-list-from-an-sql-database/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 13:39:24 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[Sharepoint Lists]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL SSIS]]></category>
		<category><![CDATA[Sharepoint / MOSS / WSS]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[sql 2008]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=790</guid>
		<description><![CDATA[

If you are wanting to populate a Sharepoint list from an SQL database or populate a SQL database from a Sharepoint list you can do this failry easily using SSIS &#038; the SharePoint List Source and Destination Adapter project on Codeplex.
Introduction
This sample illustrates the creation of a a source and destination adapter in C#, using [...]]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2011/01/populate-a-sharepoint-list-from-an-sql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error (Exception from HRESULT: 0&#215;80004004 (E_ABORT))</title>
		<link>http://www.petestilgoe.com/2010/05/error-exception-from-hresult-0x80004004-e_abort/</link>
		<comments>http://www.petestilgoe.com/2010/05/error-exception-from-hresult-0x80004004-e_abort/#comments</comments>
		<pubDate>Wed, 05 May 2010 07:59:50 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[Sharepoint Errors]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Sharepoint / MOSS / WSS]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=576</guid>
		<description><![CDATA[

This error usually occurs in Sharepoint when the transaction log is full or no drive space available to it on the SQL server in your farm.
You will usually get the error when trying to create new content etc.

]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2010/05/error-exception-from-hresult-0x80004004-e_abort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>K2 deployment error: The partner transaction manager has disabled its support for remote/network transactions</title>
		<link>http://www.petestilgoe.com/2010/01/k2-deployment-error-the-partner-transaction-manager-has-disabled-its-support-for-remotenetwork-transactions/</link>
		<comments>http://www.petestilgoe.com/2010/01/k2-deployment-error-the-partner-transaction-manager-has-disabled-its-support-for-remotenetwork-transactions/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 14:03:40 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[K2 Blackpearl]]></category>
		<category><![CDATA[K2 Blackpoint]]></category>
		<category><![CDATA[Sharepoint Errors]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=499</guid>
		<description><![CDATA[

When deploying a new K2 workflow / process you get an error message containing:
The partner transaction manager has disabled its support for remote/network transactions
First check on the application server(s):
1.      Go to &#8220;Administrative Tools > Services&#8221;
2.      Turn on the &#8220;Distribute Transaction Coordinator&#8221; Service if it is [...]]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2010/01/k2-deployment-error-the-partner-transaction-manager-has-disabled-its-support-for-remotenetwork-transactions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>K2 &#8211; &#8220;Insufficient SQL database permissions for user in database &#8216;SharePoint_Config&#8217; on SQL Server instance &#8216;WSS1&#8242;.</title>
		<link>http://www.petestilgoe.com/2010/01/k2-insufficient-sql-database-permissions-for-user-in-database-sharepoint_config-on-sql-server-instance-wss1/</link>
		<comments>http://www.petestilgoe.com/2010/01/k2-insufficient-sql-database-permissions-for-user-in-database-sharepoint_config-on-sql-server-instance-wss1/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 09:23:27 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[K2 Blackpoint]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=493</guid>
		<description><![CDATA[

If your seeing the below error in your event viewer:
Error:
&#8220;Insufficient SQL database permissions for user in database &#8216;SharePoint_Config&#8217; on SQL Server instance &#8216;WSS1&#8242;. Additional error information from SQL Server is included below.
EXECUTE permission denied on object &#8216;proc_putObject&#8217;, database &#8216;SharePoint_Config&#8217;, schema &#8216;dbo&#8217;.&#8221;
Solution:
The K2 Server account must be part of the Site Collection Admin Group in MOSS.

]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2010/01/k2-insufficient-sql-database-permissions-for-user-in-database-sharepoint_config-on-sql-server-instance-wss1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save to sql server failed no description found</title>
		<link>http://www.petestilgoe.com/2009/12/save-to-sql-server-failed-no-description-found/</link>
		<comments>http://www.petestilgoe.com/2009/12/save-to-sql-server-failed-no-description-found/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 10:42:53 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SISS Packages]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=491</guid>
		<description><![CDATA[

When trying to create an SISS package in sql server managament studio using the export wizard you get the following error message at the last stage:
&#8220;Save to sql server failed no description found&#8221;
To fix this you need to reregister the following DDL&#8217;s
Regsvr32 msxml3.dll
Regsvr32 msxml6.dll
Now when you try &#038; save you SISS package it should go [...]]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2009/12/save-to-sql-server-failed-no-description-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import data from CSV and SQL to a SharePoint list</title>
		<link>http://www.petestilgoe.com/2009/11/import-data-from-csv-and-sql-to-a-sharepoint-list/</link>
		<comments>http://www.petestilgoe.com/2009/11/import-data-from-csv-and-sql-to-a-sharepoint-list/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 09:11:03 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[Sharepoint / MOSS / WSS]]></category>
		<category><![CDATA[Sharepoint Lists]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[NHS Sharepoint]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=472</guid>
		<description><![CDATA[

This SharePoint feature allows you to quickly import data from a CSV file or a SQL stored procedure to any custom SharePoint list.
Once you have added the solution to your farm and activated it on your site collection an additional menu option will be available on the Action menu of each custom list that will [...]]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2009/11/import-data-from-csv-and-sql-to-a-sharepoint-list/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sharepoint &#8211; Creating Content Databases</title>
		<link>http://www.petestilgoe.com/2009/06/sharepoint-creating-content-databases/</link>
		<comments>http://www.petestilgoe.com/2009/06/sharepoint-creating-content-databases/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 06:23:00 +0000</pubDate>
		<dc:creator>peter.stilgoe</dc:creator>
				<category><![CDATA[Sharepoint / MOSS / WSS]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Content Database]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.petestilgoe.com/?p=335</guid>
		<description><![CDATA[

When you create a content database in Sharepoint through the central admin it is created with the following characteristics:
Recovery Model: FULL
Auto growth: 1mb
Log file growth: 10%
The one we are concerned with here is the Auto growth being set to 1mb.  This means is we upload a 50mb file, the Db has to grow 50 [...]]]></description>
		<wfw:commentRss>http://www.petestilgoe.com/2009/06/sharepoint-creating-content-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

