<?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>Taher.se</title>
	<atom:link href="http://taher.se/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://taher.se</link>
	<description>Just another blog</description>
	<lastBuildDate>Tue, 08 Nov 2011 10:26:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Page numbers in SSRS when exporting to word</title>
		<link>http://taher.se/?p=118&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=page-numbers-in-ssrs-when-exporting-to-word</link>
		<comments>http://taher.se/?p=118#comments</comments>
		<pubDate>Tue, 08 Nov 2011 10:26:41 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Header]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[Page header]]></category>
		<category><![CDATA[page number]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://taher.se/?p=118</guid>
		<description><![CDATA[Recently I had some problems when developing a report in SSRS that needed to be exported to word. In the page header I wanted to display the page number in the following format: page x(y) Should be simple enough ="Sida &#8230; <a href="http://taher.se/?p=118">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I had some problems when developing a report in SSRS that needed to be exported to word.</p>
<p>In the page header I wanted to display the page number in the following format:<br />
page x(y)</p>
<p>Should be simple enough<br />
<code>="Sida "+CStr(Globals!PageNumber)+" ("+CStr(Globals!TotalPages)+")"</code><br />
or<br />
<code>"page: " + Globals!PageNumber.ToString + " of " + Globals!TotalPages.ToString</code></p>
<p>But that didn&#8217;t work. In MS Word the header always said page 1(1). The solution is to use &#8220;Expression with Text Runs&#8221; as stated on <a href="http://technet.microsoft.com/en-us/library/dd283105.aspx">technet</a>. In the page number example that means<br />
<code>="Sida " &#038; Globals!PageNumber &#038; " (" &#038; Globals!TotalPages &#038; ")"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=118</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating and populating a date dimension with Swedish or Norwegian weeks</title>
		<link>http://taher.se/?p=107&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-and-populating-a-date-dimension-with-swedish-or-norwegian-weeks</link>
		<comments>http://taher.se/?p=107#comments</comments>
		<pubDate>Wed, 21 Sep 2011 08:56:40 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Database Modeling]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[Dimension]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://taher.se/?p=107</guid>
		<description><![CDATA[Quite often when you work with analyzing data you need to be able to see your KPI&#8217;s per day, week or some other time-frame. Both Sweden and Norway has a fairly unusual way to handle week numbers which might make &#8230; <a href="http://taher.se/?p=107">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div>
<p>Quite often when you work with analyzing data you need to be able to see your KPI&#8217;s per day, week or some other time-frame. Both Sweden and Norway has a fairly unusual way to handle week numbers which might make it a bit difficult to find scripts that are ready to use. Here is my DimDate table and the procedure I have to populate the table.</p>
<p>This script is based on <a title="Robins original script" href="http://www.robinlangell.com/skapa-en-datumdimension-for-ett-data-warehouse-inkluderar-skript/" target="_blank">a post</a>  by <a title="Robin Langell" href="http://www.robinlangell.com/" target="_blank">Robin Langell</a>.</p>
<p>The changes that I have made are:</p>
<ol>
<li>Changed object names to English</li>
<li>Added dayInYear</li>
<li>Use ISO_WEEK instead of WEEK (gives Swedish/Norwegian week behavior)</li>
<li>Made it into a procedure</li>
<li>Set start and end date (instead of creating a certain number of days)</li>
<li>Made Sunday to be day number 7 (instead of day 0)</li>
</ol>
<p>Ofcourse feel free to let me know if there are any errors in my code!</p>
<p><strong>Creating the table:</strong></p>
<pre class="brush: sql; gutter: false">use [YourDB]
go

declare @table as varchar(50)
SET @table = 'DimDate'

IF NOT EXISTS (
	select 'Y'
	from sys.tables
	where name = @table
	)

	BEGIN
		CREATE TABLE dbo.dimDate (
			ID	INT NOT NULL,
			[Day]	DATETIME NOT NULL,
			[Week]	INT NOT NULL,
			[Month]	INT NOT NULL,
			[Quarter]	INT NOT NULL,
			[Year]	INT NOT NULL,
			DayInYear INT NOT NULL,
			DayInMonth	INT NOT NULL,
			dayInWeek	INT NOT NULL,
			YearWeek	INT NOT NULL,
			MonthWithZero NVARCHAR(2) NOT NULL,
			[DayName]	NVARCHAR(10) NOT NULL,
			[MonthName]	NVARCHAR(20) NOT NULL
		CONSTRAINT PK_DimDatum_datumNyckel PRIMARY KEY (ID)
		);
		SELECT 'Table did not exist, table '+ @table +' created';
	END ELSE
		IF NOT (
			SELECT COUNT(*)
			FROM DimDate
			) &gt; 0
		BEGIN
			Drop Table DimDate;

			CREATE TABLE dbo.dimDate (
				ID	INT NOT NULL,
				[Day]	DATETIME NOT NULL,
				[Week]	INT NOT NULL,
				[Month]	INT NOT NULL,
				[Quarter]	INT NOT NULL,
				[Year]	INT NOT NULL,
				DayInYear INT NOT NULL,
				DayInMonth	INT NOT NULL,
				dayInWeek	INT NOT NULL,
				YearWeek	INT NOT NULL,
				MonthWithZero NVARCHAR(2) NOT NULL,
				[DayName]	NVARCHAR(10) NOT NULL,
				[MonthName]	NVARCHAR(20) NOT NULL
			CONSTRAINT PK_DimDatum_datumNyckel PRIMARY KEY (ID)
			);
			SELECT 'Table '+ @table +' existed without data, table dropped and recreated';
		END ELSE
		SELECT 'Table '+ @table +' contains data, no action taken';</pre>
<p><strong>And then creating the procedure:</strong></p>
<pre class="brush: sql; gutter: false">Use [YourDB]
go

IF EXISTS (
	SELECT 'Y'
	FROM sys.objects
	WHERE name = 'AddDates'
	)
	Drop proc AddDates
go

CREATE PROC AddDates
	(
	@StartDate as DateTime,
	@EndDate as DateTime
	)
AS 

  DECLARE @CurrentDate AS DATETIME
  SET @CurrentDate = @StartDate
  WHILE @CurrentDate &lt;= @EndDate
	BEGIN
		INSERT INTO dbo.DimDate
		SELECT
		CAST(CONVERT(nvarchar(10), @CurrentDate, 112) as int) as ID,
		CAST(CONVERT(nvarchar(10), @CurrentDate, 112) as DATETIME) as [Day],
		DATEPART(ISO_WEEK,@CurrentDate) as [Week],
		MONTH(@CurrentDate) as [Month],
		DATEPART(Q,@CurrentDate) as [Quarter],
		YEAR(@CurrentDate) as [Year],
		DatePart(DayOfYear, @CurrentDate) AS DayInYear,
		DATEPART(DD,@CurrentDate) as DayInMonth,
		CASE WHEN DATEPART(WEEKDAY,@CurrentDate) -1 = 0 THEN 7
			ELSE DATEPART(WEEKDAY,@CurrentDate) -1
		END as dayInWeek,
		CASE WHEN DATEPART(WEEK,@CurrentDate) &lt; 10 THEN CAST(YEAR(@CurrentDate) AS NVARCHAR(4)) + '0' +  CAST(DATEPART(WEEK,@CurrentDate) AS NVARCHAR(2))
			ELSE  CAST(YEAR(@CurrentDate) AS NVARCHAR(4)) + CAST(DATEPART(WEEK,@CurrentDate) AS NVARCHAR(2))
		END as YearWeek,
		CASE WHEN MONTH(@CurrentDate) &lt; 10 THEN '0' + CAST(MONTH(@CurrentDate) AS NVARCHAR(2))
			ELSE CAST(MONTH(@CurrentDate) AS NVARCHAR(2))
		END as MonthWithZero,
		CASE
			WHEN DATEPART(WEEKDAY,@CurrentDate) -1 = 1 THEN 'Måndag'
			WHEN DATEPART(WEEKDAY,@CurrentDate) -1 = 2 THEN 'Tisdag'
			WHEN DATEPART(WEEKDAY,@CurrentDate) -1 = 3 THEN 'Onsdag'
			WHEN DATEPART(WEEKDAY,@CurrentDate) -1 = 4 THEN 'Torsdag'
			WHEN DATEPART(WEEKDAY,@CurrentDate) -1 = 5 THEN 'Fredag'
			WHEN DATEPART(WEEKDAY,@CurrentDate) -1 = 6 THEN 'Lördag'
			WHEN DATEPART(WEEKDAY,@CurrentDate) -1 = 0 THEN 'Söndag'
		END	as [DayName],
		CASE
			WHEN MONTH(@CurrentDate) = 1 THEN 'Januari'
			WHEN MONTH(@CurrentDate) = 2 THEN 'Februari'
			WHEN MONTH(@CurrentDate) = 3 THEN 'Mars'
			WHEN MONTH(@CurrentDate) = 4 THEN 'April'
			WHEN MONTH(@CurrentDate)= 5 THEN 'Maj'
			WHEN MONTH(@CurrentDate)= 6 THEN 'Juni'
			WHEN MONTH(@CurrentDate)= 7 THEN 'Juli'
			WHEN MONTH(@CurrentDate)= 8 THEN 'Augusti'
			WHEN MONTH(@CurrentDate)= 9 THEN 'September'
			WHEN MONTH(@CurrentDate)= 10 THEN 'Oktober'
			WHEN MONTH(@CurrentDate)= 11 THEN 'November'
			WHEN MONTH(@CurrentDate)= 12 THEN 'December'
		END	as [MonthName]
		SET @CurrentDate += 1
    END
go</pre>
<p><strong>And finally populating the table</strong></p>
<pre class="brush: sql; gutter: false">exec AddDates '19700101','20201231';</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=107</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blast from the past</title>
		<link>http://taher.se/?p=88&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=blast-from-the-past</link>
		<comments>http://taher.se/?p=88#comments</comments>
		<pubDate>Tue, 21 Jun 2011 18:20:42 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[earth2025 earth 2025 game Centralen Shield GP LaF LaFamiglia La Famiglia Stealth DonStealth LasseMaja LM Sire Blubb Sana]]></category>

		<guid isPermaLink="false">http://taher.se/?p=88</guid>
		<description><![CDATA[taher.se/Centralen and taher.se/shield There you have som old school gaming stuff. Don&#8217;t know if the game is still around.. I see that I don&#8217;t have the images, I guess they were to big for me to save =)]]></description>
			<content:encoded><![CDATA[<p>taher.se/Centralen and taher.se/shield<br />
There you have som old school gaming stuff. Don&#8217;t know if the game is still around.. I see that I don&#8217;t have the images, I guess they were to big for me to save =)</p>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=88</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSIS &#8211; How to handle sensitive data</title>
		<link>http://taher.se/?p=79&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ssis-how-to-handle-sensitive-data</link>
		<comments>http://taher.se/?p=79#comments</comments>
		<pubDate>Tue, 26 Apr 2011 08:46:34 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[best practice]]></category>
		<category><![CDATA[Sensitive data]]></category>

		<guid isPermaLink="false">http://taher.se/?p=79</guid>
		<description><![CDATA[While working with developing SSIS you will eventually have to deploy your packages to a production environment. Chances are that you run in to this error message Error at  []: Failed to decrypt protected XML node &#8220;DTS:Password&#8221; with error 0x8009000B &#8230; <a href="http://taher.se/?p=79">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While working with developing SSIS you will eventually have to deploy your packages to a production environment. Chances are that you run in to this error message</p>
<blockquote><p>Error at  []: Failed to decrypt protected XML node &#8220;DTS:Password&#8221; with error 0x8009000B &#8220;Key not valid for use in specified state.&#8221;. You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.</p></blockquote>
<p>If you do then <a title="SSIS package protection level" href="http://bi-polar23.blogspot.com/2009/04/ssis-and-package-protectionlevel.html" target="_blank">this blog post</a> and <a title="SSIS package configuration" href="http://bisqlserver.rdacorp.com/2007/08/ssis-package-configurations-best.html" target="_blank">this one</a> will help you understand why and how you should handle it in the future.</p>
<p>In short: Before you start developing your packages you need to think about deploying the solution to the production environment. What you should do is set your package cariable called <em>ProtectionLevel </em>to <em>DontSaveSensitive</em>, why? Cause you should store your sensitive data in a database and keep your connection data to that table in one package variable. The first link above explains why and the second link above explains how.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=79</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSIS naming conventions</title>
		<link>http://taher.se/?p=75&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ssis-naming-conventions</link>
		<comments>http://taher.se/?p=75#comments</comments>
		<pubDate>Thu, 21 Apr 2011 09:35:14 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[ETL]]></category>
		<category><![CDATA[naming conventions]]></category>

		<guid isPermaLink="false">http://taher.se/?p=75</guid>
		<description><![CDATA[I would suggest using the following naming conventions when working with naming conventions. Why? Naming conventions are good as it makes it easier for you and your fellow developers to read the existing packages. Why this set? The list comes &#8230; <a href="http://taher.se/?p=75">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I would suggest using the following naming conventions when working with naming conventions. Why? Naming conventions are good as it makes it easier for you and your fellow developers to read the existing packages. Why this set? The list comes from the Microsoft most valued professional (MVP )Jamie Thomson. The list is taken from this post</p>
<p><a title="http://consultingblogs.emc.com/jamiethomson/archive/2006/01/05/SSIS_3A00_-Suggested-Best-Practices-and-naming-conventions.aspx" href="http://consultingblogs.emc.com/jamiethomson/archive/2006/01/05/SSIS_3A00_-Suggested-Best-Practices-and-naming-conventions.aspx" target="_blank">http://consultingblogs.emc.com/jamiethomson/archive/2006/01/05/SSIS_3A00_-Suggested-Best-Practices-and-naming-conventions.aspx</a></p>
<p>The acronymns below should be used at the beginning of the names of tasks to identify what type of task it is.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>Task</td>
<td>Prefix</td>
</tr>
<tr>
<td>For Loop Container</td>
<td>FLC</td>
</tr>
<tr>
<td>Foreach Loop Container</td>
<td>FELC</td>
</tr>
<tr>
<td>Sequence Container</td>
<td>SEQC</td>
</tr>
<tr>
<td>ActiveX Script</td>
<td>AXS</td>
</tr>
<tr>
<td>Analysis Services Execute DDL</td>
<td>ASE</td>
</tr>
<tr>
<td>Analysis Services Processing</td>
<td>ASP</td>
</tr>
<tr>
<td>Bulk Insert</td>
<td>BLK</td>
</tr>
<tr>
<td>Data Flow</td>
<td>DFT</td>
</tr>
<tr>
<td>Data Mining Query</td>
<td>DMQ</td>
</tr>
<tr>
<td>Execute DTS 2000 Package</td>
<td>EDPT</td>
</tr>
<tr>
<td>Execute Package</td>
<td>EPT</td>
</tr>
<tr>
<td>Execute Process</td>
<td>EPR</td>
</tr>
<tr>
<td>Execute SQL</td>
<td>SQL</td>
</tr>
<tr>
<td>File System</td>
<td>FSYS</td>
</tr>
<tr>
<td>FTP</td>
<td>FTP</td>
</tr>
<tr>
<td>Message Queue</td>
<td>MSMQ</td>
</tr>
<tr>
<td>Script</td>
<td>SCR</td>
</tr>
<tr>
<td>Send Mail</td>
<td>SMT</td>
</tr>
<tr>
<td>Transfer Database</td>
<td>TDB</td>
</tr>
<tr>
<td>Transfer Error Messages</td>
<td>TEM</td>
</tr>
<tr>
<td>Transfer Jobs</td>
<td>TJT</td>
</tr>
<tr>
<td>Transfer Logins</td>
<td>TLT</td>
</tr>
<tr>
<td>Transfer Master Stored Procedures</td>
<td>TSP</td>
</tr>
<tr>
<td>Transfer SQL Server Objects</td>
<td>TSO</td>
</tr>
<tr>
<td>Web Service</td>
<td>WST</td>
</tr>
<tr>
<td>WMI Data Reader</td>
<td>WMID</td>
</tr>
<tr>
<td>WMI Event Watcher</td>
<td>WMIE</td>
</tr>
<tr>
<td>XML</td>
<td>XML</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>These acronymns should be used at the beginning of the names of components to identify what type of component it is.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>Component</td>
<td>Prefix</td>
</tr>
<tr>
<td>DataReader Source</td>
<td>DR_SRC</td>
</tr>
<tr>
<td>Excel Source</td>
<td>EX_SRC</td>
</tr>
<tr>
<td>Flat File Source</td>
<td>FF_SRC</td>
</tr>
<tr>
<td>OLE DB Source</td>
<td>OLE_SRC</td>
</tr>
<tr>
<td>Raw File Source</td>
<td>RF_SRC</td>
</tr>
<tr>
<td>XML Source</td>
<td>XML_SRC</td>
</tr>
<tr>
<td>Aggregate</td>
<td>AGG</td>
</tr>
<tr>
<td>Audit</td>
<td>AUD</td>
</tr>
<tr>
<td>Character Map</td>
<td>CHM</td>
</tr>
<tr>
<td>Conditional Split</td>
<td>CSPL</td>
</tr>
<tr>
<td>Copy Column</td>
<td>CPYC</td>
</tr>
<tr>
<td>Data Conversion</td>
<td>DCNV</td>
</tr>
<tr>
<td>Data Mining Query</td>
<td>DMQ</td>
</tr>
<tr>
<td>Derived Column</td>
<td>DER</td>
</tr>
<tr>
<td>Export Column</td>
<td>EXPC</td>
</tr>
<tr>
<td>Fuzzy Grouping</td>
<td>FZG</td>
</tr>
<tr>
<td>Fuzzy Lookup</td>
<td>FZL</td>
</tr>
<tr>
<td>Import Column</td>
<td>IMPC</td>
</tr>
<tr>
<td>Lookup</td>
<td>LKP</td>
</tr>
<tr>
<td>Merge</td>
<td>MRG</td>
</tr>
<tr>
<td>Merge Join</td>
<td>MRGJ</td>
</tr>
<tr>
<td>Multicast</td>
<td>MLT</td>
</tr>
<tr>
<td>OLE DB Command</td>
<td>CMD</td>
</tr>
<tr>
<td>Percentage Sampling</td>
<td>PSMP</td>
</tr>
<tr>
<td>Pivot</td>
<td>PVT</td>
</tr>
<tr>
<td>Row Count</td>
<td>CNT</td>
</tr>
<tr>
<td>Row Sampling</td>
<td>RSMP</td>
</tr>
<tr>
<td>Script Component</td>
<td>SCR</td>
</tr>
<tr>
<td>Slowly Changing Dimension</td>
<td>SCD</td>
</tr>
<tr>
<td>Sort</td>
<td>SRT</td>
</tr>
<tr>
<td>Term Extraction</td>
<td>TEX</td>
</tr>
<tr>
<td>Term Lookup</td>
<td>TEL</td>
</tr>
<tr>
<td>Union All</td>
<td>ALL</td>
</tr>
<tr>
<td>Unpivot</td>
<td>UPVT</td>
</tr>
<tr>
<td>Data Mining Model Training</td>
<td>DMMT_DST</td>
</tr>
<tr>
<td>DataReader Destination</td>
<td>DR_DST</td>
</tr>
<tr>
<td>Dimension Processing</td>
<td>DP_DST</td>
</tr>
<tr>
<td>Excel Destination</td>
<td>EX_DST</td>
</tr>
<tr>
<td>Flat File Destination</td>
<td>FF_DST</td>
</tr>
<tr>
<td>OLE DB Destination</td>
<td>OLE_DST</td>
</tr>
<tr>
<td>Partition Processing</td>
<td>PP_DST</td>
</tr>
<tr>
<td>Raw File Destination</td>
<td>RF_DST</td>
</tr>
<tr>
<td>Recordset Destination</td>
<td>RS_DST</td>
</tr>
<tr>
<td>SQL Server Destination</td>
<td>SS_DST</td>
</tr>
<tr>
<td>SQL Server Mobile Destination</td>
<td>SSM_DST</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=75</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSIS Script component task</title>
		<link>http://taher.se/?p=67&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ssis-script-component-task</link>
		<comments>http://taher.se/?p=67#comments</comments>
		<pubDate>Thu, 21 Apr 2011 08:40:48 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[ETL]]></category>
		<category><![CDATA[Script Component Task]]></category>
		<category><![CDATA[Script Component Transformation]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://taher.se/?p=67</guid>
		<description><![CDATA[Are you getting some weird errors while working with the Script component task in SSIS? I got errors like Ambiguity between Input0Buffer.x and Input0Buffer.x or The name &#8216;Output0Buffer&#8217; does not exist in the current context and while googling the errors &#8230; <a href="http://taher.se/?p=67">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Are you getting some weird errors while working with the Script component task in SSIS?</p>
<p>I got errors like </p>
<blockquote><p>Ambiguity between Input0Buffer.x and Input0Buffer.x</p></blockquote>
<p>or</p>
<blockquote><p>The name &#8216;Output0Buffer&#8217; does not exist in the current context</p></blockquote>
<p>and while googling the errors I didn&#8217;t find much help on the subject.</p>
<p>The errors I had where not caused by the actual Visual C# code I was working on but some settings on hte script component task that I had overlooked.</p>
<p>In my case it was the &#8220;SynchronousInputID&#8221; that should have been set to &#8220;None&#8221;. When that was done the errors dissappeared.<br />
<a href="http://taher.se/wp-content/uploads/2011/04/ScriptComponentTask.jpg"><img src="http://taher.se/wp-content/uploads/2011/04/ScriptComponentTask-1024x643.jpg" alt="" title="ScriptComponentTask - Inputs and Outputs" width="640" height="401" class="alignnone size-large wp-image-70" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ice cream in the sun</title>
		<link>http://taher.se/?p=63&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ice-cream-in-the-sun</link>
		<comments>http://taher.se/?p=63#comments</comments>
		<pubDate>Sat, 16 Apr 2011 15:17:34 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://taher.se/?p=63</guid>
		<description><![CDATA[Had a nice afternoon with some ice cream in the sun. Really nice =)]]></description>
			<content:encoded><![CDATA[<p>Had a nice afternoon with some ice cream in the sun.</p>
<p>Really nice =)</p>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=63</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with timezones?</title>
		<link>http://taher.se/?p=51&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=problems-with-timezones</link>
		<comments>http://taher.se/?p=51#comments</comments>
		<pubDate>Sun, 10 Apr 2011 21:43:35 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[modx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://taher.se/?p=51</guid>
		<description><![CDATA[So here I am trying to install modx revolution on a Virtual LAMP server hosted somewhere outside my home. After setting up the basic things on the VPS such as Apache2m MySQL-server and the such I download modx revolution, crete &#8230; <a href="http://taher.se/?p=51">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So here I am trying to install modx revolution on a Virtual LAMP server hosted somewhere outside my home.</p>
<p>After setting up the basic things on the VPS such as Apache2m MySQL-server and the such I download modx revolution, crete a database for it and go to the setup page only to be greeted by this:</p>
<blockquote><p>
FATAL ERROR: MODx Setup cannot continue.<br />
To use PHP 5.3.0+, you must set the date.timezone setting in your php.ini. Please do set it to a proper timezone before proceeding. A list can be found here.
</p></blockquote>
<p>Thanx for that curveball..<br />
After a bit of googling you learn that you need to set up you date and timezones properly sure enough you type<br />
<code>dpkg-reconfigure tzdata</code><br />
and set your timezone, but it still doesn&#8217;t work so you figure out that you need to edit your php.ini cause as of PHP5.3 the timezone isn&#8217;t set by default in php.ini anymore. Fine..</p>
<p><code>find / -name php.ini</code></p>
<blockquote><p>
/etc/php5/apache2/php.ini<br />
/etc/php5/cgi/php.ini<br />
/etc/php5/cli/php.ini
</p></blockquote>
<p>so you edit them all adding the line<br />
<code>ini_set('date.timezone', 'Europe/Stockholm');</code><br />
under the Date section in your php.ini files and it still doesn&#8217;t work..?!?! WTF?!</p>
<p>Seems to work for a lot of other people but not for you?! I don&#8217;t know why but what you can do is to add the following<br />
<code>ini_set('date.timezone', 'Europe/Stockholm');</code><br />
to<br />
./core/config/config.inc.php<br />
./setup/index.php<br />
assuming that it is modx you&#8217;re working on..<br />
(Thank you mvladk for helping me with this solution)<br />
This issue is not a modx specific issue and unfortunatly I don&#8217;t know how to solve the real issue so I have had to accept this solution instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=51</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to check the version on your Ubuntu server</title>
		<link>http://taher.se/?p=48&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-check-the-version-on-your-ubuntu-server</link>
		<comments>http://taher.se/?p=48#comments</comments>
		<pubDate>Sun, 10 Apr 2011 19:43:01 +0000</pubDate>
		<dc:creator>taher</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS version]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://taher.se/?p=48</guid>
		<description><![CDATA[Do you have a virtual private server (VPS) somewhere and want to know exactly what version of Ubuntu you&#8217;re running? From your termnial type: cat /etc/lsb-release for me that returns the following DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.04 DISTRIB_CODENAME=lucid DISTRIB_DESCRIPTION=&#8221;Ubuntu 10.04.1 LTS&#8221; So, is &#8230; <a href="http://taher.se/?p=48">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Do you have a virtual private server (VPS) somewhere and want to know exactly what version of Ubuntu you&#8217;re running?</p>
<p>From your termnial type:<br />
<code>cat /etc/lsb-release</code><br />
for me that returns the following </p>
<blockquote><p>
DISTRIB_ID=Ubuntu<br />
DISTRIB_RELEASE=10.04<br />
DISTRIB_CODENAME=lucid<br />
DISTRIB_DESCRIPTION=&#8221;Ubuntu 10.04.1 LTS&#8221;
</p></blockquote>
<p>So, is it a 32-bit system or a 64 bit system?<br />
Type<br />
<code>uname -m</code><br />
in my case it says i686 which means it is a 32-bit system.<br />
If it says x86_64 then you have a 64 bit system.</p>
]]></content:encoded>
			<wfw:commentRss>http://taher.se/?feed=rss2&#038;p=48</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

