<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>warrenrapson - the blog</title>
	<atom:link href="http://warrenrapson.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://warrenrapson.wordpress.com</link>
	<description>scripts and thoughts from my work and hobby</description>
	<lastBuildDate>Thu, 19 Aug 2010 01:52:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='warrenrapson.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>warrenrapson - the blog</title>
		<link>http://warrenrapson.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://warrenrapson.wordpress.com/osd.xml" title="warrenrapson - the blog" />
	<atom:link rel='hub' href='http://warrenrapson.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SSRS Query for Report Executions</title>
		<link>http://warrenrapson.wordpress.com/2010/08/19/ssrs-query-for-report-executions/</link>
		<comments>http://warrenrapson.wordpress.com/2010/08/19/ssrs-query-for-report-executions/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 01:52:10 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=84</guid>
		<description><![CDATA[I whipped up this query to put in a report to give me a list of the executions of our SQL Server Reporting Services reports and their run counts with the user and additional details being available on a drill down. It&#8217;s a simple query and very easy to adapt. SELECT C.[Path], C.CreationDate, CU.UserName as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=84&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I whipped up this query to put in a report to give me a list of the executions of our SQL Server Reporting Services reports and their run counts with the user and additional details being available on a drill down. It&#8217;s a simple query and very easy to adapt.</p>
<pre>SELECT C.[Path], C.CreationDate, CU.UserName as CreatedBy, C.ModifiedDate, MU.Username as ModifiedBy,  E.Username as RunBy, E.TimeStart as DateTimeRun, DATEDIFF("ss", E.TimeStart, E.TimeEnd) as ExecutionTime, E.Parameters as RunParameters

FROM [Catalog] C
 LEFT JOIN Users CU ON C.CreatedById = CU.UserID
 LEFT JOIN Users MU ON C.ModifiedById = MU.UserID
 LEFT JOIN ExecutionLog E ON C.ItemID = E.ReportID
WHERE C.[Type] = 2 -- reports only
ORDER BY C.[Path], RunBy, E.TimeStart</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=84&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2010/08/19/ssrs-query-for-report-executions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>Get values from an SQL Stored Procedure into Excel (VBA macro)</title>
		<link>http://warrenrapson.wordpress.com/2010/05/25/get-values-from-an-sql-stored-procedure-into-excel-vba-macro/</link>
		<comments>http://warrenrapson.wordpress.com/2010/05/25/get-values-from-an-sql-stored-procedure-into-excel-vba-macro/#comments</comments>
		<pubDate>Tue, 25 May 2010 00:49:32 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=76</guid>
		<description><![CDATA[I&#8217;m using the below function in an Excel macro to get the results of a simple stored procedure into an Excel spreadsheet. The function needs the connection string defined within it, but this can easily setup to be dynamic in the function parameters if needed. Also I&#8217;m only using one parameter, but I have no doubt that you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=76&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using the below function in an Excel macro to get the results of a simple stored procedure into an Excel spreadsheet. The function needs the connection string defined within it, but this can easily setup to be dynamic in the function parameters if needed. Also I&#8217;m only using one parameter, but I have no doubt that you create a multi-value function parameter to take several stored proc parameters.</p>
<p>In your macro, simply call the function and it will populate cells with your stored proc results beginning at the current active cell.</p>
<pre>Function insertStoredProcValues(spName As String, strParameter As String)

    Dim Conn As ADODB.Connection
    Dim ADODBCmd As ADODB.Command
    Dim rs As ADODB.Recordset
    Dim i As Integer
    Dim sConnect As String

    '--DEFINE CONNECTION STRING HERE---------------------------------------------------------
    sConnect = "driver={sql server}; server=MYSERVERNAME; Database=MYDATABASENAME; UID=MYUSERNAME; PWD=MYPASSWORD;"
    '----------------------------------------------------------------------------------------

    'Establish connection
    Set Conn = New ADODB.Connection
    Conn.ConnectionString = sConnect
    Conn.Open

    'Open recordset
    Set ADODBCmd = New ADODB.Command
    ADODBCmd.ActiveConnection = Conn
    ADODBCmd.CommandText = spName
    ADODBCmd.CommandType = adCmdStoredProc
    ADODBCmd.Parameters.Refresh
    ADODBCmd.Parameters(1).Value = strParameter
    Set rs = ADODBCmd.Execute()

    'Loop through recordset and place values
    rs.MoveFirst
    Do While rs.EOF = False
        For i = 0 To rs.Fields.Count - 1
            ActiveCell.Value = rs.Fields(i).Value   'insert value into cell
            ActiveCell.Offset(0, 1).Activate        'move to next cell for next value
        Next i
        ActiveCell.Offset(1, -i).Activate           'move to next row for next record
    rs.MoveNext
    Loop

    'Clean up
    rs.Close
    Set rs = Nothing
End Function
 </pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=76&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2010/05/25/get-values-from-an-sql-stored-procedure-into-excel-vba-macro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>SSIS: Output SQL to XML file</title>
		<link>http://warrenrapson.wordpress.com/2009/11/23/ssis-output-sql-to-xml-file/</link>
		<comments>http://warrenrapson.wordpress.com/2009/11/23/ssis-output-sql-to-xml-file/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 04:48:01 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL XML]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=73</guid>
		<description><![CDATA[I wanted to create an XML file from an SQL table using SSIS. I found the following blog, but the method I used is in the user comments from &#8220;J. Morgan Smith&#8221;. I also had to do what &#8220;sam&#8221; and &#8220;BB88&#8243; said. http://consultingblogs.emc.com/jamiethomson/archive/2006/07/11/4209.aspx &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=73&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to create an XML file from an SQL table using SSIS. I found the following blog, but the method I used is in the user comments from &#8220;J. Morgan Smith&#8221;. I also had to do what &#8220;sam&#8221; and &#8220;BB88&#8243; said.</p>
<p><a href="http://consultingblogs.emc.com/jamiethomson/archive/2006/07/11/4209.aspx">http://consultingblogs.emc.com/jamiethomson/archive/2006/07/11/4209.aspx</a></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=73&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2009/11/23/ssis-output-sql-to-xml-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Reporting Services Date Parameters</title>
		<link>http://warrenrapson.wordpress.com/2009/11/12/sql-reporting-services-date-parameters/</link>
		<comments>http://warrenrapson.wordpress.com/2009/11/12/sql-reporting-services-date-parameters/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 00:58:00 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=68</guid>
		<description><![CDATA[Again, I&#8217;m posting these here mainly to assist in my own forgetfulness. Start of Month: =DateAdd("d", -datepart("d", Today()) +1, Today()) Start of Last Month: =DateAdd("m", -1, DateAdd("d", -datepart("d", Today()) +1, Today())) Last Day of Last Month: =DateAdd("d", -datepart("d", Today()) , Today())<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=68&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Again, I&#8217;m posting these here mainly to assist in my own forgetfulness.</p>
<pre>Start of Month: =DateAdd("d", -datepart("d", Today()) +1, Today())

Start of Last Month: =DateAdd("m", -1, DateAdd("d", -datepart("d", Today()) +1, Today()))

Last Day of Last Month: =DateAdd("d", -datepart("d", Today()) , Today())</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=68&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2009/11/12/sql-reporting-services-date-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>Having trouble bridging your modem and your Astaro Security Gateway?</title>
		<link>http://warrenrapson.wordpress.com/2009/07/28/having-trouble-bridging-your-modem-and-your-astaro-security-gateway/</link>
		<comments>http://warrenrapson.wordpress.com/2009/07/28/having-trouble-bridging-your-modem-and-your-astaro-security-gateway/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 08:45:19 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Astaro]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=66</guid>
		<description><![CDATA[I know I was. I just couldn&#8217;t get the thing to connect when I change my ASG&#8217;s external interface from &#8216;Cable Modem (DHCP)&#8217; to PPPoE. The answer? Instead of changing the interface delete it first and just re-create it &#8211; worked a charm for me! Also worth noting that deleting the interface took my NAT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=66&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I know I was. I just couldn&#8217;t get the thing to connect when I change my ASG&#8217;s external interface from &#8216;Cable Modem (DHCP)&#8217; to PPPoE.</p>
<p>The answer? Instead of <em>changing</em> the interface <em>delete</em> it first and just re-create it &#8211; worked a charm for me!</p>
<p>Also worth noting that deleting the interface took my NAT settings with it &#8211; I just reverted to the backup, took some screen shots and then recreated them.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=66&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2009/07/28/having-trouble-bridging-your-modem-and-your-astaro-security-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>MS Access &#8211; Link tables with VBA</title>
		<link>http://warrenrapson.wordpress.com/2009/07/07/ms-access-link-tables-with-vba/</link>
		<comments>http://warrenrapson.wordpress.com/2009/07/07/ms-access-link-tables-with-vba/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 23:54:18 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[VBA]]></category>
		<category><![CDATA[Access]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=64</guid>
		<description><![CDATA[Just posting this here because I can never remember it myself. I can also never find it online either so it might be simple and handy to others too&#8230; Sub LinkTables()     Dim tbl As New TableDef Dim ConnectString As String     ConnectString = "ODBC;DRIVER=SQL Server;SERVER=myServerName;DATABASE=myDatabaseName;uid=myUserID;pwd=myPa$$w0rd"     Set tbl = New TableDef     On Error Resume [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=64&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just posting this here because I can never remember it myself. I can also never find it online either so it might be simple and handy to others too&#8230;</p>
<pre>Sub LinkTables()
    Dim tbl As New TableDef
    Dim ConnectString As String

    ConnectString = "ODBC;DRIVER=SQL Server;SERVER=myServerName;DATABASE=myDatabaseName;uid=myUserID;pwd=myPa$$w0rd"

    Set tbl = New TableDef
    On Error Resume Next

    tbl.Name = "destinationTableName"
    tbl.SourceTableName = "sourceTableName"
    tbl.Connect = ConnectString
    CurrentDb.TableDefs.Append tbl
End Sub</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=64&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2009/07/07/ms-access-link-tables-with-vba/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>Google mail as a backup email server/mail queue using Small Business Server 2008</title>
		<link>http://warrenrapson.wordpress.com/2009/06/22/google-mail-as-a-backup-email-servermail-queue-using-small-business-server-2008/</link>
		<comments>http://warrenrapson.wordpress.com/2009/06/22/google-mail-as-a-backup-email-servermail-queue-using-small-business-server-2008/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 23:14:42 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=62</guid>
		<description><![CDATA[This is an expansion of an idea I saw here http://weblogs.asp.net/guybarrette/archive/2008/05/25/using-gmail-as-a-backup-mail-server.aspx The situation: I have a small business with one server running SBS 2008 and I want email redundancy so that I don’t miss any email while my server is down for maintenance, power failure, etc. I also don’t want the hassle of periodically checking [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=62&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is an expansion of an idea I saw here <a href="http://weblogs.asp.net/guybarrette/archive/2008/05/25/using-gmail-as-a-backup-mail-server.aspx">http://weblogs.asp.net/guybarrette/archive/2008/05/25/using-gmail-as-a-backup-mail-server.aspx</a></p>
<p><span style="text-decoration:underline;">The situation:</span></p>
<p>I have a small business with one server running SBS 2008 and I want email redundancy so that I don’t miss any email while my server is down for maintenance, power failure, etc. I also don’t want the hassle of periodically checking my off-site email address to see if anything has end up there, hence, I want a mail queue.</p>
<p><span style="text-decoration:underline;">The solution:</span></p>
<ul>
<li>Sign up for Google Apps email account (<a href="http://www.google.com/a">www.google.com/a</a>).</li>
<li>Replicate your user accounts on the Google mail. You may as well use the one administrator password for all accounts because users will never need to log in themselves.</li>
<li>Assign your secondary MX records to point to the Google addresses specified in the settings they give.</li>
</ul>
<p>At this point, Google will receive your mail if your server is unreachable.</p>
<ul>
<li>On the SBS Console, click the Netwtorking tab, then the Connectivity tab</li>
<li>Setup the SBS POP 3 Connector using the information available in the Google settings for each account</li>
<li>Setup the POP/Forwarding in each Google account and you’re done!</li>
</ul>
<p>So now, if your server is unreachable, Google will get your mail. When your server is back up, it will query the Google inboxes at the intervals you specified and forward your mail to where it needs to go!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=62&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2009/06/22/google-mail-as-a-backup-email-servermail-queue-using-small-business-server-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Event Handler to set Item-Level Security based on Names in a List Column</title>
		<link>http://warrenrapson.wordpress.com/2009/05/20/sharepoint-event-handler-to-set-item-level-security-based-on-names-in-a-list-column/</link>
		<comments>http://warrenrapson.wordpress.com/2009/05/20/sharepoint-event-handler-to-set-item-level-security-based-on-names-in-a-list-column/#comments</comments>
		<pubDate>Wed, 20 May 2009 03:44:42 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=56</guid>
		<description><![CDATA[First, I would like to credit a lady by the name of Mirjam for her piece at http://www.sharepointblogs.com/mirjam/archive/2007/11/11/setting-item-level-security-in-an-eventhandler.aspx; it was the starting point that I so desperately needed to build this &#8211; thanks Mirjam! What I have here is piece of code that takes the information of two columns, &#8216;WriteSecurity&#8217; and &#8216;ReadSecurity&#8217; and sets Contribute and Read permissions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=56&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First, I would like to credit a lady by the name of Mirjam for her piece at <a href="http://www.sharepointblogs.com/mirjam/archive/2007/11/11/setting-item-level-security-in-an-eventhandler.aspx">http://www.sharepointblogs.com/mirjam/archive/2007/11/11/setting-item-level-security-in-an-eventhandler.aspx</a>; it was the starting point that I so desperately needed to build this &#8211; thanks Mirjam!</p>
<p>What I have here is piece of code that takes the information of two columns, &#8216;WriteSecurity&#8217; and &#8216;ReadSecurity&#8217; and sets Contribute and Read permissions respectively on a document library item. This allows the user to choose security for the document that they create/upload at the time of their create/upload.</p>
<p>It is a feature that overrides the ItemUpdating and ItemUpdated events in a site collection. The feature first looks for the columns, WriteSecurity and ReadSecurity; if it does not find both of them, it ignores the rest of the process and continues as normal. If it does find them both, it will check for data within those columns; if no data is present, the method will have the item inherit permissions from its containing library. If it finds that only the ReadSecurity column is filled, it will throw an error saying that Read without Write permissions are not allowed. Otherwise the process will cycle through the users/groups specified and assign the appropriate permissions. All of this is done with elevated permissions, but the &#8216;Modified By&#8217; column will be that of the calling user.</p>
<p>I&#8217;ve spent a lot of time on this code, but I was not a C# programmer when I started and I knew nothing of SharePoint event receivers and code-based modification. That said, this has worked in two environments. I would imagine, however, that an experienced programmer/SharePoint Guru, would identify my messy bits and suggest better approaches (please do!) especially with my method of extracting user IDs from the security columns, and the way I repeat the code for the Write and Read bits.</p>
<p>This has been designed to work with Document Libraries. As said before, the feature looks for the columns &#8216;WriteSecurity&#8217; and &#8216;ReadSecurity&#8217; with no spaces &#8211; at least, the columns in the library should be created that way; you can rename after. And I believe that this may not work if your user&#8217;s domain starts with a number&#8230;</p>
<p>For those who are like I was when I first created this, he&#8217;s the summarised approach to take:</p>
<ol>
<li>Using Visual Studio, create a C# Class Library Project</li>
<li>Add a reference to Windows SharePoint Services</li>
<li>Rename the class to SetPermissionsEventhandler</li>
<li>Copy the C# code into the project</li>
<li>Sign the project with a strong key</li>
<li>Build it</li>
<li>Drag the resulting DLL from the project&#8217;s bin folder into the c:\windows\assembly folder on the SharePoint server.</li>
<li>Copy the Public Key Token from the DLL now in the assembly</li>
<li>Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ on the SharePoint server</li>
<li>Create a folder called SetPermissionsEventhandler</li>
<li>Within that, create two files, Feature.xml and Elements.xml</li>
<li>Copy the respective XML codes (specified below) into the files</li>
<li>Open a command prompt</li>
<li>Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN</li>
<li>Run this: stsadm -o installfeature -filename SetPermissionsEventhandler\Feature.xml</li>
<li>Run this: stsadm -o activatefeature -filename SetPermissionsEventhandler\Feature.xml -url <a href="http://YOURSITECOLLECTION">http://YOURSITECOLLECTION</a></li>
<li>Run this: iisreset</li>
<li>If you haven&#8217;t already, create a Document Library with &#8216;People or Group&#8217; columns called &#8216;WriteSecurity&#8217; and &#8216;ReadSecurity&#8217;</li>
<li>Enjoy.</li>
</ol>
<p>Class Code:</p>
<pre>using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using System.Security;
using System.Security.Principal;
using System.Security.Permissions;
using System.Text.RegularExpressions;

namespace SetPermissionsEventhandler
{
    public class SetPermissions : SPItemEventReceiver
    {
        public override void ItemUpdating(SPItemEventProperties properties)
        {
            base.ItemUpdating(properties);
            //make sure security fields exist
            if (properties.ListItem.Fields.ContainsField("WriteSecurity") == true &amp;&amp;
                properties.ListItem.Fields.ContainsField("ReadSecurity") == true)
            {
                // check to see if the user has set Read Security without setting
                // Write Security. If so, show error page and cancel the process.
                if (properties.AfterProperties["WriteSecurity"].ToString() == ""
                    &amp;&amp; properties.AfterProperties["ReadSecurity"].ToString() != "")
                {
                    properties.Cancel = true;
                    properties.ErrorMessage = "You cannot specify Read Security without also specifying Write Security. " +
                        "\r\n\r\nPlease click your browser's BACK button to try again.";
                }
            }
        }
       
       
        //this will fire if the ItemUpdating event was not cancelled
        public override void ItemUpdated(SPItemEventProperties properties)
        {
            //make sure security fields exist again
            if (properties.ListItem.Fields.ContainsField("WriteSecurity") == true &amp;&amp;
                properties.ListItem.Fields.ContainsField("ReadSecurity") == true)
            {
                //make sure that file is not checked-out before setting any permissions
                if (properties.ListItem.File.CheckOutStatus == SPFile.SPCheckOutStatus.None)
                {
                    //if no security data has been specified, inherit the permission of the
                    //containing library otherwise run the method to set the permissions
                    if (properties.AfterProperties["WriteSecurity"].ToString() == ""
                        &amp;&amp; properties.AfterProperties["ReadSecurity"].ToString() == "")
                    {
                        InheritLibraryPermission(properties);
                    }
                    else
                    {
                        SetNewPermissions(properties);
                    }
                }
            }
        }
 
        private void InheritLibraryPermission(SPItemEventProperties properties)
        {
            Guid siteID,webID,listID;
            int itemID;
            listID = properties.ListId;
            itemID = properties.ListItem.ID;
            using (SPWeb web = properties.OpenWeb())
            {
                siteID = web.Site.ID;
                webID = web.ID;
            }
            //get the calling user id for later use
            String callingUserID = properties.CurrentUserId.ToString();
            //run this block as System Account
            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite(siteID))
                {
                    using (SPWeb web = site.OpenWeb(webID))
                    {
                        SPList list = web.Lists[listID];
                        SPRoleAssignmentCollection roles = list.RoleAssignments;
                        SPListItem updatedItem = list.GetItemById(itemID);
                        updatedItem.ResetRoleInheritance();
                        this.DisableEventFiring();
                        //sets the 'Modified By' column as the calling user, not the System Account
                        updatedItem["Editor"] = callingUserID;
                        updatedItem.Update();
                        this.EnableEventFiring();
                    }
                }
            });
        }
 

        private void SetNewPermissions(SPItemEventProperties properties)
        {
            Guid siteID,webID,listID;
            int itemID;
            listID = properties.ListId;
            itemID = properties.ListItem.ID;
            //get the calling userid for later use
            String callingUserID = properties.CurrentUserId.ToString();
            using (SPWeb web = properties.OpenWeb())
            {
                siteID = web.Site.ID;
                webID = web.ID;
            }
            //run this block as System Account
            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite(siteID))
                {
                    using (SPWeb web = site.OpenWeb(webID))
                    {
                        SPList list = web.Lists[listID];
                        SPRoleAssignmentCollection roles = list.RoleAssignments;
                        SPListItem updatedItem = list.GetItemById(itemID);
                        updatedItem.BreakRoleInheritance(false);
                        SPRoleDefinitionCollection roleDefinitions = web.RoleDefinitions;
                        SPRoleAssignmentCollection roleAssignments = updatedItem.RoleAssignments;
                        SPUserCollection users = web.AllUsers;
                        //SPGroupCollection groups = web.Groups;
                        SPGroupCollection groups = web.SiteGroups;
                        //Remove all Permissions before applying chosen permissions
                        for (int x = updatedItem.RoleAssignments.Count - 1; x &gt;= 0; --x)
                        {
                            updatedItem.RoleAssignments.Remove(x);
                        }
                        //set write permissions
                        foreach (String eachUserID in getUserIDsFromPeopleColumn(updatedItem.File.Properties["WriteSecurity"].ToString()))
                        {
                            int intID = Int32.Parse(eachUserID);
                            //determine if ID is user or group
                            Boolean isGroup = false;
                            foreach (SPGroup testGroup in web.SiteGroups)
                            {
                                if (testGroup.ID == intID)
                                {
                                    isGroup = true;
                                }
                            }
                            if (isGroup == false) //user
                            {
                                SPUser userToAdd = users.GetByID(intID);
                                SPRoleAssignment roleAssignment = new SPRoleAssignment(userToAdd);
                                SPRoleDefinitionBindingCollection roleDefBindings = roleAssignment.RoleDefinitionBindings;
                                roleDefBindings.Add(roleDefinitions["Contribute"]);
                                roleAssignments.Add(roleAssignment);
                            }
                            else //group
                            {
                                SPGroup groupToAdd = groups.GetByID(intID);
                                SPRoleAssignment groupRoleAssignment = new SPRoleAssignment(groupToAdd);
                                SPRoleDefinitionBindingCollection groupRoleDefBindings = groupRoleAssignment.RoleDefinitionBindings;
                                groupRoleDefBindings.Add(roleDefinitions["Contribute"]);
                                roleAssignments.Add(groupRoleAssignment);
                            }
                        }

                        //repeat the above for Read permissions, if specifed
                        if (updatedItem.File.Properties["ReadSecurity"].ToString() != "")
                        {
                            //set permissions
                            foreach (String eachUserID in getUserIDsFromPeopleColumn(updatedItem.File.Properties["ReadSecurity"].ToString()))
                            {
                                int intID = Int32.Parse(eachUserID);
                                //determine if ID is user or group
                                Boolean isGroup = false;
                                foreach (SPGroup testGroup in web.SiteGroups)
                                {
                                    if (testGroup.ID == intID)
                                    {
                                        isGroup = true;
                                    }
                                }
                                if (isGroup == false) //user
                                {
                                    SPUser userToAdd = users.GetByID(intID);
                                    SPRoleAssignment roleAssignment = new SPRoleAssignment(userToAdd);
                                    SPRoleDefinitionBindingCollection roleDefBindings = roleAssignment.RoleDefinitionBindings;
                                    roleDefBindings.Add(roleDefinitions["Read"]);
                                    roleAssignments.Add(roleAssignment);
                                }
                                else //group
                                {
                                    SPGroup groupToAdd = groups.GetByID(intID);
                                    SPRoleAssignment groupRoleAssignment = new SPRoleAssignment(groupToAdd);
                                    SPRoleDefinitionBindingCollection groupRoleDefBindings = groupRoleAssignment.RoleDefinitionBindings;
                                    groupRoleDefBindings.Add(roleDefinitions["Read"]);
                                    roleAssignments.Add(groupRoleAssignment);
                                }
                            }
                        }
                        //update the item preventing further events
                        this.DisableEventFiring();
                        updatedItem["Editor"] = callingUserID; //sets the 'Modified By' column as the calling user, not the System Account
                        updatedItem.Update();
                        this.EnableEventFiring();
                    }
                }
            });
        }
 
        public string[] getUserIDsFromPeopleColumn(String rawUsers)
        {
            rawUsers = "#" + rawUsers;
            string[] rawUsersArray = rawUsers.Split(';');
            string Users = "";
            foreach (string eachUser in rawUsersArray)
            {
                if (System.Text.RegularExpressions.Regex.IsMatch(eachUser.Substring(1, 1), "^[A-Za-z]$") == false)
                {
                    Users = Users + eachUser.Substring(1) + ";";
                }
            }
            Users = Users.Substring(0, Users.Length - 1);
            string[] UsersArray = Users.Split(';');
            return UsersArray;
        }
    }
}</pre>
<p> </p>
<p> </p>
<p> </p>
<p>Feature.xml</p>
<pre>&lt;Feature Scope="Web"
   Title="Set Permissions Event Handler"
   Description="This feature takes the People and Groups identified in the 'Write Security' and 'Read Security' columns in Document Libraries and applies the relevant permissions to each item when it is edited. If the item is checked-out, the permissions will not be applied until the item is checked back in. To enable this feature's functionality in a Document Library, 'Person or Group' columns must be created with the names, WriteSecurity and ReadSecurity (with no spaces); they can be renamed thereafter."
   Id="CREATEANEWGUIDANDPUTITHERE"
   xmlns="<a href="http://schemas.microsoft.com/sharepoint/">http://schemas.microsoft.com/sharepoint/</a>"&gt;
   &lt;ElementManifests&gt;
      &lt;ElementManifest Location="Elements.xml"/&gt;
   &lt;/ElementManifests&gt;
&lt;/Feature&gt;</pre>
<p> </p>
<p> </p>
<p>Elements.xml</p>
<pre>&lt;Elements xmlns="<a href="http://schemas.microsoft.com/sharepoint/">http://schemas.microsoft.com/sharepoint/</a>"&gt;
   &lt;Receivers ListTemplateId="101"&gt;
      &lt;Receiver&gt;
         &lt;Name&gt;SetPermissionsEventhandler&lt;/Name&gt;
         &lt;Type&gt;ItemUpdating&lt;/Type&gt;
         &lt;SequenceNumber&gt;10000&lt;/SequenceNumber&gt;
         &lt;Assembly&gt;SetPermissionsEventhandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=PUBLICKEYTOKENFROMYOURDLL&lt;/Assembly&gt;
         &lt;Class&gt;SetPermissionsEventhandler.SetPermissions&lt;/Class&gt;
         &lt;Data&gt;&lt;/Data&gt;
         &lt;Filter&gt;&lt;/Filter&gt;
      &lt;/Receiver&gt;
      &lt;Receiver&gt;
         &lt;Name&gt;SetPermissionsEventhandler&lt;/Name&gt;
         &lt;Type&gt;ItemUpdated&lt;/Type&gt;
         &lt;SequenceNumber&gt;10000&lt;/SequenceNumber&gt;
         &lt;Assembly&gt;SetPermissionsEventhandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=PUBLICKEYTOKENFROMYOURDLL&lt;/Assembly&gt;
         &lt;Class&gt;SetPermissionsEventhandler.SetPermissions&lt;/Class&gt;
         &lt;Data&gt;&lt;/Data&gt;
         &lt;Filter&gt;&lt;/Filter&gt;
      &lt;/Receiver&gt;
   &lt;/Receivers&gt;
&lt;/Elements&gt;
 
 </pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=56&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2009/05/20/sharepoint-event-handler-to-set-item-level-security-based-on-names-in-a-list-column/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>Word Macro to separate pages into separate documents</title>
		<link>http://warrenrapson.wordpress.com/2009/03/31/word-macro-to-separate-pages-into-separate-documents/</link>
		<comments>http://warrenrapson.wordpress.com/2009/03/31/word-macro-to-separate-pages-into-separate-documents/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 05:18:45 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=54</guid>
		<description><![CDATA[This little piece of code takes a word document and saves each page as its own document with the filname &#8220;FILENAME_x&#8221;. I haven&#8217;t done extensive testing, but please feel free to comment.     Dim i As Integer     Dim varNumberPages As Variant     varNumberPages = ActiveDocument.Content.Information(wdActiveEndAdjustedPageNumber)     For i = 1 To varNumberPages         Selection.GoTo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=54&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This little piece of code takes a word document and saves each page as its own document with the filname &#8220;FILENAME_x&#8221;. I haven&#8217;t done extensive testing, but please feel free to comment.</p>
<pre>    Dim i As Integer
    Dim varNumberPages As Variant
    varNumberPages = ActiveDocument.Content.Information(wdActiveEndAdjustedPageNumber)
    For i = 1 To varNumberPages
        Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
        Selection.Find.ClearFormatting
        With Selection.Find
            .Text = ""
            .Replacement.Text = ""
            .Forward = True
            .Wrap = wdFindContinue
            .Format = False
            .MatchCase = False
            .MatchWholeWord = False
            .MatchWildcards = False
            .MatchSoundsLike = False
            .MatchAllWordForms = False
        End With
        Selection.EndKey Unit:=wdStory, Extend:=wdExtend
        Selection.Cut
        Selection.TypeBackspace
        ActiveDocument.SaveAs FileName:="FILENAME_" &amp; i &amp; ".doc", FileFormat:= _
            wdFormatDocument, LockComments:=False, Password:="", AddToRecentFiles:= _
            True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:= _
            False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
            SaveAsAOCELetter:=False
        Selection.WholeStory
        Selection.Delete Unit:=wdCharacter, Count:=1
        Selection.PasteAndFormat (wdPasteDefault)
        Selection.HomeKey Unit:=wdStory
    Next i</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=54&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2009/03/31/word-macro-to-separate-pages-into-separate-documents/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint folders showing as http locations and webfolders?</title>
		<link>http://warrenrapson.wordpress.com/2009/03/25/sharepoint-folders-showing-as-http-locations-and-webfolders/</link>
		<comments>http://warrenrapson.wordpress.com/2009/03/25/sharepoint-folders-showing-as-http-locations-and-webfolders/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 00:19:38 +0000</pubDate>
		<dc:creator>warrenrapson</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://warrenrapson.wordpress.com/?p=52</guid>
		<description><![CDATA[Check that WebClient service is running on your local machine &#8211; it worked for me! We had this problem in our Citrix and Terminal Server environments &#8211; for whatever reason, those servers had the WebClient service disabled. Without this serivce running we experienced odd errors in various pieces of software as they would not allow saving to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=52&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Check that WebClient service is running on your local machine &#8211; it worked for me!</p>
<p>We had this problem in our Citrix and Terminal Server environments &#8211; for whatever reason, those servers had the WebClient service disabled. Without this serivce running we experienced odd errors in various pieces of software as they would not allow saving to a http location i.e. SharePoint.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/warrenrapson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/warrenrapson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/warrenrapson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/warrenrapson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/warrenrapson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/warrenrapson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/warrenrapson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/warrenrapson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/warrenrapson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/warrenrapson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/warrenrapson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/warrenrapson.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/warrenrapson.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/warrenrapson.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=warrenrapson.wordpress.com&amp;blog=6065806&amp;post=52&amp;subd=warrenrapson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://warrenrapson.wordpress.com/2009/03/25/sharepoint-folders-showing-as-http-locations-and-webfolders/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e35e1623e73ec9a43204660b899c41e2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">warrenrapson</media:title>
		</media:content>
	</item>
	</channel>
</rss>
