<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[威力手記本 :: 痞客邦 PIXNET ::]]></title>
    <link>http://weiyiao.pixnet.net/blog</link>
    <description><![CDATA[Willy Wang on BI
一個整天把資料搬來搬去的搬家工人]]></description>
    <pubDate>Wed, 27 Nov 2013 16:10:42 +0800</pubDate>
    <lastBuildDate>Wed, 27 Nov 2013 16:10:42 +0800</lastBuildDate>
    <managingEditor>weiyiao@not-valid.com (王圓外)</managingEditor>
    <copyright>Copyright 2003-2025 王圓外,Pixnet Digital Media Coporation. All rights reserved.</copyright>
    <generator>PIXNET Media Digital Coporation</generator>
    <language>zh</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>3600</ttl>
    <xhtml:meta content="noindex" name="robots" xmlns:xhtml="http://www.w3.org/1999/xhtml"/><item>
      <title><![CDATA[HTML5 Web Storage 相關文章]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/39247945</link>
      <guid>http://weiyiao.pixnet.net/blog/post/39247945</guid>
      <description><![CDATA[這幾天剛好看到這個很好用的東西，其實也是因為 ASP.NET 跟&nbsp;AngularJS 互相溝通，資料互傳的問題而困擾，又不想到太多的&nbsp;Directives，所以就暫時決定用這個來互丟資料。也是滿有趣的!
&nbsp;
想了解的人可以參考以下連結:
&nbsp;

A Quick Guide to Web Storage
Introduction to Web Storage
ASP.NET and HTML5 Local Storage
Two Ways of Passing HTML5 Web Storage Data to ASP.NET
Using HTML5 Web Storage in ASP.NET

&nbsp;]]></description>
      <content:encoded><![CDATA[<p>這幾天剛好看到這個很好用的東西，其實也是因為 ASP.NET 跟&nbsp;<a href="http://angularjs.org/" target="_blank">AngularJS</a> 互相溝通，資料互傳的問題而困擾，又不想到太多的&nbsp;Directives，所以就暫時決定用這個來互丟資料。也是滿有趣的!</p>
<p>&nbsp;</p>
<p>想了解的人可以參考以下連結:</p>
<p>&nbsp;</p>
<ul>
<li><a href="http://tutorialzine.com/2013/11/a-quick-guide-to-web-storage/" target="_blank">A Quick Guide to Web Storage</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/bg142799.aspx" target="_blank">Introduction to Web Storage</a></li>
<li><a href="http://stephenwalther.com/archive/2011/01/12/asp-net-and-html5-local-storage" target="_blank">ASP.NET and HTML5 Local Storage</a></li>
<li><a href="http://www.codeguru.com/csharp/.net/two-ways-of-passing-html5-web-storage-data-to-asp.net.htm" target="_blank">Two Ways of Passing HTML5 Web Storage Data to ASP.NET</a></li>
<li><a href="http://dotnetslackers.com/articles/aspnet/Using-HTML5-Web-Storage-in-ASP-NET.aspx" target="_blank">Using HTML5 Web Storage in ASP.NET</a></li>
</ul>
<p>&nbsp;</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/39247945">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F39247945"></div>]]></content:encoded>
      <pubDate>Wed, 27 Nov 2013 16:10:42 +0800</pubDate>
      <category><![CDATA[未分類]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/39247945#comments</comments>
    </item>
    <item>
      <title><![CDATA[Scrum Overview - Anime version]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/37943745</link>
      <guid>http://weiyiao.pixnet.net/blog/post/37943745</guid>
      <description><![CDATA[Scrum 的基礎流程看了這圖應該就要懂了才對！

下載來源 ：&nbsp;http://www.scrumprimer.org/anime]]></description>
      <content:encoded><![CDATA[<p>Scrum 的基礎流程看了這圖應該就要懂了才對！</p>
<p><img src="http://www.scrumprimer.org/overview/anime_scrum_overview_small.png" alt="" width="1024" height="729" /></p>
<p>下載來源 ：&nbsp;<a href="http://www.scrumprimer.org/anime">http://www.scrumprimer.org/anime</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/37943745">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F37943745"></div>]]></content:encoded>
      <pubDate>Fri, 04 Oct 2013 09:37:13 +0800</pubDate>
      <category><![CDATA[Scrum]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/37943745#comments</comments>
    </item>
    <item>
      <title><![CDATA[[Hyper-V] Hyper-V Remote Management Configuration Utility (HVRemote)]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/31523543</link>
      <guid>http://weiyiao.pixnet.net/blog/post/31523543</guid>
      <description><![CDATA[最近把 Hyper-V 的 Server 由 2008 升級到 Hyper-V Server 2012，這一升級最大的改變是 Hyper-V Server 變成 Server Core 的環境，只有簡單的命令列模式，所有的圖形介面都消失了，為了控制 Hyper-V Server 只好使用遠端的 Windows 8 來管理這台機器。
另外因為 Server 不在加入網域，要使用命令列模式設定相關的權限開通等實在麻煩與繁瑣，還好有一個好工具&nbsp;HVRemote.wsf 這個好工具可以使用，真的可以簡單快速的設定。
HVRemote 是由&nbsp;John Howard 所撰寫的，他的 blog 有詳細的說明使用方式&nbsp;John Howard - Senior Program Manager in the Hyper-V team
在 MSDN 也有相關的&nbsp;HVRemote 使用說明，與下載連結，首頁上面快速設定真的很方便喔！
MSDN 的&nbsp;Hyper-V Remote Management Configuration Utility

Support for Windows Server 2012 and Windows 8
10th Sept 2012 - Coming very soon in version 1.x, currently completing testing. It is not recommended you use version 0.7 on these operating systems and it may leave your system misconfigured.
10-second guide
&nbsp;


ConfigurationWherePurposeCommands

Client and Server both workgroup
Server
Create a local account (eg "john")
Use&nbsp;net user /?&nbsp;or Computer Management


&nbsp;
Server
Grant the user access
cscript hvremote.wsf /add:accountname&nbsp;***


&nbsp;
Client
Allow Anonymous Logon remote DCOM access
cscript hvremote.wsf /anondcom:grant


&nbsp;
Client
Logon with matching local account.
Ctrl+Alt+Del :)


&nbsp;
Client
If passwords do not match
cmdkey /add:servername /user:servername\account /pass


&nbsp;
Both
Verify configuration for errors
cscript hvremote.wsf /show /target:othercomputername


-------------------------
&nbsp;
&nbsp;
&nbsp;


Client workgroup, Server domain
Server
Grant domain account access
cscript hvremote.wsf /add:domain\account&nbsp;***


&nbsp;
Client
Allow Anonymous Logon remote DCOM access
cscript hvremote.wsf /anondcom:grant


&nbsp;
Client
Set credentials for domain account
cmdkey /add:servername /user:domain\account /pass


&nbsp;
Both
Verify configuration for errors
cscript hvremote.wsf /show /target:othercomputername


-------------------------
&nbsp;
&nbsp;
&nbsp;


Client domain, Server workgroup
Server
Create a local account (eg "john")
Use&nbsp;net user /?&nbsp;or Computer Management


&nbsp;
Server
Grant the user access
cscript hvremote.wsf /add:accountname&nbsp;***


&nbsp;
Client
Allow Anonymous Logon remote DCOM access
cscript hvremote.wsf /anondcom:grant


&nbsp;
Client
Set credentials for local account
Use cmdkey /add:servername /user:servername\accountname /pass


&nbsp;
Both
Verify configuration for errors
cscript hvremote.wsf /show /target:othercomputername


-------------------------
&nbsp;
&nbsp;
&nbsp;


Client and Server both domain
Server
Grant the non-admin user access
cscript hvremote.wsf /add:domain\account&nbsp;***


&nbsp;
Both
Verify configuration for errors
cscript hvremote.wsf /show /target:othercomputername



***&nbsp;Restart server if this is the first time an account has been added. Not required for Windows 8 Client Hyper-V or Windows Server 2012
&nbsp;]]></description>
      <content:encoded><![CDATA[<p>最近把 Hyper-V 的 Server 由 2008 升級到 Hyper-V Server 2012，這一升級最大的改變是 Hyper-V Server 變成 Server Core 的環境，只有簡單的命令列模式，所有的圖形介面都消失了，為了控制 Hyper-V Server 只好使用遠端的 Windows 8 來管理這台機器。</p>
<p>另外因為 Server 不在加入網域，要使用命令列模式設定相關的權限開通等實在麻煩與繁瑣，還好有一個好工具&nbsp;HVRemote.wsf 這個好工具可以使用，真的可以簡單快速的設定。</p>
<p>HVRemote 是由&nbsp;<a href="http://blogs.technet.com/b/jhoward/" target="_blank">John Howard</a> 所撰寫的，他的 blog 有詳細的說明使用方式&nbsp;<a href="http://blogs.technet.com/b/jhoward/" target="_blank">John Howard - Senior Program Manager in the Hyper-V team</a></p>
<p>在 MSDN 也有相關的&nbsp;HVRemote 使用說明，與下載連結，首頁上面快速設定真的很方便喔！</p>
<p>MSDN 的&nbsp;<a href="http://archive.msdn.microsoft.com/HVRemote" target="_blank">Hyper-V Remote Management Configuration Utility</a></p>
<hr />
<h3 style="font-size: 1.4em; padding-bottom: 0px; margin-bottom: 0.13em; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;">Support for Windows Server 2012 and Windows 8</h3>
<p><span style="color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;">10th Sept 2012 - Coming very soon in version 1.x, currently completing testing. It is not recommended you use version 0.7 on these operating systems and it may leave your system misconfigured.</span><br style="color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;" /><br style="color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;" /></p>
<h3 style="font-size: 1.4em; padding-bottom: 0px; margin-bottom: 0.13em; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;">10-second guide</h3>
<p>&nbsp;</p>
<table style="border: 0.1em solid #bbbbbb; border-collapse: collapse; color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva; font-size: 12px; text-align: start;">
<tbody>
<tr style="border: 0.1em solid #bbbbbb;"><th style="vertical-align: bottom; padding: 0.25em; border: 0.1em solid #bbbbbb;"><strong>Configuration</strong></th><th style="vertical-align: bottom; padding: 0.25em; border: 0.1em solid #bbbbbb;"><strong>Where</strong></th><th style="vertical-align: bottom; padding: 0.25em; border: 0.1em solid #bbbbbb;"><strong>Purpose</strong></th><th style="vertical-align: bottom; padding: 0.25em; border: 0.1em solid #bbbbbb;"><strong>Commands</strong></th></tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;"><strong>Client and Server both workgroup</strong></td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Server</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Create a local account (eg "john")</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Use&nbsp;<em>net user /?</em>&nbsp;or Computer Management</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Server</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Grant the user access</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /add:accountname&nbsp;<strong>***</strong></td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Client</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Allow Anonymous Logon remote DCOM access</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /anondcom:grant</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Client</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Logon with matching local account.</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Ctrl+Alt+Del :)</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Client</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">If passwords do not match</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cmdkey /add:servername /user:servername\account /pass</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Both</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Verify configuration for errors</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /show /target:othercomputername</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">-------------------------</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;"><strong>Client workgroup, Server domain</strong></td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Server</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Grant domain account access</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /add:domain\account&nbsp;<strong>***</strong></td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Client</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Allow Anonymous Logon remote DCOM access</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /anondcom:grant</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Client</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Set credentials for domain account</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cmdkey /add:servername /user:domain\account /pass</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Both</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Verify configuration for errors</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /show /target:othercomputername</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">-------------------------</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;"><strong>Client domain, Server workgroup</strong></td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Server</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Create a local account (eg "john")</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Use&nbsp;<em>net user /?</em>&nbsp;or Computer Management</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Server</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Grant the user access</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /add:accountname&nbsp;<strong>***</strong></td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Client</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Allow Anonymous Logon remote DCOM access</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /anondcom:grant</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Client</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Set credentials for local account</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Use cmdkey /add:servername /user:servername\accountname /pass</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Both</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Verify configuration for errors</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /show /target:othercomputername</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">-------------------------</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;"><strong>Client and Server both domain</strong></td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Server</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Grant the non-admin user access</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /add:domain\account&nbsp;<strong>***</strong></td>
</tr>
<tr style="border: 0.1em solid #bbbbbb;">
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">&nbsp;</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Both</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">Verify configuration for errors</td>
<td style="padding: 0.25em; border: 0.1em solid #bbbbbb;">cscript hvremote.wsf /show /target:othercomputername</td>
</tr>
</tbody>
</table>
<p><br style="color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;" /><br style="color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;" /><strong style="color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;">***</strong><span style="color: #080808; font-family: Verdana, Arial, Helvetica, sans-serif, Geneva;">&nbsp;Restart server if this is the first time an account has been added. Not required for Windows 8 Client Hyper-V or Windows Server 2012</span></p>
<p>&nbsp;</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/31523543">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F31523543"></div>]]></content:encoded>
      <pubDate>Fri, 28 Dec 2012 11:02:28 +0800</pubDate>
      <category><![CDATA[Windows Server]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/31523543#comments</comments>
    </item>
    <item>
      <title><![CDATA[[C#] [Design Patterns] Singleton Pattern]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/30971305</link>
      <guid>http://weiyiao.pixnet.net/blog/post/30971305</guid>
      <description><![CDATA[最近因為專案告一段落，在網路上看看有什麼新文章時，發現了一些新的作法，原文是英文，在此只是簡單做個記錄，與用自己的方式記錄幾個方法，有興趣看詳情的請參考原文....

參考文章：Implementing the Singleton Pattern in C#

Singleton &nbsp;顧名思義就是在一個專案中，只能允許一個實體，不管被建立幾次，都是同一個實體。

&nbsp;

]]></description>
      <content:encoded><![CDATA[<p>最近因為專案告一段落，在網路上看看有什麼新文章時，發現了一些新的作法，原文是英文，在此只是簡單做個記錄，與用自己的方式記錄幾個方法，有興趣看詳情的請參考原文....</p>

<p>參考文章：<a href="http://csharpindepth.com/articles/general/singleton.aspx" target="_blank">Implementing the Singleton Pattern in C#</a></p>

<p>Singleton &nbsp;顧名思義就是在一個專案中，只能允許一個實體，不管被建立幾次，都是同一個實體。</p>

<p>&nbsp;</p>

  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/30971305">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F30971305"></div>]]></content:encoded>
      <pubDate>Thu, 26 Jul 2012 00:04:18 +0800</pubDate>
      <category><![CDATA[C#]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/30971305#comments</comments>
    </item>
    <item>
      <title><![CDATA[Microsoft Connectors Version 2 & 1.2 for Oracle and Teradata by Attunity]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/30616850</link>
      <guid>http://weiyiao.pixnet.net/blog/post/30616850</guid>
      <description><![CDATA[在去年 3月份的時候有推出新的 1.1 修正版本。在今年&nbsp;4/3/2012 又再度發表了新版本，但這次卻是發表一個 2.0 與 1.2 的版本，主要是針對 SQL Server 2012 的版本上市。

Microsoft Connectors v2.0 for Oracle and Teradata - 主要是針對 SQL 2012 的版本。
Microsoft&reg; Connectors v1.2 for Oracle and Teradata - 為 SQL 2008 / 2008 R2 的版本，並修正 1.1 的一些小 bug.

&nbsp;
現在重點來了，原本使用的 1.1 版本的&nbsp;dtsx 的檔案，可以很順利升級到 1.2 沒有問題。
但是把&nbsp;dtsx 抓到 SSDT (SQL 2012 的 BIDS 新名稱)升級卻會發生錯誤。
目前我的解決方法為，重新拉一個來設計。但這會影響所有的升級計畫。
如果有好的方法升級請在到知，如有知道將在此更新。
&nbsp;
關於 版本升級的主要內容請參考:
Microsoft Connectors v2.0 for Oracle and Teradata &ndash; Now Available]]></description>
      <content:encoded><![CDATA[<p>在去年 3月份的時候有推出新的 1.1 修正版本。在今年&nbsp;4/3/2012 又再度發表了新版本，但這次卻是發表一個 2.0 與 1.2 的版本，主要是針對 SQL Server 2012 的版本上市。</p>
<ul>
<li><a href="http://www.microsoft.com/download/en/details.aspx?id=29283" target="_blank">Microsoft Connectors v2.0 for Oracle and Teradata</a> - 主要是針對 SQL 2012 的版本。</li>
<li><a href="http://www.microsoft.com/download/en/details.aspx?id=29284" target="_blank">Microsoft&reg; Connectors v1.2 for Oracle and Teradata</a> - 為 SQL 2008 / 2008 R2 的版本，並修正 1.1 的一些小 bug.</li>
</ul>
<p>&nbsp;</p>
<p>現在重點來了，原本使用的 1.1 版本的&nbsp;dtsx 的檔案，可以很順利升級到 1.2 沒有問題。</p>
<p>但是把&nbsp;dtsx 抓到 SSDT (SQL 2012 的 BIDS 新名稱)升級卻會發生錯誤。</p>
<p>目前我的解決方法為，重新拉一個來設計。但這會影響所有的升級計畫。</p>
<p>如果有好的方法升級請在到知，如有知道將在此更新。</p>
<p>&nbsp;</p>
<p>關於 版本升級的主要內容請參考:</p>
<h3 class="post-name"><a href="http://blogs.msdn.com/b/mattm/archive/2012/04/04/microsoft-connectors-v2-0-for-oracle-and-teradata-now-available.aspx" target="_blank">Microsoft Connectors v2.0 for Oracle and Teradata &ndash; Now Available</a></h3>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/30616850">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F30616850"></div>]]></content:encoded>
      <pubDate>Mon, 16 Apr 2012 16:35:34 +0800</pubDate>
      <category><![CDATA[SSIS]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/30616850#comments</comments>
    </item>
    <item>
      <title><![CDATA[[.NET 4.0] : Enum.HasFlag()]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/30971177</link>
      <guid>http://weiyiao.pixnet.net/blog/post/30971177</guid>
      <description><![CDATA[最近實作了一個列舉的 Flag 來處理權限的機制，也在無意之間發現了 .NET 4.0 多了一個 HasFlag 這個 Function ，這倒是節省了很多寫 code 的程式與判斷。
如下的權限身分：
public enum SystemRoles
{
    None = 0,                       // 0000 0000 0000 0000  0x0000
    ReportUser = 1 &lt;&lt; 0,            // 0000 0000 0000 0001  0x0001
    WebUser = 1 &lt;&lt; 1,               // 0000 0000 0000 0010  0x0002
    
    ACCUser = 1 &lt;&lt; 6,               // 0000 0000 0100 0000  0x0040
    HRUser = 1 &lt;&lt; 7,                // 0000 0000 1000 0000  0x0080

    ReadyOnlyAdmin = 1 &lt;&lt; 8,        // 0000 0001 0000 0000  0x0100

    ACCAdmin = 1 &lt;&lt; 10,             // 0000 0100 0000 0000  0x0400
    HRAdmin = 1 &lt;&lt; 11,              // 0000 1000 0000 0000  0x0800
    
    SystemAdmin = 1 &lt;&lt; 14,          // 0100 0000 0000 0000  0x4000
    ITAdmin = 1 &lt;&lt; 15,              // 1000 0000 0000 0000  0x8000
}

如下面的情況，早期要得到 hasFlag1 的值，必須使用 hasFlag2 的方式，才能得到相同的結果，在程式的判讀上也比較吃力，現在使用 HasFlag() 的 Function 變得更簡單易懂了。
SystemRoles flagEnum = SystemRoles.WebUser | SystemRoles.HRUser | SystemRoles.ReportUser;
        
bool hasFlag1 = flagEnum.HasFlag(SystemRoles.WebUser);
bool hasFlag2 = ((flagEnum &amp; SystemRoles.WebUser) != 0) ? true : false;
]]></description>
      <content:encoded><![CDATA[<p>最近實作了一個列舉的 Flag 來處理權限的機制，也在無意之間發現了 .NET 4.0 多了一個 HasFlag 這個 Function ，這倒是節省了很多寫 code 的程式與判斷。</p>
<p>如下的權限身分：</p>
<pre class="brush: csharp;">public enum SystemRoles
{
    None = 0,                       // 0000 0000 0000 0000  0x0000
    ReportUser = 1 &lt;&lt; 0,            // 0000 0000 0000 0001  0x0001
    WebUser = 1 &lt;&lt; 1,               // 0000 0000 0000 0010  0x0002
    
    ACCUser = 1 &lt;&lt; 6,               // 0000 0000 0100 0000  0x0040
    HRUser = 1 &lt;&lt; 7,                // 0000 0000 1000 0000  0x0080

    ReadyOnlyAdmin = 1 &lt;&lt; 8,        // 0000 0001 0000 0000  0x0100

    ACCAdmin = 1 &lt;&lt; 10,             // 0000 0100 0000 0000  0x0400
    HRAdmin = 1 &lt;&lt; 11,              // 0000 1000 0000 0000  0x0800
    
    SystemAdmin = 1 &lt;&lt; 14,          // 0100 0000 0000 0000  0x4000
    ITAdmin = 1 &lt;&lt; 15,              // 1000 0000 0000 0000  0x8000
}
</pre>
<p>如下面的情況，早期要得到 hasFlag1 的值，必須使用 hasFlag2 的方式，才能得到相同的結果，在程式的判讀上也比較吃力，現在使用 HasFlag() 的 Function 變得更簡單易懂了。</p>
<pre class="brush: csharp;">SystemRoles flagEnum = SystemRoles.WebUser | SystemRoles.HRUser | SystemRoles.ReportUser;
        
bool hasFlag1 = flagEnum.HasFlag(SystemRoles.WebUser);
bool hasFlag2 = ((flagEnum &amp; SystemRoles.WebUser) != 0) ? true : false;
</pre>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/30971177">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F30971177"></div>]]></content:encoded>
      <pubDate>Thu, 01 Dec 2011 00:00:00 +0800</pubDate>
      <category><![CDATA[C#]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/30971177#comments</comments>
    </item>
    <item>
      <title><![CDATA[使用 PrincipalContext 卻無法連到 Active Directory]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/29040445</link>
      <guid>http://weiyiao.pixnet.net/blog/post/29040445</guid>
      <description><![CDATA[就在今天，一直是好好的程式卻突然間出現錯誤了，卻出現了 &ldquo;The LDAP server is unavailable.&rdquo;
在查詢過後，發現 .NET 3.5 新的 AD 管理的 System.DirectoryServices.AccountManagement 下的 PrincipalContext 在建立時發生錯誤。
下面是原本發生錯誤的語法：
using (var ctx = new PrincipalContext(ContextType.Domain, strDomain))
{
...............
}

由於我傳入的 strDomain 是抓取登入帳號前面的網域名稱，原本好好的卻掛掉了。
解決的方式，只要把網域的全名加上去就可以了。
因此程式改成下面即可。
using (var ctx = new PrincipalContext(ContextType.Domain, String.Format("{0}.com", strDomain)))
{
................
}]]></description>
      <content:encoded><![CDATA[<p>就在今天，一直是好好的程式卻突然間出現錯誤了，卻出現了 &ldquo;<em><span style="color: #ff0000; font-size: x-small;"><strong>The LDAP server is unavailable.</strong></span></em>&rdquo;</p>
<p>在查詢過後，發現 .NET 3.5 新的 AD 管理的 System.DirectoryServices.AccountManagement 下的 PrincipalContext 在建立時發生錯誤。</p>
<p>下面是原本發生錯誤的語法：</p>
<pre class="brush: csharp;">using (var ctx = new PrincipalContext(ContextType.Domain, strDomain))
{
...............
}
</pre>
<p>由於我傳入的 strDomain 是抓取登入帳號前面的網域名稱，原本好好的卻掛掉了。</p>
<p>解決的方式，只要把網域的全名加上去就可以了。</p>
<p>因此程式改成下面即可。</p>
<pre class="brush: csharp;">using (var ctx = new PrincipalContext(ContextType.Domain, String.Format("{0}.com", strDomain)))
{
................
}</pre>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/29040445">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F29040445"></div>]]></content:encoded>
      <pubDate>Fri, 29 Apr 2011 17:40:48 +0800</pubDate>
      <category><![CDATA[Active Directory]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/29040445#comments</comments>
    </item>
    <item>
      <title><![CDATA[MSN Live Messenger 2011 不能夠過 ISA Proxy 正常連線]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/29014597</link>
      <guid>http://weiyiao.pixnet.net/blog/post/29014597</guid>
      <description><![CDATA[其實我的 NB 更換新版的 MSN 也好一陣子了，但是就是經常發現在公司要連結 MSN 卻連不上，一樣有權限但別人連的上我連不上，只差在我用新版的 MSN，我再家裡可以上 MSN ，只要不關機的情況下，到了公司也是可以連上 MSN，但是如果在公司重開機後就連不上了。
最近才有機會好好檢視其原因到底是為什麼，主要原因在於新版的 MSN 不在只是透過 IE 上的 Proxy 設定連線，而有部分程式是走 Winhttp 的 proxy 設定連線，但是基本上 winhttp proxy 的預設值就是直接存取，所以就算再 IE 上設定了 proxy 還是連不上，唯一的辦法就是去修改 winhttp 的 proxy 設定。
設定語法：
netsh winhttp set proxy [proxy-server=]&lt;server name&gt; [bypass-list=]&lt;hosts list&gt;
但是呢？又發現另外一個問題，在公司設定完後，回到家裡，MSN 又上不了了，所以只好又要在改回來了，取消設定的方式
netsh winhttp reset proxy
以上設定方式有興趣的人可以測試看看。
微軟官方 netsh winhttp 文件: Netsh Commands for Windows Hypertext Transfer Protocol (WINHTTP)]]></description>
      <content:encoded><![CDATA[<p>其實我的 NB 更換新版的 MSN 也好一陣子了，但是就是經常發現在公司要連結 MSN 卻連不上，一樣有權限但別人連的上我連不上，只差在我用新版的 MSN，我再家裡可以上 MSN ，只要不關機的情況下，到了公司也是可以連上 MSN，但是如果在公司重開機後就連不上了。</p>
<p>最近才有機會好好檢視其原因到底是為什麼，主要原因在於新版的 MSN 不在只是透過 IE 上的 Proxy 設定連線，而有部分程式是走 Winhttp 的 proxy 設定連線，但是基本上 winhttp proxy 的預設值就是直接存取，所以就算再 IE 上設定了 proxy 還是連不上，唯一的辦法就是去修改 winhttp 的 proxy 設定。</p>
<p>設定語法：</p>
<pre class="brush: bash;">netsh winhttp set proxy [proxy-server=]&lt;server name&gt; [bypass-list=]&lt;hosts list&gt;</pre>
<p>但是呢？又發現另外一個問題，在公司設定完後，回到家裡，MSN 又上不了了，所以只好又要在改回來了，取消設定的方式</p>
<pre class="brush: bash;">netsh winhttp reset proxy</pre>
<p>以上設定方式有興趣的人可以測試看看。</p>
<p>微軟官方 netsh winhttp 文件: <a href="http://technet.microsoft.com/en-us/library/cc731131%28WS.10%29.aspx" target="_blank">Netsh Commands for Windows Hypertext Transfer Protocol (WINHTTP)</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/29014597">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F29014597"></div>]]></content:encoded>
      <pubDate>Sun, 24 Apr 2011 23:47:04 +0800</pubDate>
      <category><![CDATA[軟體]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/29014597#comments</comments>
    </item>
    <item>
      <title><![CDATA[[Firefox] Firefox 4 無法正確執行 proxy.pac (Proxy 自動組態檔)]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/29001279</link>
      <guid>http://weiyiao.pixnet.net/blog/post/29001279</guid>
      <description><![CDATA[由於自己的 NB 每天都需要搬來搬去，白天在公司，晚上在家裡，但公司就需要透過 Proxy 上網，所以我就自己寫了一個 proxy.pac 的自動組態檔案，可以自動判斷我現在是在家還是在公司。
但是問題來了，使用 IE 都很正常，用了 Firefox 4 之後，竟然不 work 了。
在 firefox 的技術論壇上終於到找到解法了， 請詳見 http://support.mozilla.com/zh-TW/questions/804868
其實解法很簡單，就是 FF4 預設會把 myIpAddress() 解析回傳 IPv6 Address 而不是 IPv4 的 Address，所以每次都會變成不通過 Proxy 上網，當然不會 work。
設定方式：

進入 about:config
找到 network.dns.disableIPv6 ，並設定成 True
完成

怎麼進入 about:config 呢？其實就是在網址列上打上 about:config 就可以了。]]></description>
      <content:encoded><![CDATA[<p>由於自己的 NB 每天都需要搬來搬去，白天在公司，晚上在家裡，但公司就需要透過 Proxy 上網，所以我就自己寫了一個 proxy.pac 的自動組態檔案，可以自動判斷我現在是在家還是在公司。</p>
<p>但是問題來了，使用 IE 都很正常，用了 Firefox 4 之後，竟然不 work 了。</p>
<p>在 firefox 的技術論壇上終於到找到解法了， 請詳見 http://support.mozilla.com/zh-TW/questions/804868</p>
<p>其實解法很簡單，就是 FF4 預設會把 myIpAddress() 解析回傳 IPv6 Address 而不是 IPv4 的 Address，所以每次都會變成不通過 Proxy 上網，當然不會 work。</p>
<p>設定方式：</p>
<ol>
<li>進入 about:config</li>
<li>找到 network.dns.disableIPv6 ，並設定成 True</li>
<li>完成</li>
</ol>
<p>怎麼進入 about:config 呢？其實就是在網址列上打上 about:config 就可以了。</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/29001279">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F29001279"></div>]]></content:encoded>
      <pubDate>Fri, 22 Apr 2011 12:03:51 +0800</pubDate>
      <category><![CDATA[Firefox]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/29001279#comments</comments>
    </item>
    <item>
      <title><![CDATA[[轉載] 4招提升曝光度，讓老闆看見你工作認真 ]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/28996125</link>
      <guid>http://weiyiao.pixnet.net/blog/post/28996125</guid>
      <description><![CDATA[你常常覺得自己工作認真，但升遷嘉
獎時卻總是被忽略嗎？《Power！：面對權力叢林，你要會耍善良心機》作者傑夫瑞‧菲佛（JeffreyPfeffer）指出，想在職場上更上一層樓，
不要指望只是默默努力，別人就會主動發現，因為如果你總是低調行事，當然不會有人注意到你，更何況是賞識你的能力與潛力了。菲佛強調，「讓有決定權的人知道你表現有多好」是左右一個人升遷的關鍵，這不是逢迎拍馬，而是學會經營組織內的人際關係，做好自我形象管理。想要擺脫「存在感薄弱」的窘境，他有以下4點建議：
1.替自己創造「曝光效應」：
主管之所以常常沒看見員工的努力，並不是他們心存偏見，而是往往光自己的工作都忙不完了，無暇顧及所有細節。所以絕對不可以假設上司對你完成了什麼事都瞭若指掌，要讓上司知道你做了什麼，最好的方法就是直接告訴他們，用數字或證據明白地陳述自己所達成的績效。
2.由你來定義績效評量標準：
一件工作的表現，可以有各種面向的解讀，例如你為產品大做廣告，可能因此提升了產品市占率，卻也造成毛利率的下降。因此，想要強化別人對你的良好印象，你可以不斷強調自己表現出色的那一面，並防堵對你不利的那一面。
3.永遠要記得老闆重視什麼：
你認為重要的事，老闆不見得認為重要。想要知道老闆在意的到底是什麼，與其「自以為」，真正有效的方法是「定期去問問」，看看他們認為哪部分的工作最重要，以及他們覺得你應該做些什麼。而在問過之後，務必要遵照他們的話行事。
4.善用奉承策略：
菲
佛指出，大家都會希望獲得別人的正面反應，避免負面反應，因此別讓自己成為會讓上司感到不安、或覺得難以相處的人。如果上司犯了錯，最好由別人指出來，就
算你真的要點出某些錯誤或問題，也千萬不要攻擊上司的自我認知或能力，可以適時地將重點轉往外部環境或整體情勢，以維持上司的自尊心。（本文取材自
《Power！：面對權力叢林，你要會耍善良心機》，時報出版。整理 / 謝明彧）接軌最新國際管理新知  http://www.managertoday.com.tw/edm/edm/mt03edm/更多精彩內容請見2011年3月號《經理人月刊》http://www.managertoday.com.tw/
            ]]></description>
      <content:encoded><![CDATA[<p><span id="iclickAdBody_Start">你常常覺得自己工作認真，但升遷嘉
獎時卻總是被忽略嗎？《Power！：面對權力叢林，你要會耍善良心機》作者傑夫瑞‧菲佛（JeffreyPfeffer）指出，想在職場上更上一層樓，
不要指望只是默默努力，別人就會主動發現，因為如果你總是低調行事，當然不會有人注意到你，更何況是賞識你的能力與潛力了。<br /><br />菲佛強調，「讓有決定權的人知道你表現有多好」是左右一個人升遷的關鍵，這不是逢迎拍馬，而是學會經營組織內的人際關係，做好自我形象管理。想要擺脫「存在感薄弱」的窘境，他有以下4點建議：<br />
<h4 style="color:#990000">1.替自己創造「曝光效應」：</h4>
主管之所以常常沒看見員工的努力，並不是他們心存偏見，而是往往光自己的工作都忙不完了，無暇顧及所有細節。所以絕對不可以假設上司對你完成了什麼事都瞭若指掌，要讓上司知道你做了什麼，最好的方法就是直接告訴他們，用數字或證據明白地陳述自己所達成的績效。<br />
<h4 style="color:#990000">2.由你來定義績效評量標準：</h4>
一件工作的表現，可以有各種面向的解讀，例如你為產品大做廣告，可能因此提升了產品市占率，卻也造成毛利率的下降。因此，想要強化別人對你的良好印象，你可以不斷強調自己表現出色的那一面，並防堵對你不利的那一面。<br />
<h4 style="color:#990000">3.永遠要記得老闆重視什麼：</h4>
你認為重要的事，老闆不見得認為重要。想要知道老闆在意的到底是什麼，與其「自以為」，真正有效的方法是「定期去問問」，看看他們認為哪部分的工作最重要，以及他們覺得你應該做些什麼。而在問過之後，務必要遵照他們的話行事。<br />
<h4 style="color:#990000">4.善用奉承策略：</h4>
菲
佛指出，大家都會希望獲得別人的正面反應，避免負面反應，因此別讓自己成為會讓上司感到不安、或覺得難以相處的人。如果上司犯了錯，最好由別人指出來，就
算你真的要點出某些錯誤或問題，也千萬不要攻擊上司的自我認知或能力，可以適時地將重點轉往外部環境或整體情勢，以維持上司的自尊心。（本文取材自
《Power！：面對權力叢林，你要會耍善良心機》，時報出版。整理 / 謝明彧）<br /><br />接軌最新國際管理新知  http://www.managertoday.com.tw/edm/edm/mt03edm/<br />更多精彩內容請見<span><span id="iCliCK_SafeGuard"><span id="word_2011" style="text-decoration:underline;border-bottom:#005580 2px dashed;padding-bottom: 1px;color:#005580;background-color:transparent;cursor:pointer;">2011</span></span></span>年3月號《經理人月刊》http://www.managertoday.com.tw/
            </span></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/28996125">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F28996125"></div>]]></content:encoded>
      <pubDate>Thu, 21 Apr 2011 14:57:28 +0800</pubDate>
      <category><![CDATA[雜七雜八]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/28996125#comments</comments>
    </item>
    <item>
      <title><![CDATA[[轉載] iPhone 讓我們距離越來越遠]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/28982297</link>
      <guid>http://weiyiao.pixnet.net/blog/post/28982297</guid>
      <description><![CDATA[沈默的食指族
自從iPhone上市之後，身邊的人個個成為蘋果一族，食指功力越來越強，每次聚會到一半，拿出手機拍完照，就開始各自低頭玩手機，

急著把照片傳到 Facebook上與朋友分享，

但有趣的是，朋友明明就在身邊，卻會面對面透過手機在Facebook上針對剛剛拍的照片留言，你一來我一往的樂此不疲。
 
前陣子老公說最近看到越來越多的畫面是在餐廳看到一桌的人各自對著手機發笑，但現場卻沈默的不得了，

當時還跟老公說這些人真好笑，沒想到，現在一樣的場景卻活生生的在我們家上演中。
 
iPhone偷走我老公

老公每天回到家除了洗澡外，其餘都是蘋果時間。玩完iPhone玩iPad，聊天話題不離這個遊戲好好玩、那個軟體真方便&hellip;之類的，

親愛的老公，到底有什麼 重要的訊息讓你網路不離身，吃飯不能好好吃、電視不能好好看、聊天不能好好聊，非得拿著iPhone點點點的，

一開始因為新鮮所以我忍受，但幾個月過去了，怎麼你的蘋果熱潮卻一點都沒有退燒的樣子？
 
這幾個禮拜因為這件事不知道吵了幾次，每次都是講到心不甘情不願放下iPhone乖乖上床睡覺，

不然就是說要上廁所，然後待好幾個小時不出來，玩這種走漏洞的遊戲。

有時候我都覺得因為iPhone多了一個兒子，少了一個老公，我自己也變成討人厭的老媽子。
 
iPhone讓我們距離越來越遠
外出上館子等待的時間我們不再聊天、看電影排隊買票的時候也不再交談，如果有話題也都圍繞在剛剛你在網路上看到的訊息，

如果沒有你覺得值得分享或是好笑的，就會自顧自的上網，忘了有個老婆還站在身邊。
 
你 都會在開車的時候因為我只顧著低頭玩手機不理你而生氣，所以應該能夠體會我每天晚上被冷落的心情。

一開始我還會撒嬌說iPhone破壞了我們的婚姻，誰知 你卻不以為意的繼續低頭點點點，到現在我生氣你也生氣，

你嫌我囉嗦一天到晚唸你，讓你好好的玩iPhone會怎樣，應該說我鐵口直斷嗎，

iPhone真的破壞了我們的婚姻！
 
iPhone讓心情不美麗
我不喜歡你的手機裡都是公司女生借手機拿去玩的自拍照、我不喜歡你隨時上網分享你的心情，

明明我就在你身邊、我不喜歡你為了打殭屍每天半夜2點才睡，隔天匆匆忙忙的起床連早餐都來不及一起吃、

我不喜歡明明就在公園散步卻是一手牽著我一手牽iPhone！
 
親愛的老公，我決定每天晚上消失幾個小時跟姊妹淘出門逛街，讓你跟蘋果們好好的約會，

看看你會不會發現老婆不見了，我不想成為那個一天到晚唸你的老媽子，所以我選擇沈默的抗議！
 
蘋果我討厭你！
希望你會發現老婆比iPhone重要，因為生病的時候是老婆在照顧你、肚子餓的時候是老婆煮飯給你吃、

每天上班穿的西裝是老婆幫你燙、中午的愛心便當是老婆準備、晚上睡覺冷的時候是老婆給你抱&hellip;

如果你的蘋果們會照顧你、會煮飯給你吃、會跟你撒嬌會給你愛的抱抱，那我就決定不打擾你們，

讓你們每天晚上好好的約 會，我也會跟姊妹淘們好好的逛街保養，當個對自己很好很好的老婆！
&nbsp;
&nbsp;


以上是往在網路上複製來的，來源不明。
&nbsp;]]></description>
      <content:encoded><![CDATA[<p><span style="color: red;">沈默的食指族</span><br />
自從iPhone上市之後，身邊的人個個成為蘋果一族，食指功力越來越強，每次聚會到一半，拿出手機拍完照，就開始各自低頭玩手機，<br />
<br />
急著把照片傳到 Facebook上與朋友分享，<br />
<br />
但有趣的是，朋友明明就在身邊，卻會面對面透過手機在Facebook上針對剛剛拍的照片留言，你一來我一往的樂此不疲。<br />
 <br />
前陣子老公說最近看到越來越多的畫面是在餐廳看到一桌的人各自對著手機發笑，但現場卻沈默的不得了，<br />
<br />
當時還跟老公說這些人真好笑，沒想到，現在一樣的場景卻活生生的在我們家上演中。<br />
 <br />
<span style="color: red;">iPhone偷走我老公</span><br />
<br />
老公每天回到家除了洗澡外，其餘都是蘋果時間。玩完iPhone玩iPad，聊天話題不離這個遊戲好好玩、那個軟體真方便&hellip;之類的，<br />
<br />
親愛的老公，到底有什麼 重要的訊息讓你網路不離身，吃飯不能好好吃、電視不能好好看、聊天不能好好聊，非得拿著iPhone點點點的，<br />
<br />
一開始因為新鮮所以我忍受，但幾個月過去了，怎麼你的蘋果熱潮卻一點都沒有退燒的樣子？<br />
 <br />
這幾個禮拜因為這件事不知道吵了幾次，每次都是講到心不甘情不願放下iPhone乖乖上床睡覺，<br />
<br />
不然就是說要上廁所，然後待好幾個小時不出來，玩這種走漏洞的遊戲。<br />
<br />
有時候我都覺得因為iPhone多了一個兒子，少了一個老公，我自己也變成討人厭的老媽子。<br />
 <br />
<span style="color: red;">iPhone讓我們距離越來越遠</span><br />
外出上館子等待的時間我們不再聊天、看電影排隊買票的時候也不再交談，如果有話題也都圍繞在剛剛你在網路上看到的訊息，<br />
<br />
如果沒有你覺得值得分享或是好笑的，就會自顧自的上網，忘了有個老婆還站在身邊。<br />
 <br />
你 都會在開車的時候因為我只顧著低頭玩手機不理你而生氣，所以應該能夠體會我每天晚上被冷落的心情。<br />
<br />
一開始我還會撒嬌說iPhone破壞了我們的婚姻，誰知 你卻不以為意的繼續低頭點點點，到現在我生氣你也生氣，<br />
<br />
你嫌我囉嗦一天到晚唸你，讓你好好的玩iPhone會怎樣，應該說我鐵口直斷嗎，<br />
<br />
iPhone真的破壞了我們的婚姻！<br />
 <br />
<span style="color: red;">iPhone讓心情不美麗</span><br />
我不喜歡你的手機裡都是公司女生借手機拿去玩的自拍照、我不喜歡你隨時上網分享你的心情，<br />
<br />
明明我就在你身邊、我不喜歡你為了打殭屍每天半夜2點才睡，隔天匆匆忙忙的起床連早餐都來不及一起吃、<br />
<br />
我不喜歡明明就在公園散步卻是一手牽著我一手牽iPhone！<br />
 <br />
親愛的老公，我決定每天晚上消失幾個小時跟姊妹淘出門逛街，讓你跟蘋果們好好的約會，<br />
<br />
看看你會不會發現老婆不見了，我不想成為那個一天到晚唸你的老媽子，所以我選擇沈默的抗議！<br />
 <br />
<span style="color: red;">蘋果我討厭你！</span><br />
希望你會發現老婆比iPhone重要，因為生病的時候是老婆在照顧你、肚子餓的時候是老婆煮飯給你吃、<br />
<br />
每天上班穿的西裝是老婆幫你燙、中午的愛心便當是老婆準備、晚上睡覺冷的時候是老婆給你抱&hellip;<br />
<br />
如果你的蘋果們會照顧你、會煮飯給你吃、會跟你撒嬌會給你愛的抱抱，那我就決定不打擾你們，<br />
<br />
讓你們每天晚上好好的約 會，我也會跟姊妹淘們好好的逛街保養，當個對自己很好很好的老婆！</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<hr />
<p>
以上是往在網路上複製來的，來源不明。</p>
<p>&nbsp;</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/28982297">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F28982297"></div>]]></content:encoded>
      <pubDate>Tue, 19 Apr 2011 09:35:00 +0800</pubDate>
      <category><![CDATA[雜七雜八]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/28982297#comments</comments>
    </item>
    <item>
      <title><![CDATA[[SSRS] Excel Worksheet Naming]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/26940637</link>
      <guid>http://weiyiao.pixnet.net/blog/post/26940637</guid>
      <description><![CDATA[在 SSRS 2008 R2 之前要讓報表匯出的 Excel 工作表名稱有一定命名方式是不可能的，在先前我曾寫過一個 VBScript 來改寫 Sheet Name 來達到一樣的效果，請參考 [VBScript] 變更 Excel 檔案中的 SheetName 以及 Link 網址 ，但現在 R2 之後不需要這麼辛苦了，可以在匯出的報表上自動就產生好名字了。
其方法很簡單，只要在你想要產生匯出命名的 tablix 上，找到 PageName 的屬性，如下圖，匯出後即可顯示想要的樣子了。

匯出結果如下：
 ]]></description>
      <content:encoded><![CDATA[<p>在 SSRS 2008 R2 之前要讓報表匯出的 Excel 工作表名稱有一定命名方式是不可能的，在先前我曾寫過一個 VBScript 來改寫 Sheet Name 來達到一樣的效果，請參考 <a href="http://weiyiao.pixnet.net/blog/post/25035137" target="_blank">[VBScript] 變更 Excel 檔案中的 SheetName 以及 Link 網址</a> ，但現在 R2 之後不需要這麼辛苦了，可以在匯出的報表上自動就產生好名字了。</p>
<p>其方法很簡單，只要在你想要產生匯出命名的 tablix 上，找到 <strong>PageName </strong>的屬性，如下圖，匯出後即可顯示想要的樣子了。</p>
<p><img src="http://blogs.msdn.com/blogfiles/robertbruckner/WindowsLiveWriter/ReportDesignNamingExcelWorksheets_12515/ExcelWorksheetNames_Fig5_4.png" alt="" width="345" height="91" /></p>
<p>匯出結果如下：</p>
<p><img title="renameexcel2.png" src="http://pic.pimg.tw/weiyiao/4aa600840c5ca.png" border="0" alt="renameexcel2.png" /> </p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/26940637">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F26940637"></div>]]></content:encoded>
      <pubDate>Fri, 27 Aug 2010 15:28:50 +0800</pubDate>
      <category><![CDATA[SSRS]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/26940637#comments</comments>
    </item>
    <item>
      <title><![CDATA[[SSRS] 變更 SSRS 訂閱的擁有者]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/26917537</link>
      <guid>http://weiyiao.pixnet.net/blog/post/26917537</guid>
      <description><![CDATA[當 Reporting Services 的訂閱擁有者離職或被 AD 刪除後，相關的訂閱會被失效而無法發送，除了用管理者身分去一個一個重新定義訂閱以外，簡單的方法是使用 SQL 語法，將舊的人員改成新的人員。
SQL 如下:
DECLARE @OldUserID uniqueidentifier
DECLARE @NewUserID uniqueidentifier
SELECT @OldUserID = UserID FROM dbo.Users WHERE UserName = 'DOMAINA\OldUser'
SELECT @NewUserID = UserID FROM dbo.Users WHERE UserName = 'DOMAINA\NewUser'
UPDATE dbo.Subscriptions SET OwnerID = @NewUserID WHERE OwnerID = @OldUserID

SQL 參考來源 : Tip: Change the Owner of SQL Reporting Services Subscription ]]></description>
      <content:encoded><![CDATA[<p>當 Reporting Services 的訂閱擁有者離職或被 AD 刪除後，相關的訂閱會被失效而無法發送，除了用管理者身分去一個一個重新定義訂閱以外，簡單的方法是使用 SQL 語法，將舊的人員改成新的人員。</p>
<p>SQL 如下:</p>
<pre class="brush: sql;">DECLARE @OldUserID uniqueidentifier
DECLARE @NewUserID uniqueidentifier
SELECT @OldUserID = UserID FROM dbo.Users WHERE UserName = 'DOMAINA\OldUser'
SELECT @NewUserID = UserID FROM dbo.Users WHERE UserName = 'DOMAINA\NewUser'
UPDATE dbo.Subscriptions SET OwnerID = @NewUserID WHERE OwnerID = @OldUserID
</pre>
<p>SQL 參考來源 : <a href="http://blogs.msdn.com/b/miah/archive/2008/07/10/tip-change-the-owner-of-report-server-subscription.aspx" target="_blank">Tip: Change the Owner of SQL Reporting Services Subscription</a> </p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/26917537">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F26917537"></div>]]></content:encoded>
      <pubDate>Tue, 24 Aug 2010 12:03:01 +0800</pubDate>
      <category><![CDATA[SSRS]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/26917537#comments</comments>
    </item>
    <item>
      <title><![CDATA[[PowerShell] 使用 PowerShell 大量修改檔名]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/26821284</link>
      <guid>http://weiyiao.pixnet.net/blog/post/26821284</guid>
      <description><![CDATA[以前如果要大量修改檔案的話不就是自己寫 bat 批次檔或者是script，懶得寫程式就是找大量修改檔名的軟體，這類的軟體太多了～
但是如果懶得找軟體，又只是簡單的修改檔名的話，可以使用 PowerShell 指令簡單修改。
假設我要修改附檔名為mp3 的檔案，把 "_" 改成 " " 只需下面指令即可。
&nbsp;
gci *.mp3 | % { rename-item $_ $_.Name.Replace("_", " ") }
]]></description>
      <content:encoded><![CDATA[<p>以前如果要大量修改檔案的話不就是自己寫 bat 批次檔或者是script，懶得寫程式就是找大量修改檔名的軟體，這類的軟體太多了～</p>
<p>但是如果懶得找軟體，又只是簡單的修改檔名的話，可以使用 PowerShell 指令簡單修改。</p>
<p>假設我要修改附檔名為mp3 的檔案，把 "_" 改成 " " 只需下面指令即可。</p>
<p>&nbsp;</p>
<pre class="brush: powershell;">gci *.mp3 | % { rename-item $_ $_.Name.Replace("_", " ") }
</pre>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/26821284">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F26821284"></div>]]></content:encoded>
      <pubDate>Wed, 11 Aug 2010 22:45:52 +0800</pubDate>
      <category><![CDATA[PowerShell]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/26821284#comments</comments>
    </item>
    <item>
      <title><![CDATA[[.NET 4.0] : Enum.HasFlag()]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/26530830</link>
      <guid>http://weiyiao.pixnet.net/blog/post/26530830</guid>
      <description><![CDATA[最近實作了一個列舉的 Flag 來處理權限的機制，也在無意之間發現了 .NET 4.0 多了一個 HasFlag 這個 Function ，這倒是節省了很多寫 code 的程式與判斷。
如下的權限身分： 
public enum SystemRoles
{
    None = 0,                       // 0000 0000 0000 0000  0x0000
    ReportUser = 1 &lt;&lt; 0,            // 0000 0000 0000 0001  0x0001
    WebUser = 1 &lt;&lt; 1,               // 0000 0000 0000 0010  0x0002
    
    ACCUser = 1 &lt;&lt; 6,               // 0000 0000 0100 0000  0x0040
    HRUser = 1 &lt;&lt; 7,                // 0000 0000 1000 0000  0x0080

    ReadyOnlyAdmin = 1 &lt;&lt; 8,        // 0000 0001 0000 0000  0x0100

    ACCAdmin = 1 &lt;&lt; 10,             // 0000 0100 0000 0000  0x0400
    HRAdmin = 1 &lt;&lt; 11,              // 0000 1000 0000 0000  0x0800
    
    SystemAdmin = 1 &lt;&lt; 14,          // 0100 0000 0000 0000  0x4000
    ITAdmin = 1 &lt;&lt; 15,              // 1000 0000 0000 0000  0x8000
}

如下面的情況，早期要得到 hasFlag1 的值，必須使用 hasFlag2 的方式，才能得到相同的結果，在程式的判讀上也比較吃力，現在使用 HasFlag() 的 Function 變得更簡單易懂了。
SystemRoles flagEnum = SystemRoles.WebUser | SystemRoles.HRUser | SystemRoles.ReportUser;
        
bool hasFlag1 = flagEnum.HasFlag(SystemRoles.WebUser);
bool hasFlag2 = ((flagEnum &amp; SystemRoles.WebUser) != 0) ? true : false;
]]></description>
      <content:encoded><![CDATA[<p>最近實作了一個列舉的 Flag 來處理權限的機制，也在無意之間發現了 .NET 4.0 多了一個 HasFlag 這個 Function ，這倒是節省了很多寫 code 的程式與判斷。</p>
<p>如下的權限身分： </p>
<pre class="brush: csharp;">public enum SystemRoles
{
    None = 0,                       // 0000 0000 0000 0000  0x0000
    ReportUser = 1 &lt;&lt; 0,            // 0000 0000 0000 0001  0x0001
    WebUser = 1 &lt;&lt; 1,               // 0000 0000 0000 0010  0x0002
    
    ACCUser = 1 &lt;&lt; 6,               // 0000 0000 0100 0000  0x0040
    HRUser = 1 &lt;&lt; 7,                // 0000 0000 1000 0000  0x0080

    ReadyOnlyAdmin = 1 &lt;&lt; 8,        // 0000 0001 0000 0000  0x0100

    ACCAdmin = 1 &lt;&lt; 10,             // 0000 0100 0000 0000  0x0400
    HRAdmin = 1 &lt;&lt; 11,              // 0000 1000 0000 0000  0x0800
    
    SystemAdmin = 1 &lt;&lt; 14,          // 0100 0000 0000 0000  0x4000
    ITAdmin = 1 &lt;&lt; 15,              // 1000 0000 0000 0000  0x8000
}
</pre>
<p>如下面的情況，早期要得到 hasFlag1 的值，必須使用 hasFlag2 的方式，才能得到相同的結果，在程式的判讀上也比較吃力，現在使用 HasFlag() 的 Function 變得更簡單易懂了。</p>
<pre class="brush: csharp;">SystemRoles flagEnum = SystemRoles.WebUser | SystemRoles.HRUser | SystemRoles.ReportUser;
        
bool hasFlag1 = flagEnum.HasFlag(SystemRoles.WebUser);
bool hasFlag2 = ((flagEnum &amp; SystemRoles.WebUser) != 0) ? true : false;
</pre>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/26530830">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F26530830"></div>]]></content:encoded>
      <pubDate>Mon, 05 Jul 2010 11:47:24 +0800</pubDate>
      <category><![CDATA[C#]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/26530830#comments</comments>
    </item>
    <item>
      <title><![CDATA[Microsoft Connectors Version 1.1 for Oracle and Teradata by Attunity]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/26005050</link>
      <guid>http://weiyiao.pixnet.net/blog/post/26005050</guid>
      <description><![CDATA[MS 在 3/24 發布了 1.1 的更新版了，更新的內容如下，我還沒測試過，有機會來升級一下看看。
Overview
Microsoft Connector Version 1.1 for Oracle by Attunity - The Oracle source and destination components are written to achieve optimal performance when loading data into Oracle or unloading data from Oracle in the context of Microsoft SSIS.Microsoft Connector Version 1.1 for Teradata by Attunity - The components are written to achieve optimal performance when loading data into Teradata or unloading data from Teradata in the context of Microsoft SSIS. Microsoft SSIS Connectors by Attunity Version 1.1 is a minor release. It includes performance enhancements, bug fixes, and continued improvements for ease of use. The following enhancements were made:

Performance Improvements for Oracle and Teradata Components

Optimize conversion functions in the Oracle and Teradata source and destination components.
A major performance enhancement for the Oracle destination component when set to work in fast-load mode. This was achieved by code optimization and removal of unnecessary overhead in the Oracle connector.




Additional Property Support for the Teradata Components

Added support for the following properties in the Teradata destination:&ndash; Robust: TPT Stream only&ndash; ArraySupport: TPT Stream only.&ndash; Buffers: TPT Stream only.&ndash; BufferSize: TPT Load only.&ndash; QueryBandSessionInfo&ndash; DetailedTracingLevel


Added support for the following properties in the Teradata Source:&ndash; BufferSize&ndash; QueryBandSessionInfo- DetailedTracingLevel




Support for TPT API Version 13 in the Teradata ComponentsSupport was added for TPT API version 13 Edition 2 (13.0.0.2). Version 12 APIs are still supported.


Enhanced Logging for the Teradata ComponentsThe DetailedTraceLevel property was added to the Teradata source and destination. This allows setting the TPT API tracing to different levels. Additional Property Support for the Teradata Components.


Query Banding is Supported by the Teradata ComponentsThe Teradata source and destination support query banding. This allows charge back, monitoring, and governance. This is set by the new QueryBandSessionInfo property. See Additional Property Support for the Teradata Components.


&nbsp;
有興趣的人可以在這裡下載 Microsoft Connectors Version 1.1 for Oracle and Teradata by Attunity]]></description>
      <content:encoded><![CDATA[<p>MS 在 3/24 發布了 1.1 的更新版了，更新的內容如下，我還沒測試過，有機會來升級一下看看。</p>
<h4>Overview</h4>
<div><a name="Description"></a><span><span><strong>Microsoft Connector Version 1.1 for Oracle by Attunity</strong> - The Oracle source and destination components are written to achieve optimal performance when loading data into Oracle or unloading data from Oracle in the context of Microsoft SSIS.<br /><br /><strong>Microsoft Connector Version 1.1 for Teradata by Attunity </strong>- The components are written to achieve optimal performance when loading data into Teradata or unloading data from Teradata in the context of Microsoft SSIS. <br /><br />Microsoft SSIS Connectors by Attunity Version 1.1 is a minor release. It includes performance enhancements, bug fixes, and continued improvements for ease of use. <br /><br />The following enhancements were made:</span></span>
<ul>
<li>Performance Improvements for Oracle and Teradata Components
<ul>
<li>Optimize conversion functions in the Oracle and Teradata source and destination components.</li>
<li>A major performance enhancement for the Oracle destination component when set to work in fast-load mode. This was achieved by code optimization and removal of unnecessary overhead in the Oracle connector.</li>
</ul>
</li>
</ul>
<ul>
<li>Additional Property Support for the Teradata Components
<ul>
<li>Added support for the following properties in the Teradata destination:<br />&ndash; Robust: TPT Stream only<br />&ndash; ArraySupport: TPT Stream only.<br />&ndash; Buffers: TPT Stream only.<br />&ndash; BufferSize: TPT Load only.<br />&ndash; QueryBandSessionInfo<br />&ndash; DetailedTracingLevel</li>
</ul>
<ul>
<li>Added support for the following properties in the Teradata Source:<br />&ndash; BufferSize<br />&ndash; QueryBandSessionInfo<br />- DetailedTracingLevel</li>
</ul>
</li>
</ul>
<ul>
<li>Support for TPT API Version 13 in the Teradata Components<br />Support was added for TPT API version 13 Edition 2 (13.0.0.2). Version 12 APIs are still supported.</li>
</ul>
<ul>
<li>Enhanced Logging for the Teradata Components<br />The DetailedTraceLevel property was added to the Teradata source and destination. This allows setting the TPT API tracing to different levels. Additional Property Support for the Teradata Components.</li>
</ul>
<ul>
<li>Query Banding is Supported by the Teradata Components<br />The Teradata source and destination support query banding. This allows charge back, monitoring, and governance. This is set by the new QueryBandSessionInfo property. See Additional Property Support for the Teradata Components.</li>
</ul>
</div>
<p>&nbsp;</p>
<p>有興趣的人可以在這裡下載 <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=6732934c-2eea-4a7f-85a8-8ba102e6b631" target="_blank">Microsoft Connectors Version 1.1 for Oracle and Teradata by Attunity</a><br /><br /></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/26005050">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F26005050"></div>]]></content:encoded>
      <pubDate>Wed, 31 Mar 2010 16:34:59 +0800</pubDate>
      <category><![CDATA[SSIS]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/26005050#comments</comments>
    </item>
    <item>
      <title><![CDATA[在 SSRS 中使用 NOT LIKE]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/26004426</link>
      <guid>http://weiyiao.pixnet.net/blog/post/26004426</guid>
      <description><![CDATA[在 SSRS 中，大家可以發現不管在哪裡的運算式都只有 Like 這個運算式，那 Not Like 又在哪裡呢?我又把依照 Like 的範例 =Fields!FirstName.Value Like "T*" 中的 Like 前面加個 Not 卻照成語法錯誤!! 那這樣看起來好像就沒有 Not Like 這個運算式可以使用了~ 以前遇到這樣的問題，其實都是在 SQL 中就使用 NOT LIKE 語法處理掉了，但是這次卻遇到所有的資料其實我都要的，只是在報表呈現中某一個 Group 要處理這樣的問題，因此無法再 SQL 中先處理資料了~ 最後的變通方式就是自己寫一段 CODE 來處理這樣的事情了~ 首先，先在整個報表的報表屬性中的程式碼，寫下自己定義的 NotLike 的程式  
Public Function NotLike(ByVal val As String, ByVal filter As String) As Boolean
	IF val.Contains(filter) Then
		Return False
	Else
		Return True
	End If
End Function

&nbsp;
這樣就可以在所有的運算式中使用 =code.NotLike(Fields!FirstName.Value, "T") 這樣的語法了，但是那要在 Group 中的篩選要怎麼使用呢，其實已是很簡單，在運算式中打上=code.NotLike(Fields!FirstName.Value, "T") ，運算子選擇 = ，值打上 =True，這樣就可以在 Group 中使用 NotLike 來過濾你的資料了。]]></description>
      <content:encoded><![CDATA[<p>在 SSRS 中，大家可以發現不管在哪裡的運算式都只有 Like 這個運算式，那 Not Like 又在哪裡呢?我又把依照 Like 的範例 =Fields!FirstName.Value Like "T*" 中的 Like 前面加個 Not 卻照成語法錯誤!! 那這樣看起來好像就沒有 Not Like 這個運算式可以使用了~ 以前遇到這樣的問題，其實都是在 SQL 中就使用 NOT LIKE 語法處理掉了，但是這次卻遇到所有的資料其實我都要的，只是在報表呈現中某一個 Group 要處理這樣的問題，因此無法再 SQL 中先處理資料了~ 最後的變通方式就是自己寫一段 CODE 來處理這樣的事情了~ 首先，先在整個報表的報表屬性中的程式碼，寫下自己定義的 NotLike 的程式  </p>
<pre class="brush:vb">Public Function NotLike(ByVal val As String, ByVal filter As String) As Boolean
	IF val.Contains(filter) Then
		Return False
	Else
		Return True
	End If
End Function
</pre>
<p>&nbsp;</p>
<p>這樣就可以在所有的運算式中使用 =code.NotLike(Fields!FirstName.Value, "T") 這樣的語法了，但是那要在 Group 中的篩選要怎麼使用呢，其實已是很簡單，在運算式中打上=code.NotLike(Fields!FirstName.Value, "T") ，運算子選擇 = ，值打上 =True，這樣就可以在 Group 中使用 NotLike 來過濾你的資料了。</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/26004426">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F26004426"></div>]]></content:encoded>
      <pubDate>Wed, 31 Mar 2010 11:43:16 +0800</pubDate>
      <category><![CDATA[SSRS]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/26004426#comments</comments>
    </item>
    <item>
      <title><![CDATA[Active Directory using C#]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/25746010</link>
      <guid>http://weiyiao.pixnet.net/blog/post/25746010</guid>
      <description><![CDATA[最近因為某些原因，公司將不再使用 Outlook 了，因為在 Outlook 上要查詢員工資訊變得困難重重了，另外，也因為公司的組織異動，全部都要建入 AD ，因此又要搞個 AD 通訊錄異動的自動化程式，又讓我重拾寫 AD 程式的能力。
由於這次的關係，在 .NET 3.5 中發現了 AD 的命名空間又多了兩個東西，一個是 System.DirectoryServices.AccountManagement ，另一個為 System.DirectoryServices.Protocols，Protocols 在此就暫時不提它了，因為我還沒用到。
由 MSDN 上的的解釋，System.DirectoryServices.AccountManagement 可跨多重主體存放區存取與管理安全性主體。存放區包括 Active Directory 網域服務 (AD DS)、Active Directory 輕量型目錄服務 (AD LDS) 與電腦 SAM (MSAM)。System.DirectoryServices.AccountManagement 可管理目錄物件，而不受 System.DirectoryServices 命名空間影響。 
因此就可以多多利用這個命名空間做很多使用者、群組、電腦的管理。省去之前使用 System.DirectoryServices 跟 Interop.ActiveDs.dll COM 元件的複雜工作。
&nbsp;
參考文件：

http://engblog.habaneros.com/2009/04/01/active-directory-account-management-made-easy/  
MSDN Library : System.DirectoryServices.AccountManagement 命名空間概觀  
MSDN Magazine : Managing Directory Security Principals in the .NET Framework 3.5  
Using System.DirectoryServices.AccountManagement  
Howto: (Almost) Everything In Active Directory via C#
]]></description>
      <content:encoded><![CDATA[<p>最近因為某些原因，公司將不再使用 Outlook 了，因為在 Outlook 上要查詢員工資訊變得困難重重了，另外，也因為公司的組織異動，全部都要建入 AD ，因此又要搞個 AD 通訊錄異動的自動化程式，又讓我重拾寫 AD 程式的能力。</p>
<p>由於這次的關係，在 .NET 3.5 中發現了 AD 的命名空間又多了兩個東西，一個是 System.DirectoryServices.AccountManagement ，另一個為 System.DirectoryServices.Protocols，Protocols 在此就暫時不提它了，因為我還沒用到。</p>
<p>由 MSDN 上的的解釋，<a href="http://msdn.microsoft.com/zh-tw/library/system.directoryservices.accountmanagement.aspx">System.DirectoryServices.AccountManagement</a> 可跨多重主體存放區存取與管理安全性主體。存放區包括 Active Directory 網域服務 (AD DS)、Active Directory 輕量型目錄服務 (AD LDS) 與電腦 SAM (MSAM)。<strong>System.DirectoryServices.AccountManagement</strong> 可管理目錄物件，而不受 <a href="http://msdn.microsoft.com/zh-tw/library/system.directoryservices.aspx">System.DirectoryServices</a> 命名空間影響。 </p>
<p>因此就可以多多利用這個命名空間做很多使用者、群組、電腦的管理。省去之前使用 System.DirectoryServices 跟 Interop.ActiveDs.dll COM 元件的複雜工作。</p>
<p>&nbsp;</p>
<p>參考文件：</p>
<ul>
<li><a href="http://engblog.habaneros.com/2009/04/01/active-directory-account-management-made-easy/">http://engblog.habaneros.com/2009/04/01/active-directory-account-management-made-easy/</a>  </li>
<li><a href="http://msdn.microsoft.com/zh-tw/library/bb384379.aspx">MSDN Library : System.DirectoryServices.AccountManagement 命名空間概觀</a>  </li>
<li><a href="http://msdn.microsoft.com/en-us/magazine/cc135979.aspx" target="_blank">MSDN Magazine : Managing Directory Security Principals in the .NET Framework 3.5</a>  </li>
<li><a href="http://www.codeproject.com/KB/system/usingAccountManagement.aspx" target="_blank">Using System.DirectoryServices.AccountManagement</a>  </li>
<li><a href="http://www.codeproject.com/KB/system/everythingInAD.aspx">Howto: (Almost) Everything In Active Directory via C#</a></li>
</ul>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/25746010">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F25746010"></div>]]></content:encoded>
      <pubDate>Wed, 03 Feb 2010 14:54:17 +0800</pubDate>
      <category><![CDATA[Active Directory]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/25746010#comments</comments>
    </item>
    <item>
      <title><![CDATA[SharePoint 2010 認證]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/25628307</link>
      <guid>http://weiyiao.pixnet.net/blog/post/25628307</guid>
      <description><![CDATA[SharePoint 2010 系統越來越大，認證的分類也變多了，看來又要一翻的努力才能拿到全部的認證...
新的認證應該會於六月上路...詳情參考https://partner.microsoft.com/global/40121316
&nbsp;
以下為新的認證:
Certification Path for IT professionals







70-667 TS: Microsoft SharePoint 2010, ConfiguringMicrosoft
Official Curriculum: Will cover configuration of SharePoint 2010
including deployment, upgrade, management, and operation on a server
farm. 


70-668 PRO: SharePoint 2010, AdministratorMicrosoft
Official Curriculum: Will cover advanced SharePoint 2010 topics
including capacity planning, topology designing, and performance
tuning. 







Certification Path for Developers







70-573 TS: Microsoft SharePoint 2010, Application DevelopmentMicrosoft
Official Curriculum: Five-day instructor-led course designed for
developers with six months or more of .NET development experience.
Course covers what you need to know to be an effective member of a
SharePoint development team using Visual Studio 2010. 


70-576 PRO: Designing and Developing Microsoft SharePoint 2010 ApplicationsMicrosoft
Official Curriculum: Five-day instructor-led training course designed
for development team leads who have already passed the Developing on
SharePoint 2010 technical specialist exam. The course covers choosing
technologies for and scoping a SharePoint project, best practices for
SharePoint development, configuring a SharePoint development
environment, advanced use of SharePoint developer features, and
debugging of code in a SharePoint project. 






]]></description>
      <content:encoded><![CDATA[<p>SharePoint 2010 系統越來越大，認證的分類也變多了，看來又要一翻的努力才能拿到全部的認證...</p>
<p>新的認證應該會於六月上路...詳情參考<a href="https://partner.microsoft.com/global/40121316" target="_blank">https://partner.microsoft.com/global/40121316</a></p>
<p>&nbsp;</p>
<p>以下為新的認證:</p>
<div id="rrdiv53">Certification Path for IT professionals</div>
<table id="rrtable35" style="table-layout: fixed;" border="0">
<tbody>
<tr id="rrtr68">
<td id="rrtd120">
<div id="rrdiv54">
<ul id="rrul3" style="overflow: visible; word-wrap: break-word;">
<li id="rrli11" style="padding-top: 6px;">
<div id="rrdiv55"><strong>70-667 TS: Microsoft SharePoint 2010, Configuring</strong><br />Microsoft
Official Curriculum: Will cover configuration of SharePoint 2010
including deployment, upgrade, management, and operation on a server
farm. </div>
</li>
<li id="rrli12" style="padding-top: 6px;">
<div id="rrdiv56"><strong>70-668 PRO: SharePoint 2010, Administrator</strong><br />Microsoft
Official Curriculum: Will cover advanced SharePoint 2010 topics
including capacity planning, topology designing, and performance
tuning. </div>
</li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
<div id="rrdiv68">Certification Path for Developers</div>
<table id="rrtable42" style="table-layout: fixed;" border="0">
<tbody>
<tr id="rrtr75">
<td id="rrtd130">
<div id="rrdiv69">
<ul id="rrul4" style="overflow: visible; word-wrap: break-word;">
<li id="rrli13" style="padding-top: 6px;">
<div id="rrdiv70"><strong>70-573 TS: Microsoft SharePoint 2010, Application Development</strong><br />Microsoft
Official Curriculum: Five-day instructor-led course designed for
developers with six months or more of .NET development experience.
Course covers what you need to know to be an effective member of a
SharePoint development team using Visual Studio 2010. </div>
</li>
<li id="rrli14" style="padding-top: 6px;">
<div id="rrdiv71"><strong>70-576 PRO: Designing and Developing Microsoft SharePoint 2010 Applications</strong><br />Microsoft
Official Curriculum: Five-day instructor-led training course designed
for development team leads who have already passed the Developing on
SharePoint 2010 technical specialist exam. The course covers choosing
technologies for and scoping a SharePoint project, best practices for
SharePoint development, configuring a SharePoint development
environment, advanced use of SharePoint developer features, and
debugging of code in a SharePoint project. </div>
</li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/25628307">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F25628307"></div>]]></content:encoded>
      <pubDate>Fri, 08 Jan 2010 09:43:41 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/25628307#comments</comments>
    </item>
    <item>
      <title><![CDATA[Windows 7 新快速鍵]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/25406699</link>
      <guid>http://weiyiao.pixnet.net/blog/post/25406699</guid>
      <description><![CDATA[視窗控制快速鍵

Win+Home： 將所有使用中視窗以外的視窗最小化（和搖動使用中視窗一樣意思）
Win+Space：將所有桌面上的視窗透明化（和滑鼠移到工作列的最右下角一樣意思）
Win+上方向鍵：最大化使用中視窗（和將視窗用滑鼠拖到螢幕上緣一樣意思）
Shift+Win+上方向鍵：垂直最大化使用中視窗（但水平寬度不變）
Win+下方向鍵：最小化視窗／還原先前最大化的使用中視窗
Win+左／右方向鍵：將視窗靠到螢幕的左右兩側（和將視窗用滑鼠拖到左右邊緣一樣意思）
Shift+Win+左／右方向鍵：將視窗移到左、右螢幕（如果你有接雙螢幕的話）

工作列快速列

Win+1~9：開啟工作列上相對應的軟體，從左到右依順序為 Win+1 到 Win+9
Shift+Win+1~9：開啟對應位置軟體的一個新「分身」，例如 firefox 的話會是開新視窗（滑鼠是Shift+點軟體）
Ctrl+Win+1~9：在對應位置軟體已開的分身中切換。
Alt+Win+1~9：開啟對應位置軟體的右鍵選單。
Win+T：工作列的 Alt+Tab

Ctrl+Shift+滑鼠點軟體：以管理員權限開啟該軟體

檔案總管

Ctrl+Shift+N：開新資料夾
Alt+上方向鍵：到上一層資料夾
Alt+P：預覽面版的開關
Shift+右鍵點選檔案：出現「釘選到開始功能表」和「複製為路徑」兩個額外的右鍵選項
Shift+右鍵點選資料夾：出現「在新處理程序開啟（另開新視窗）」、「在此處開啟命令視窗（DOS!）」和「複製為路徑」三個額外的右鍵選項

還有，可以在檔案總管裡按 Alt 叫出傳統的選單。我的資料夾選項回來了！ &gt;_&lt;

其他

Win+P：投影機輸出設定（僅螢幕、同步顯示、延伸、僅投影機）
Win+ (+/-)：放大、縮小
Win+G：在螢幕上的 Gadget 間切換]]></description>
      <content:encoded><![CDATA[<p>視窗控制快速鍵<br />
<br />
Win+Home： 將所有使用中視窗以外的視窗最小化（和搖動使用中視窗一樣意思）<br />
Win+Space：將所有桌面上的視窗透明化（和滑鼠移到工作列的最右下角一樣意思）<br />
Win+上方向鍵：最大化使用中視窗（和將視窗用滑鼠拖到螢幕上緣一樣意思）<br />
Shift+Win+上方向鍵：垂直最大化使用中視窗（但水平寬度不變）<br />
Win+下方向鍵：最小化視窗／還原先前最大化的使用中視窗<br />
Win+左／右方向鍵：將視窗靠到螢幕的左右兩側（和將視窗用滑鼠拖到左右邊緣一樣意思）<br />
Shift+Win+左／右方向鍵：將視窗移到左、右螢幕（如果你有接雙螢幕的話）<br />
<br />
工作列快速列<br />
<br />
Win+1~9：開啟工作列上相對應的軟體，從左到右依順序為 Win+1 到 Win+9<br />
Shift+Win+1~9：開啟對應位置軟體的一個新「分身」，例如 firefox 的話會是開新視窗（滑鼠是Shift+點軟體）<br />
Ctrl+Win+1~9：在對應位置軟體已開的分身中切換。<br />
Alt+Win+1~9：開啟對應位置軟體的右鍵選單。<br />
Win+T：工作列的 Alt+Tab<br />
<br />
Ctrl+Shift+滑鼠點軟體：以管理員權限開啟該軟體<br />
<br />
檔案總管<br />
<br />
Ctrl+Shift+N：開新資料夾<br />
Alt+上方向鍵：到上一層資料夾<br />
Alt+P：預覽面版的開關<br />
Shift+右鍵點選檔案：出現「釘選到開始功能表」和「複製為路徑」兩個額外的右鍵選項<br />
Shift+右鍵點選資料夾：出現「在新處理程序開啟（另開新視窗）」、「在此處開啟命令視窗（DOS!）」和「複製為路徑」三個額外的右鍵選項<br />
<br />
還有，可以在檔案總管裡按 Alt 叫出傳統的選單。我的資料夾選項回來了！ &gt;_&lt;<br />
<br />
其他<br />
<br />
Win+P：投影機輸出設定（僅螢幕、同步顯示、延伸、僅投影機）<br />
Win+ (+/-)：放大、縮小<br />
Win+G：在螢幕上的 Gadget 間切換</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/25406699">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F25406699"></div>]]></content:encoded>
      <pubDate>Sat, 21 Nov 2009 21:12:13 +0800</pubDate>
      <category><![CDATA[Windows 7]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/25406699#comments</comments>
    </item>
    <item>
      <title><![CDATA[在 64-bit 環境下使用 Oracle Client 執行 SQL Server Integration Services]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/25355173</link>
      <guid>http://weiyiao.pixnet.net/blog/post/25355173</guid>
      <description><![CDATA[近期將 SQL Server 2008 環境升級至 64-bit 後，發現許多相關的問題，由於主要的 SSIS 的 ETL 都是跟 oracle 有關，因此遇到相當多的怪問題...尤其是 SSIS 需要使用 32-bit 模式執行時就會遇到一些怪問題。
我的環境如下:
OS: Windows 2008 R2 Standard CHT (R2 only 64-bit)
SQL: Microsoft SQL Server 2008 Enterprise
&nbsp;對於 Oracle Client 建議安裝 11.1.0.7.0 以上的版本，如果安裝 10.2.0.1 版本需要再安裝兩個 Oracle patch (# 4547817 &amp; # 5383042) ，如果沒有上 path 會遇到 ORA-12154: TNS: 無法解析指定的連線 ID 的問題，相關訊息可以參考 http://portal.sqltrainer.com/2007/11/sql-server-integration-services-oracle.html，另外，安裝 11g Client 我安裝了 64-bit 跟 32-bit，原因為我的 SQL 還有執行 SSRS，需要用到 64-bit 的 Client 。
如果在 BIDS 的環境上開發 SSIS 的話，也請把專案的屬性 64bitruntime 設定為 False，如果沒有設定可能會有某些元件無法使用，我遇到的 Excel 連結器就無法在 64-bit 上執行。
SSIS 發佈上 Server 後，建立 Job 執行時，需要把步驟的屬性中，執行選項裡的使用 32 位元執行階段勾選起來，這樣才不會發生問題。
&nbsp;其他相關問題也可參考 MSN 論壇文章 : http://social.msdn.microsoft.com/Forums/zh-TW/240/thread/a4fb022b-a9cf-40dc-b871-28e226b989cc
&nbsp;]]></description>
      <content:encoded><![CDATA[<p>近期將 SQL Server 2008 環境升級至 64-bit 後，發現許多相關的問題，由於主要的 SSIS 的 ETL 都是跟 oracle 有關，因此遇到相當多的怪問題...尤其是 SSIS 需要使用 32-bit 模式執行時就會遇到一些怪問題。</p>
<p>我的環境如下:</p>
<p style="PADDING-LEFT: 30px">OS: Windows 2008 R2 Standard CHT (R2 only 64-bit)</p>
<p style="PADDING-LEFT: 30px">SQL: Microsoft SQL Server 2008 Enterprise</p>
<p>&nbsp;對於 Oracle Client 建議安裝 11.1.0.7.0 以上的版本，如果安裝 10.2.0.1 版本需要再安裝兩個 Oracle patch (# 4547817 &amp; # 5383042) ，如果沒有上 path 會遇到 <strong><span style="color: #993300;">ORA-12154: TNS: 無法解析指定的連線 ID</span></strong> 的問題，相關訊息可以參考 <a href="http://portal.sqltrainer.com/2007/11/sql-server-integration-services-oracle.html">http://portal.sqltrainer.com/2007/11/sql-server-integration-services-oracle.html</a>，另外，安裝 11g Client 我安裝了 64-bit 跟 32-bit，原因為我的 SQL 還有執行 SSRS，需要用到 64-bit 的 Client 。</p>
<p>如果在 BIDS 的環境上開發 SSIS 的話，也請把專案的屬性 <strong><span style="color: #993300;">64bitruntime</span></strong> 設定為 <strong><span style="color: #993300;">False</span></strong>，如果沒有設定可能會有某些元件無法使用，我遇到的 Excel 連結器就無法在 64-bit 上執行。</p>
<p>SSIS 發佈上 Server 後，建立 Job 執行時，需要把步驟的屬性中，<strong><span style="color: #993300;">執行選項</span></strong>裡的<strong><span style="color: #993300;">使用 32 位元執行階段</span></strong>勾選起來，這樣才不會發生問題。</p>
<p>&nbsp;其他相關問題也可參考 MSN 論壇文章 : <a href="http://social.msdn.microsoft.com/Forums/zh-TW/240/thread/a4fb022b-a9cf-40dc-b871-28e226b989cc">http://social.msdn.microsoft.com/Forums/zh-TW/240/thread/a4fb022b-a9cf-40dc-b871-28e226b989cc</a></p>
<p>&nbsp;</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/25355173">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F25355173"></div>]]></content:encoded>
      <pubDate>Wed, 11 Nov 2009 10:45:10 +0800</pubDate>
      <category><![CDATA[SSIS]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/25355173#comments</comments>
    </item>
    <item>
      <title><![CDATA[[VBScript] 變更 Excel 檔案中的 SheetName 以及 Link 網址]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/25035137</link>
      <guid>http://weiyiao.pixnet.net/blog/post/25035137</guid>
      <description><![CDATA[最近因為手上的案子需要使用 SQL Server Reporting Service 產生大量的報表，但其中有個報表需要產出所有的資料並且分單位來分頁，再匯出成 Excel 檔案，但是再匯出 Excel 檔案後，Excel 檔案裡面的 Sheet Name 不就是 "工作表1"、"工作表2"、"工作表3" 就是 "Sheet1"、"Sheet2"、"Sheet3"來表示，如果再報表中有設定導覽資訊列的話又會在多一個 "文件引導模式" 的頁籤。
但 User 卻是希望匯出後的 Excel Sheet Name 可以根據單位來標示 Sheet Name，由於詢問過 MS 後，無法在 SSRS 中產生這樣的檔案，因此只好退而求其次，建立一個 Script 檔案，來讓 User 自行自動修改要變更的 Excel 檔案。]]></description>
      <content:encoded><![CDATA[<p>最近因為手上的案子需要使用 SQL Server Reporting Service 產生大量的報表，但其中有個報表需要產出所有的資料並且分單位來分頁，再匯出成 Excel 檔案，但是再匯出 Excel 檔案後，Excel 檔案裡面的 Sheet Name 不就是 "工作表1"、"工作表2"、"工作表3" 就是 "Sheet1"、"Sheet2"、"Sheet3"來表示，如果再報表中有設定導覽資訊列的話又會在多一個 "文件引導模式" 的頁籤。</p>
<p>但 User 卻是希望匯出後的 Excel Sheet Name 可以根據單位來標示 Sheet Name，由於詢問過 MS 後，無法在 SSRS 中產生這樣的檔案，因此只好退而求其次，建立一個 Script 檔案，來讓 User 自行自動修改要變更的 Excel 檔案。  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/25035137">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F25035137"></div>]]></content:encoded>
      <pubDate>Tue, 08 Sep 2009 14:39:04 +0800</pubDate>
      <category><![CDATA[VBSCRIPT]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/25035137#comments</comments>
    </item>
    <item>
      <title><![CDATA[Microsoft SharePoint Administration Toolkit 4.0 發佈了]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24987961</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24987961</guid>
      <description><![CDATA[微軟這個 MOSS 2007 / WSS 3.0 的工具包 4.0 版出來了，由官網上說到這也將是最後一個版本，接下來就是針對 MOSS 2010 版本推出 Toolkit 了。
4.0 版提供了下面幾個功能：
1. SharePoint Diagnostics Tool improvements
2. the Permissions
Reporting Tool
3. the Quota Management command
4. Security
Configuration Wizard Manifests
如有興趣的人可以到官方網站檢視詳細資訊：Announcing the Fourth Release of the Microsoft SharePoint Administration Toolkit
更多的詳細資訊請參考 TechNet 上的文件： 

SharePoint Administration Toolkit (Office SharePoint Server)&nbsp;&nbsp;&nbsp; (http://technet.microsoft.com/library/cc508851.aspx) 
SharePoint Administration Toolkit (Windows SharePoint Services)&nbsp;&nbsp; (http://technet.microsoft.com/en-us/library/cc508986.aspx) 

SharePoint Administration Toolkit v4.0 的下載連結：
x64: http://www.microsoft.com/downloads/details.aspx?FamilyID=665e98ea-5318-486d-aba2-2bfe46254357&nbsp;&nbsp; (http://go.microsoft.com/fwlink/?LinkID=142035)
x86: http://www.microsoft.com/downloads/details.aspx?FamilyID=cd2d09a7-1159-4d40-be1c-8efab1345381&nbsp;&nbsp; (http://go.microsoft.com/fwlink/?LinkId=141504)]]></description>
      <content:encoded><![CDATA[<p>微軟這個 MOSS 2007 / WSS 3.0 的工具包 4.0 版出來了，由官網上說到這也將是最後一個版本，接下來就是針對 MOSS 2010 版本推出 Toolkit 了。</p>
<p>4.0 版提供了下面幾個功能：</p>
<p>1. SharePoint Diagnostics Tool improvements</p>
<p>2. the Permissions
Reporting Tool</p>
<p>3. the Quota Management command</p>
<p>4. Security
Configuration Wizard Manifests</p>
<p>如有興趣的人可以到官方網站檢視詳細資訊：<a href="http://blogs.msdn.com/sharepoint/archive/2009/08/27/announcing-the-fourth-release-of-the-microsoft-sharepoint-administration-toolkit.aspx" target="_blank">Announcing the Fourth Release of the Microsoft SharePoint Administration Toolkit</a></p>
<p>更多的詳細資訊請參考 TechNet 上的文件： </p>
<ul>
<li><a href="http://technet.microsoft.com/library/cc508851.aspx">SharePoint Administration Toolkit (Office SharePoint Server)</a>&nbsp;&nbsp;&nbsp; (<a href="http://technet.microsoft.com/library/cc508851.aspx">http://technet.microsoft.com/library/cc508851.aspx</a>) </li>
<li><a href="http://technet.microsoft.com/en-us/library/cc508986.aspx">SharePoint Administration Toolkit (Windows SharePoint Services)</a>&nbsp;&nbsp; (<a href="http://technet.microsoft.com/en-us/library/cc508986.aspx">http://technet.microsoft.com/en-us/library/cc508986.aspx</a>) </li>
</ul>
<p>SharePoint Administration Toolkit v4.0 的下載連結：</p>
<p>x64: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=665e98ea-5318-486d-aba2-2bfe46254357">http://www.microsoft.com/downloads/details.aspx?FamilyID=665e98ea-5318-486d-aba2-2bfe46254357</a>&nbsp;&nbsp; (<a href="http://go.microsoft.com/fwlink/?LinkID=142035">http://go.microsoft.com/fwlink/?LinkID=142035</a>)</p>
<p>x86: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=cd2d09a7-1159-4d40-be1c-8efab1345381">http://www.microsoft.com/downloads/details.aspx?FamilyID=cd2d09a7-1159-4d40-be1c-8efab1345381</a>&nbsp;&nbsp; (<a href="http://go.microsoft.com/fwlink/?LinkId=141504">http://go.microsoft.com/fwlink/?LinkId=141504</a>)</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24987961">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24987961"></div>]]></content:encoded>
      <pubDate>Mon, 31 Aug 2009 15:40:25 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24987961#comments</comments>
    </item>
    <item>
      <title><![CDATA[一個有趣的介紹 MOSS 短片]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24987804</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24987804</guid>
      <description><![CDATA[這影片也不是很新了，但是每次看到都覺得做的真好，好可愛...
分享給大家看看....
&nbsp;

SharePoint in Plain English]]></description>
      <content:encoded><![CDATA[<p>這影片也不是很新了，但是每次看到都覺得做的真好，好可愛...</p>
<p>分享給大家看看....</p>
<p>&nbsp;</p>
<p>
<iframe src="http://www.microsoft.com/video/en/us/player/embed/76e8d3af-c2bd-42a6-bb12-befcbd041bf1" width="430" height="326" scrolling="no" frameborder="0" allowtransparency="true"></iframe><br /><a href="http://www.microsoft.com/video/en/us/details/76e8d3af-c2bd-42a6-bb12-befcbd041bf1?vp_evt=eref&amp;vp_video=SharePoint+in+Plain+English">SharePoint in Plain English</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24987804">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24987804"></div>]]></content:encoded>
      <pubDate>Mon, 31 Aug 2009 15:08:36 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24987804#comments</comments>
    </item>
    <item>
      <title><![CDATA[如何快速變更 MOSS 2007 的 Service Account & Password]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24926625</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24926625</guid>
      <description><![CDATA[MS 有發表一篇 KB 說明如何變更 MOSS &amp; WSS 的 Service Account and Password，可以參考 KB934838:How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0 裡面有段 Script，覺得滿好用的..以後要變更服務帳號密碼...就可以不用改的要死要活了..還要想說那個服務沒有改到...
請將下面 Script 存檔後，執行參數為 FileName.bat DomainName\UserName NewPassword
&nbsp;
 @echo off
rem other app pools
echo *** Updating app pool passwords
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o updateaccountpassword -userlogin %1 -password %2 -noadmin
rem central admin
echo *** Updating Central Admin password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o updatefarmcredentials -userlogin %1 -password %2
rem ssp - new
echo *** Updating ssp password for new installs
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o editssp -title "SharedServices1" -ssplogin %1 -ssppassword %2
rem ssp - upgrade
echo *** Updating ssp password for upgraded installs
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o editssp -title "Default Web Site" -ssplogin %1 -ssppassword %2
rem osearch
echo *** Updating osearch password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o osearch -farmserviceaccount %1 -farmservicepassword %2
echo *** MANUAL UPDATE NEEDED. To update the password, visit the SSP Web application page, click Search Settings, and then click Default Content Access Account. 
rem spsearch
echo *** Updating spsearch password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o spsearch -farmserviceaccount %1 -farmservicepassword %2
echo *** Updating spsearch content access account
"%commonprogramfiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o spsearch -farmcontentaccessaccount %1 -farmcontentaccesspassword %2
rem restarting IIS
echo *** Doing soft restart of IIS
iisreset /noforce
echo on
]]></description>
      <content:encoded><![CDATA[<p>MS 有發表一篇 KB 說明如何變更 MOSS &amp; WSS 的 Service Account and Password，可以參考 <a href="http://support.microsoft.com/kb/934838" target="_blank">KB934838:How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0</a> 裡面有段 Script，覺得滿好用的..以後要變更服務帳號密碼...就可以不用改的要死要活了..還要想說那個服務沒有改到...</p>
<p>請將下面 Script 存檔後，執行參數為 <var>FileName</var>.bat <var>DomainName</var>\<var>UserName NewPassword</var></p>
<p>&nbsp;</p>
<pre class="brush:text"> @echo off
rem other app pools
echo *** Updating app pool passwords
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o updateaccountpassword -userlogin %1 -password %2 -noadmin
rem central admin
echo *** Updating Central Admin password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o updatefarmcredentials -userlogin %1 -password %2
rem ssp - new
echo *** Updating ssp password for new installs
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o editssp -title "SharedServices1" -ssplogin %1 -ssppassword %2
rem ssp - upgrade
echo *** Updating ssp password for upgraded installs
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o editssp -title "Default Web Site" -ssplogin %1 -ssppassword %2
rem osearch
echo *** Updating osearch password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o osearch -farmserviceaccount %1 -farmservicepassword %2
echo *** MANUAL UPDATE NEEDED. To update the password, visit the SSP Web application page, click Search Settings, and then click Default Content Access Account. 
rem spsearch
echo *** Updating spsearch password
"%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o spsearch -farmserviceaccount %1 -farmservicepassword %2
echo *** Updating spsearch content access account
"%commonprogramfiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o spsearch -farmcontentaccessaccount %1 -farmcontentaccesspassword %2
rem restarting IIS
echo *** Doing soft restart of IIS
iisreset /noforce
echo on
</pre>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24926625">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24926625"></div>]]></content:encoded>
      <pubDate>Thu, 20 Aug 2009 14:13:02 +0800</pubDate>
      <category><![CDATA[未分類]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24926625#comments</comments>
    </item>
    <item>
      <title><![CDATA[停用 DisableLoopbackCheck]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24926520</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24926520</guid>
      <description><![CDATA[這問題不只是發生在 MOSS 上面，在其他的 IIS web 上也有可能會遇到這樣的問題，在 MOSS 上比較容易出現於 MOSS Search 上，檢視事件檢視器時可以發現有 ID 2436 的存取被拒的訊息，這問題發生於 Windows server 2003 SP1 之後的版本，想要了解可以檢視此 KB 文件 KB 896861，要解決這樣的問題最快的方式即是停用 DisableLoopbackCheck。
下面的方法都是，最快就是第二個方法。
Method 1: Specify host names


                loadTOCNode(2, 'workaround');
            
Note We recommend that you use this method.To specify the host 
names that are mapped to the loopback address and can connect to Web sites on 
your computer, follow these steps:


Click Start, click Run, type regedit, and then 
click OK.

In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0

Right-click MSV1_0, point to New, and then click Multi-String 
Value.

Type BackConnectionHostNames, and then press 
ENTER.

Right-click BackConnectionHostNames, and then 
click Modify.

In the Value data box, type the host name or 
the host names for the sites that are on the local computer, and then click 
OK.

Quit Registry Editor, and then restart the IISAdmin service.

Method 2: Disable the loopback check 


                loadTOCNode(2, 'workaround');
            
Follow these steps:


Click Start, click Run, type regedit, and then 
click OK.

In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

Right-click Lsa, point to New, and then click DWORD 
Value.

Type DisableLoopbackCheck, and then press 
ENTER.

Right-click DisableLoopbackCheck, and then 
click Modify.

In the Value data box, type 1, and then click OK.

Quit Registry Editor, and then restart your computer.
]]></description>
      <content:encoded><![CDATA[<p>這問題不只是發生在 MOSS 上面，在其他的 IIS web 上也有可能會遇到這樣的問題，在 MOSS 上比較容易出現於 MOSS Search 上，檢視事件檢視器時可以發現有 ID 2436 的存取被拒的訊息，這問題發生於 Windows server 2003 SP1 之後的版本，想要了解可以檢視此 KB 文件 <a href="http://support.microsoft.com/kb/896861" target="_blank">KB 896861</a>，要解決這樣的問題最快的方式即是停用 DisableLoopbackCheck。</p>
<p>下面的方法都是，最快就是第二個方法。</p>
<h3 id="tocHeadRef">Method 1: Specify host names</h3>
<p>
<script type="text/javascript">
                loadTOCNode(2, 'workaround');
            </script>
<strong>Note</strong> We recommend that you use this method.<br /><br />To specify the host 
names that are mapped to the loopback address and can connect to Web sites on 
your computer, follow these steps:
</p>
<ol>
<li>Click <strong class="uiterm">Start</strong>, click <strong class="uiterm">Run</strong>, type <span class="userInput">regedit</span>, and then 
click <strong class="uiterm">OK</strong>.
</li>
<li>In Registry Editor, locate and then click the following registry key:
<div class="indent"><strong class="uiterm">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0</strong></div>
</li>
<li>Right-click <strong class="uiterm">MSV1_0</strong>, point to <strong class="uiterm">New</strong>, and then click <strong class="uiterm">Multi-String 
Value</strong>.
</li>
<li>Type <span class="userInput">BackConnectionHostNames</span>, and then press 
ENTER.
</li>
<li>Right-click <strong class="uiterm">BackConnectionHostNames</strong>, and then 
click <strong class="uiterm">Modify</strong>.
</li>
<li>In the <strong class="uiterm">Value data</strong> box, type the host name or 
the host names for the sites that are on the local computer, and then click 
<strong class="uiterm">OK</strong>.
</li>
<li>Quit Registry Editor, and then restart the IISAdmin service.</li>
</ol>
<h3 id="tocHeadRef">Method 2: Disable the loopback check </h3>
<p>
<script type="text/javascript">
                loadTOCNode(2, 'workaround');
            </script>
Follow these steps:
</p>
<ol>
<li>Click <strong class="uiterm">Start</strong>, click <strong class="uiterm">Run</strong>, type <span class="userInput">regedit</span>, and then 
click <strong class="uiterm">OK</strong>.
</li>
<li>In Registry Editor, locate and then click the following registry key:
<div class="indent"><strong class="uiterm">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa</strong></div>
</li>
<li>Right-click <strong class="uiterm">Lsa</strong>, point to <strong class="uiterm">New</strong>, and then click <strong class="uiterm">DWORD 
Value</strong>.
</li>
<li>Type <span class="userInput">DisableLoopbackCheck</span>, and then press 
ENTER.
</li>
<li>Right-click <strong class="uiterm">DisableLoopbackCheck</strong>, and then 
click <strong class="uiterm">Modify</strong>.
</li>
<li>In the <strong class="uiterm">Value data</strong> box, type <span class="userInput">1</span>, and then click <strong class="uiterm">OK</strong>.
</li>
<li>Quit Registry Editor, and then restart your computer.</li>
</ol>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24926520">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24926520"></div>]]></content:encoded>
      <pubDate>Thu, 20 Aug 2009 13:37:58 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24926520#comments</comments>
    </item>
    <item>
      <title><![CDATA[使用 SharePoint 搜尋 Lotus Notes]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24837471</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24837471</guid>
      <description><![CDATA[最近 Enterprise Search 好像打的很火熱，也不知道為什麼 MS 最近針對此主題發起了研討會，其實主要還是在推 MOSS 2007 的搜尋，其實為什麼 MS 要開始推的原因，我想應該是他推出了 Search Server 2008 ，以及 MOSS 2007 SP2 的關係。 Search Server 2008 其實就是 MOSS 2007 SP2 中的 Search 的獨立產品。但在此不多說者兩者的不同，有興趣的人自行上網比較一下吧。
&nbsp;
在 MOSS 2007 SP2 發表之前就已經在研究 Search 這個部分，其中，針對 Lotus Notes 的搜尋也著手進行設定，但是不知道為什麼一直設定不起來，其實我遇到的問題，說實在的還真是愚蠢的問題，只是因為我完全不懂 Lotus Notes Client 的設定而已。真是笨ㄚ～～～
&nbsp;
言歸正傳，真正的設定方式，我想我不用再重複一次的告訴大家，因為 Microsoft TechNet 上面有教學，如果英文版的看不懂也沒關係，因為已經有中文版的翻譯，其網址為

設定 Office SharePoint Server 搜尋以編目 Lotus Notes (Office SharePoint Server 2007)
準備編目 Lotus Notes (Office SharePoint Server 2007)
Lotus Notes 設定的疑難排解 (Office SharePoint Server 2007)
常見問題集：編目 Lotus Notes (Office SharePoint Server 2007)

其中，比較重要的為

Notes Client 的設定，除了根據教學說明的設定外，還要注意 File -&gt; Mobile -&gt; Locations 設定中 Servers 裡面的 Home/email server 這個設定，對於有多台 Notes Server 的環境要注意此項目，必須要設定。
File -&gt; Mobile -&gt; Server Phone Numbers 設定中，要連接的 Server 是否有 Mapping 的記錄，如果有缺也需要補上。

以上兩點是我主要遇到的問題，這兩個問題讓我停擺了 1 ~ 2 個多月的時間，無法設定起來...
&nbsp;
另外，在此提供一些大家可以參考的資訊：

Microsoft Enterprise Search Blog
Secure crawls of Lotus Notes with SharePoint
]]></description>
      <content:encoded><![CDATA[<p>最近 Enterprise Search 好像打的很火熱，也不知道為什麼 MS 最近針對此主題發起了研討會，其實主要還是在推 MOSS 2007 的搜尋，其實為什麼 MS 要開始推的原因，我想應該是他推出了 Search Server 2008 ，以及 MOSS 2007 SP2 的關係。 Search Server 2008 其實就是 MOSS 2007 SP2 中的 Search 的獨立產品。但在此不多說者兩者的不同，有興趣的人自行上網比較一下吧。</p>
<p>&nbsp;</p>
<p>在 MOSS 2007 SP2 發表之前就已經在研究 Search 這個部分，其中，針對 Lotus Notes 的搜尋也著手進行設定，但是不知道為什麼一直設定不起來，其實我遇到的問題，說實在的還真是愚蠢的問題，只是因為我完全不懂 Lotus Notes Client 的設定而已。真是笨ㄚ～～～</p>
<p>&nbsp;</p>
<p>言歸正傳，真正的設定方式，我想我不用再重複一次的告訴大家，因為 Microsoft TechNet 上面有教學，如果英文版的看不懂也沒關係，因為已經有中文版的翻譯，其網址為</p>
<ul>
<li><a href="http://technet.microsoft.com/zh-tw/library/cc262927.aspx" target="_blank">設定 Office SharePoint Server 搜尋以編目 Lotus Notes (Office SharePoint Server 2007)</a></li>
<li><a href="http://technet.microsoft.com/zh-tw/library/cc261820.aspx" target="_blank">準備編目 Lotus Notes (Office SharePoint Server 2007)</a></li>
<li><a href="http://technet.microsoft.com/zh-tw/library/cc263482.aspx" target="_blank">Lotus Notes 設定的疑難排解 (Office SharePoint Server 2007)</a></li>
<li><a href="http://technet.microsoft.com/zh-tw/library/cc262409.aspx" target="_blank">常見問題集：編目 Lotus Notes (Office SharePoint Server 2007)</a></li>
</ul>
<p>其中，比較重要的為</p>
<ol>
<li><span style="font-size: 10pt;"><span style="color: #993300;"><strong>Notes Client 的設定，除了根據教學說明的設定外，還要注意 File -&gt; Mobile -&gt; Locations 設定中 Servers 裡面的 Home/email server 這個設定，對於有多台 Notes Server 的環境要注意此項目，必須要設定。</strong></span></span></li>
<li><span style="font-size: 10pt;"><span style="color: #993300;"><strong>File -&gt; Mobile -&gt; Server Phone Numbers 設定中，要連接的 Server 是否有 Mapping 的記錄，如果有缺也需要補上。</strong></span></span></li>
</ol>
<p>以上兩點是我主要遇到的問題，這兩個問題讓我停擺了 1 ~ 2 個多月的時間，無法設定起來...</p>
<p>&nbsp;</p>
<p>另外，在此提供一些大家可以參考的資訊：</p>
<ul>
<li><a href="http://blogs.msdn.com/enterprisesearch/default.aspx" target="_blank">Microsoft Enterprise Search Blog</a></li>
<li><a href="http://blogs.msdn.com/edhild/articles/473060.aspx" target="_blank">Secure crawls of Lotus Notes with SharePoint</a></li>
</ul>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24837471">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24837471"></div>]]></content:encoded>
      <pubDate>Mon, 10 Aug 2009 10:26:23 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24837471#comments</comments>
    </item>
    <item>
      <title><![CDATA[SharePoint SP2 更新版本可以下載了～]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24490874</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24490874</guid>
      <description><![CDATA[剛好在我考試的這幾天，MS 終於把之前會有過期問題的 SP2 版本更新了～
這次的更新，不管之前有沒有裝過 SP2 都可以直接安裝上去，如果之前有裝可以選擇要不要再次安裝。為了避免再度發生過期的問題，建議還是在安裝一次吧。
安裝導引與下載連結： 安裝 2007 Microsoft Office 伺服器產品的 Service Pack 2 之後，產品到期日的啟動會發生不正確的狀況
中英文下載路徑：
Update for 2007 Microsoft Office Servers (KB971620), 32-Bit Edition

http://www.microsoft.com/downloads/details.aspx?FamilyID=aa77278a-46c0-4513-a456-abf8b0de6720&amp;DisplayLang=zh-tw 

Update for 2007 Microsoft Office 
Servers (KB971620), 64-Bit Edition


http://www.microsoft.com/downloads/details.aspx?FamilyID=3ece7285-30cd-4b62-9548-6bba63cf5d7a&amp;DisplayLang=zh-tw
&nbsp;
其他相關資訊請參考官方 Blog 文章: Microsoft SharePoint Team Blog]]></description>
      <content:encoded><![CDATA[<p>剛好在我考試的這幾天，MS 終於把之前會有<a href="http://weiyiao.pixnet.net/blog/post/24113476" target="_blank">過期問題</a>的 SP2 版本更新了～</p>
<p>這次的更新，不管之前有沒有裝過 SP2 都可以直接安裝上去，如果之前有裝可以選擇要不要再次安裝。為了避免再度發生過期的問題，建議還是在安裝一次吧。</p>
<p>安裝導引與下載連結： <a href="http://support.microsoft.com/kb/971620" target="_blank">安裝 2007 Microsoft Office 伺服器產品的 Service Pack 2 之後，產品到期日的啟動會發生不正確的狀況</a></p>
<p>中英文下載路徑：</p>
<p><strong>Update for 2007 Microsoft Office Servers (KB971620), 32-Bit Edition</strong>
</p>
<p><span class="ll"><a href="http://download.microsoft.com/download/2/f/5/2f51ab71-1325-49d2-9cb9-18dec4780e99/office2007-kb971620-fullfile-x86-glb.exe">http://www.microsoft.com/downloads/details.aspx?FamilyID=aa77278a-46c0-4513-a456-abf8b0de6720&amp;DisplayLang=zh-tw</a></span><span class="pLink"> 
</span></p>
<p><br /><strong>Update for 2007 Microsoft Office 
Servers (KB971620), 64-Bit Edition</strong></p>
<div class="kb_nowrapper">
</div>
<p><span class="ll"><a href="http://download.microsoft.com/download/5/b/b/5bbd34a9-c528-42b0-8a5f-9a8997b25c32/office2007-kb971620-fullfile-x64-glb.exe">http://www.microsoft.com/downloads/details.aspx?FamilyID=3ece7285-30cd-4b62-9548-6bba63cf5d7a&amp;DisplayLang=zh-tw</a></span><span class="pLink"></span></p>
<p>&nbsp;</p>
<p>其他相關資訊請參考官方 Blog 文章: <a href="http://blogs.msdn.com/sharepoint/archive/2009/06/25/service-pack-2-update.aspx" target="_blank">Microsoft SharePoint Team Blog</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24490874">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24490874"></div>]]></content:encoded>
      <pubDate>Mon, 29 Jun 2009 11:59:23 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24490874#comments</comments>
    </item>
    <item>
      <title><![CDATA[MCTS:MOSS 2007, Configuring 終於考過了～]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24490180</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24490180</guid>
      <description><![CDATA[最近一直沒有更新 blog ，是因為我要準備 MCTS:Microsoft Office SharePoint Server 2007, Configuring 的考試，就在 6/27 當天，終於一次給他考過了，想說我這個新手，對於 moss 還是一知半解就想要去考試，真的是自討苦吃....不過還是努力讀書下，還是給他過了...YAYA~~
所以我拿到了...

&nbsp;
針對這次的考試內容，主要參考的書籍和網站為：
Becky Bertram's Blog &gt; Exam 70-630 Study Guide

MCTS: Microsoft Office SharePoint Server 2007 Configuration 
Study Guide: Exam 70-630
&nbsp;
主要的考試重點： Search, BI, Form
]]></description>
      <content:encoded><![CDATA[<p>最近一直沒有更新 blog ，是因為我要準備 <a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-630&amp;locale=en-us" target="_blank">MCTS:Microsoft Office SharePoint Server 2007, Configuring</a> 的考試，就在 6/27 當天，終於一次給他考過了，想說我這個新手，對於 moss 還是一知半解就想要去考試，真的是自討苦吃....不過還是努力讀書下，還是給他過了...YAYA~~</p>
<p>所以我拿到了...</p>
<p><img title="TS:MOSS 2007, Configuring" src="http://pic.pimg.tw/weiyiao/4a48152ec7c20.png" border="0" alt="TS:MOSS 2007, Configuring" /></p>
<p>&nbsp;</p>
<p>針對這次的考試內容，主要參考的書籍和網站為：</p>
<p><a href="http://blog.beckybertram.com" target="_blank">Becky Bertram's Blog</a> &gt; <a href="http://blog.beckybertram.com/Lists/Exam%2060630%20Study%20Guide/AllItems.aspx" target="_blank">Exam 70-630 Study Guide</a></p>
<p><span id="btAsinTitle"><img style="vertical-align: middle;" src="http://media.wiley.com/product_data/coverImage300/33/04702266/0470226633.jpg" alt="" width="300" height="377" /></span></p>
<p><a href="http://as.wiley.com/WileyCDA/WileyTitle/productCd-0470226633.html" target="_blank"><span id="btAsinTitle">MCTS: Microsoft Office SharePoint Server 2007 Configuration 
Study Guide: Exam 70-630</span></a></p>
<p>&nbsp;</p>
<p>主要的考試重點： Search, BI, Form</p>
<p><span><br /></span></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24490180">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24490180"></div>]]></content:encoded>
      <pubDate>Mon, 29 Jun 2009 09:08:01 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24490180#comments</comments>
    </item>
    <item>
      <title><![CDATA[C# 3.0 泛型集合 Generic Collection 中的 List]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24294381</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24294381</guid>
      <description><![CDATA[Generics 是在 C# 2.0 時所新增加的類型，再 2.0 時就已經感受到他的好處了，最近把之前寫的程式又拿出來看時，就想說把改成 3.0 的格式好了，再著手進行的過程中，更感受到 C# 3.0 的強大的功能。讓以前要寫很多行來表示的敘述，通通變成一行就搞定了，以下就簡單的做個筆記，以免我自己忘記。（因為寫的更好的...人大有人在&hellip;噗～）
為了簡單介紹，我需要一個 Class，此 Class 為 Employee：
public class Employee
{
    public string Name { get; set; }

    public int ID { get; set; }

    public double Salary { get; set; }
}

&nbsp;
現在我們建立一個 Employee 的 List 集合
List&lt;Employee&gt; Employees = new List&lt;Employee&gt;();Employees.Add(new Employee { Name = "Willy", ID = 0001, Salary = 35000 });Employees.Add(new Employee { Name = "Yummi", ID = 0002, Salary = 30000 });Employees.Add(new Employee { Name = "Miri", ID = 0003, Salary = 22000 });
&nbsp;
接下來就針對不同的目的來簡單的說明，其中我們將使用到 Lambda 的表示方式來呈現
排序
// 沿用 2.0 的 delegate 的方式
Employees.Sort((emp1, emp2) =&gt; emp1.Salary.CompareTo(emp2.Salary));

// 3.0 新的方式
//由小到大
IEnumerable orderedEmp1 = Employees.OrderBy(emp =&gt; emp.Salary);
//由大到小
IEnumerable orderedEmp2 = Employees.OrderByDescending(emp =&gt; emp.Salary);

&nbsp;
條件式的搜尋
//收尋薪水大於 20K 的員工
IEnumerable EmpsWithBigSalary = Employees.Where((emp) =&gt; emp.Salary &gt; 20000);

//使用 Linq
IEnumerable EmpsWithBigSalarybyLinq = from Employee emp in Employees
                                      where emp.Salary &gt; 20000
                                      select emp;

&nbsp;
差異
//扣除薪水大於 20K 的員工
IEnumerable ExceptEmps = Employees.Except(EmpsWithBigSalary);

&nbsp;
唯一
//取的唯一的值
IEnumerable DistinctEmps = Employees.Distinct();

&nbsp;
轉換成 List
//將 Name 轉成 List
IEnumerable empNames = Employees.Select((emp) =&gt; emp.Name);
//將 ID 轉成 List
IEnumerable empIDs = Employees.Select((emp) =&gt; emp.ID);

&nbsp;
&nbsp;
以上是最近的案子常常用到的功能，關於其他的 Function，可在官方網站上找到相關的說明：
Enumerable Methods
Generics (C# Programming Guide)
Delegates (C# Programming Guide)
LINQ Query Expressions (C# Programming Guide)]]></description>
      <content:encoded><![CDATA[<p>Generics 是在 C# 2.0 時所新增加的類型，再 2.0 時就已經感受到他的好處了，最近把之前寫的程式又拿出來看時，就想說把改成 3.0 的格式好了，再著手進行的過程中，更感受到 C# 3.0 的強大的功能。讓以前要寫很多行來表示的敘述，通通變成一行就搞定了，以下就簡單的做個筆記，以免我自己忘記。（因為寫的更好的...人大有人在&hellip;噗～）</p>
<p>為了簡單介紹，我需要一個 Class，此 Class 為 Employee：</p>
<pre class="brush: csharp;">public class Employee
{
    public string Name { get; set; }

    public int ID { get; set; }

    public double Salary { get; set; }
}
</pre>
<p>&nbsp;</p>
<p>現在我們建立一個 Employee 的 List 集合</p>
<pre class="brush: csharp;">List&lt;Employee&gt; Employees = new List&lt;Employee&gt;();<br /><br />Employees.Add(new Employee { Name = "Willy", ID = 0001, Salary = 35000 });<br />Employees.Add(new Employee { Name = "Yummi", ID = 0002, Salary = 30000 });<br />Employees.Add(new Employee { Name = "Miri", ID = 0003, Salary = 22000 });<br /></pre>
<p>&nbsp;</p>
<p>接下來就針對不同的目的來簡單的說明，其中我們將使用到 Lambda 的表示方式來呈現</p>
<p><strong>排序</strong></p>
<pre class="brush: csharp;">// 沿用 2.0 的 delegate 的方式
Employees.Sort((emp1, emp2) =&gt; emp1.Salary.CompareTo(emp2.Salary));

// 3.0 新的方式
//由小到大
IEnumerable orderedEmp1 = Employees.OrderBy(emp =&gt; emp.Salary);
//由大到小
IEnumerable orderedEmp2 = Employees.OrderByDescending(emp =&gt; emp.Salary);
</pre>
<p>&nbsp;</p>
<p><strong>條件式的搜尋</strong></p>
<pre class="brush: csharp;">//收尋薪水大於 20K 的員工
IEnumerable EmpsWithBigSalary = Employees.Where((emp) =&gt; emp.Salary &gt; 20000);

//使用 Linq
IEnumerable EmpsWithBigSalarybyLinq = from Employee emp in Employees
                                      where emp.Salary &gt; 20000
                                      select emp;
</pre>
<p>&nbsp;</p>
<p><strong>差異</strong></p>
<pre class="brush: csharp;">//扣除薪水大於 20K 的員工
IEnumerable ExceptEmps = Employees.Except(EmpsWithBigSalary);
</pre>
<p>&nbsp;</p>
<p><strong>唯一</strong></p>
<pre class="brush: csharp;">//取的唯一的值
IEnumerable DistinctEmps = Employees.Distinct();
</pre>
<p>&nbsp;</p>
<p><strong>轉換成 List</strong></p>
<pre class="brush: csharp;">//將 Name 轉成 List
IEnumerable empNames = Employees.Select((emp) =&gt; emp.Name);
//將 ID 轉成 List
IEnumerable empIDs = Employees.Select((emp) =&gt; emp.ID);
</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>以上是最近的案子常常用到的功能，關於其他的 Function，可在官方網站上找到相關的說明：</p>
<p><a href="http://msdn.microsoft.com/en-us/library/system.linq.enumerable_methods.aspx" target="_blank">Enumerable Methods</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/512aeb7t.aspx" target="_blank">Generics (C# Programming Guide)</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms173171.aspx" target="_blank">Delegates (C# Programming Guide)</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/bb397676.aspx" target="_blank">LINQ Query Expressions (C# Programming Guide)</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24294381">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24294381"></div>]]></content:encoded>
      <pubDate>Mon, 08 Jun 2009 12:00:24 +0800</pubDate>
      <category><![CDATA[C#]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24294381#comments</comments>
    </item>
    <item>
      <title><![CDATA[Stsadm 技術參考資源 使用了 SilverLight 應用程式]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24287999</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24287999</guid>
      <description><![CDATA[TechNet 最近把 Sharepoint 的 stsadm 的指令參考，改成了使用 SilverLight 的技術了，將以前的表格、鏈結...等，全部整合在一個畫面裡面了，對於經常需要參考 stsadm 的人，可以更方便的找到想要的指令了.
&nbsp;

Stsadm Technical Reference for SharePoint Server 2007: 

http://technet.microsoft.com/en-us/office/sharepointserver/cc948709.aspx 



Stsadm Technical Reference for Windows SharePoint Services 3.0: 

http://technet.microsoft.com/en-us/windowsserver/sharepoint/dd418924.aspx 



]]></description>
      <content:encoded><![CDATA[<p>TechNet 最近把 Sharepoint 的 stsadm 的指令參考，改成了使用 SilverLight 的技術了，將以前的表格、鏈結...等，全部整合在一個畫面裡面了，對於經常需要參考 stsadm 的人，可以更方便的找到想要的指令了.</p>
<p>&nbsp;</p>
<ul>
<li><strong>Stsadm Technical Reference for SharePoint Server 2007:</strong> 
<ul>
<li><a href="http://technet.microsoft.com/en-us/office/sharepointserver/cc948709.aspx" target="_blank">http://technet.microsoft.com/en-us/office/sharepointserver/cc948709.aspx</a> 
</li>
</ul>
</li>
<li><strong>Stsadm Technical Reference for Windows SharePoint Services 3.0:</strong> 
<ul>
<li><a href="http://technet.microsoft.com/en-us/windowsserver/sharepoint/dd418924.aspx" target="_blank">http://technet.microsoft.com/en-us/windowsserver/sharepoint/dd418924.aspx</a> 
</li>
</ul>
</li>
</ul>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24287999">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24287999"></div>]]></content:encoded>
      <pubDate>Sun, 07 Jun 2009 19:46:53 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24287999#comments</comments>
    </item>
    <item>
      <title><![CDATA[整合 Visual Studio 2008 的程式碼版管理 : VisualSVN Server + TortoiseSVN + AnkhSVN, Part II]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24118190</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24118190</guid>
      <description><![CDATA[在前一篇 Part I 中，說明了 VisualSVN Server 的安裝與簡易設定 Repositories，接下來，我們就繼續安裝  TortoiseSVN 和 AnkhSVN ，如果只是想要跟 VS 2008 整合的話，不想使用Windows 檔案總管來管理的話，其實只要安裝 AnkhSVN 即可。  Client 端軟體安裝：  1. 安裝 TortoiseSVN ：到目前我發表此文章的最新版本為 TortoiseSVN-1.6.2.16344-win32-svn-1.6.2.msi，安裝其實很簡單，只要一直下一步即可，下圖為安裝選項。  &nbsp;&nbsp; 2. 如果想要改為中文介面的話，官方網站有提供語言檔案 Chinese, traditional Language packs 下載。 3. 安裝 AnkhSVN ，目前的最新版本為 AnkhSVN 2.0 ( AnkhSvn-2.0.6347.433.msi )，安裝時請記得將 Visual Studio 2008/2005 關閉後在安裝，安裝過程一樣是一直下一步即可。 4. 設定 Viual Studio 使用 AnkhSVN：開啟 Visual Studio 2008/2005 ，選擇 工具→ 選項，找到 Source Control 後，變更外掛程式選擇選項。如下圖。    接下來就是進入我們的正題了，如何控管程式碼的版本了。 1. 請先在 VisualSVN Server 上建立一個 Repository，名字我就取 “Willy”，您可以取其他的名字，其網址為 https://localhost:8443/svn/Willy/&nbsp; 2. 接下請用 Viual Studio 開啟要控管版本的專案或網站。 3. 在 方案總管 上的方案按下滑鼠右鍵，選取 Add Solution to Subversion... ，如下圖。   4. 在 Add to Subversion 的視窗上，將剛剛的網址 https://localhost:8443/svn/Willy/ 貼上 Repository Url 上，並選擇你的 Repository ，選擇後，最下面的 Project will be created in: 框框，將會顯示您的專案會放置的目錄位置與名稱。按下 OK 後，在 Log Message 上可以隨意打上您的標註。      5. 設定完成後，即可在 方案總管上看到，您的檔案尚未上傳到 Server 的符號，以及在 Pending Changes 的視窗上看到您需要上傳的檔案。   6. 在 Pending Changes – Source Files 視窗上，可以按下 Commit 按鈕將您修改過的檔案上傳到 Server 上，Update 按鈕可以將 Server 上的檔案下載下來，message 可以填入此次作業的內容為何。]]></description>
      <content:encoded><![CDATA[<p>在前一篇 <a href="http://weiyiao.pixnet.net/blog/post/24049585" target="_blank">Part I</a> 中，說明了 <a href="http://www.visualsvn.com/server/download/">VisualSVN Server</a> 的安裝與簡易設定 Repositories，接下來，我們就繼續安裝 </p> <p><a href="http://tortoisesvn.net/downloads">TortoiseSVN</a> 和 <a href="http://ankhsvn.open.collab.net/servlets/ProjectProcess?pageID=3794">AnkhSVN</a> ，如果只是想要跟 VS 2008 整合的話，不想使用Windows 檔案總管來管理的話，其實只要安裝 <a href="http://ankhsvn.open.collab.net/servlets/ProjectProcess?pageID=3794">AnkhSVN</a> 即可。  <p>Client 端軟體安裝：  <p>1. 安裝 <a href="http://tortoisesvn.net/downloads">TortoiseSVN</a> ：到目前我發表此文章的最新版本為 TortoiseSVN-1.6.2.16344-win32-svn-1.6.2.msi，安裝其實很簡單，只要一直下一步即可，下圖為安裝選項。  <p><a href="http://pic.pimg.tw/weiyiao/4a1a5617a8bf6.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://pic.pimg.tw/weiyiao/4a1a56183c439.png" width="503" height="389"></a>&nbsp;&nbsp; <p>2. 如果想要改為中文介面的話，官方網站有提供語言檔案 <a href="http://downloads.sourceforge.net/tortoisesvn/LanguagePack_1.6.2.16344-win32-zh_TW.msi?download" target="_blank">Chinese, traditional Language packs</a> 下載。</p> <p>3. 安裝 <a href="http://ankhsvn.open.collab.net/servlets/ProjectProcess?pageID=3794">AnkhSVN</a> ，目前的最新版本為 AnkhSVN 2.0 ( AnkhSvn-2.0.6347.433.msi )，安裝時請記得將 Visual Studio 2008/2005 關閉後在安裝，安裝過程一樣是一直下一步即可。</p> <p>4. 設定 Viual Studio 使用 AnkhSVN：開啟 Visual Studio 2008/2005 ，選擇 工具→ 選項，找到 Source Control 後，變更外掛程式選擇選項。如下圖。</p> <p><a href="http://pic.pimg.tw/weiyiao/4a1a5618a1d6f.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://pic.pimg.tw/weiyiao/4a1a56192c11d.png" width="504" height="296"></a> </p> <p></p> <p>接下來就是進入我們的正題了，如何控管程式碼的版本了。</p> <p>1. 請先在 VisualSVN Server 上建立一個 Repository，名字我就取 “Willy”，您可以取其他的名字，其網址為 <a title="https://localhost:8443/svn/Willy/" href="https://localhost:8443/svn/Willy/">https://localhost:8443/svn/Willy/</a>&nbsp;</p> <p>2. 接下請用 Viual Studio 開啟要控管版本的專案或網站。</p> <p>3. 在 方案總管 上的方案按下滑鼠右鍵，選取 Add Solution to Subversion... ，如下圖。</p> <p><a href="http://pic.pimg.tw/weiyiao/4a1a7857c9c3a.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://pic.pimg.tw/weiyiao/4a1a7858328d2.png" width="268" height="617"></a> </p> <p>4. 在 Add to Subversion 的視窗上，將剛剛的網址 <a title="https://localhost:8443/svn/Willy/" href="https://localhost:8443/svn/Willy/">https://localhost:8443/svn/Willy/</a> 貼上 Repository Url 上，並選擇你的 Repository ，選擇後，最下面的 Project will be created in: 框框，將會顯示您的專案會放置的目錄位置與名稱。按下 OK 後，在 Log Message 上可以隨意打上您的標註。</p> <p><a href="http://pic.pimg.tw/weiyiao/4a1a7858a580c.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://pic.pimg.tw/weiyiao/4a1a7858f1ae4.png" width="472" height="516"></a> </p> <p></p> <p></p> <p></p> <p>5. 設定完成後，即可在 方案總管上看到，您的檔案尚未上傳到 Server 的符號，以及在 Pending Changes 的視窗上看到您需要上傳的檔案。</p> <p><a href="http://pic.pimg.tw/weiyiao/4a1a7e111ec95.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://pic.pimg.tw/weiyiao/4a1a7e122e06a.png" width="504" height="346"></a> </p> <p>6. 在 Pending Changes – Source Files 視窗上，可以按下 Commit 按鈕將您修改過的檔案上傳到 Server 上，Update 按鈕可以將 Server 上的檔案下載下來，message 可以填入此次作業的內容為何。</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24118190">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24118190"></div>]]></content:encoded>
      <pubDate>Mon, 25 May 2009 16:26:01 +0800</pubDate>
      <category><![CDATA[軟體]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24118190#comments</comments>
    </item>
    <item>
      <title><![CDATA[【緊急通知】Office 2007 Server SP2 先不要安裝.]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24113476</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24113476</guid>
      <description><![CDATA[此問題已經解決了喔～～～請參考 http://weiyiao.pixnet.net/blog/post/24490874
&nbsp;
若您有使用以下任一產品:1. Office SharePoint Server 20072. Project Server 20073. Form Server 20074. Search Server 20085. Search Server 2008 Express&nbsp;緊急通知:最近發佈的Office 2007 Server SP2有一個 Bug，會讓 Office SharePoint Server 2007, Project Server 2007, Form Server 2007, Search Server 2008及 Search Server 2008 Express的授權變成 試用版&nbsp;後續行動:請還沒有安裝的客戶先不要安裝，微軟會再發佈修正後的SP2已經安裝的客戶，目前建議的做法是請客戶重新再輸入一次產品序號，即可恢復正常客戶可以由 貴公司的 Volume Licensing Service Center 取得產品序號注意: Search Server 2008 Express 一定要安裝 hotfix 才能解決微軟會於最快的時間內發佈 hotfix, 並於48小時內發佈KB article (目前還未發佈)詳細及更新的資訊:微軟 SharePoint 官方Blog: Microsoft SharePoint Team Blog - Attention: 
Important Information on Service Pack 2有關hotfix 及更新的資訊都會發佈於此
&nbsp;]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal">此問題已經解決了喔～～～請參考 <a href="http://weiyiao.pixnet.net/blog/post/24490874" target="_self">http://weiyiao.pixnet.net/blog/post/24490874</a></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">若您有使用以下任一產品:<br />1. Office SharePoint Server 2007<br />2. Project Server 2007<br />3. Form Server 2007<br />4. Search Server 2008<br />5. Search Server 2008 Express<br />&nbsp;<br /><span style="font-size: 10pt;"><strong>緊急通知:</strong></span><br />最近發佈的Office 2007 Server SP2有一個 Bug，會讓 Office SharePoint Server 2007, Project Server 2007, Form Server 2007, Search Server 2008及 Search Server 2008 Express的授權變成 <span style="font-size: 12pt;"><strong><span style="color: #ff0000;">試用版</span></strong></span><br />&nbsp;<br /><span style="font-size: 10pt;"><strong>後續行動:</strong></span><br />請還沒有安裝的客戶先不要安裝，微軟會再發佈修正後的SP2<br />已經安裝的客戶，目前建議的做法是請客戶重新再輸入一次產品序號，即可恢復正常<br />客戶可以由 貴公司的 <a href="https://www.microsoft.com/licensing/servicecenter/Home.aspx?lc=1033">Volume Licensing Service Center</a> 取得產品序號<br /><br /><span style="font-size: 10pt;"><strong>注意:</strong></span> Search Server 2008 Express 一定要安裝 hotfix 才能解決<br /><br />微軟會於最快的時間內發佈 hotfix, 並於48小時內發佈<a href="http://support.microsoft.com/kb/971620" target="_blank">KB article</a> (目前還未發佈)<br />詳細及更新的資訊:<br />微軟 SharePoint 官方Blog: <a href="http://blogs.msdn.com/sharepoint/archive/2009/05/21/attention-important-information-on-service-pack-2.aspx" target="_blank"><span class="headermaintitle">Microsoft SharePoint Team Blog -</span> Attention: 
Important Information on Service Pack 2</a><br />有關hotfix 及更新的資訊都會發佈於此</p>
<p>&nbsp;</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24113476">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24113476"></div>]]></content:encoded>
      <pubDate>Mon, 25 May 2009 09:24:29 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24113476#comments</comments>
    </item>
    <item>
      <title><![CDATA[整合 Visual Studio 2008 的程式碼版管理 : VisualSVN Server + TortoiseSVN + AnkhSVN, Part I]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24049585</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24049585</guid>
      <description><![CDATA[近期因為在研究 Source Code 的 Version Control ，因為 Visual Studio Team Foundation Server 2008 有版權的問題，因此找了免費版本的方式來達到想要的結果，雖然測試到目前還是覺得 TFS 比較好用比較強大，但是為了只要達到目的又可以不花錢，當然是使用 Free 的就好。
這次的整合工作，我們需要下面 3 個軟體：
1. VisualSVN Server &ndash; SVN Server，已經整合 Apache&nbsp; 和 Subversion 的套裝軟體
2. TortoiseSVN &ndash; Windows 檔案總管的整合工具
3. AnkhSVN -&nbsp; Visual Studio 2005/2008 的整合附加工具
目前所使用的各個軟體的版本分別為 VisualSVN Server 1.72 、 TortoiseSVN 1.62 、 AnkhSVN 2.0 (2.0.6347) ，如有更新的版本其安置過程應該都大同小異。
接下來，我們第一的步驟就是找台機器當做 SVN Server，當我們下載 VisualSVN-Server-1.7.2.msi 請執行程式，其實 VisualSVN Server 1.72 安裝的過程中包含了 Apache 2.2.9 和 Subversion 1.6.2 ，在安裝過程中，主要需要設定的內容為：
Location 為 Server 的軟體安裝路徑
Repositories 為存放版本控管的資料庫位置
Server port 為 SVN 的 Web Server 的監聽連接埠，以及是否使用 SSL 加密，如果勾選會自動產生憑證
使用者驗證模式，兩種選擇，一為 Windows 整合模式，一為 Subversion 獨立管理的使用者

 當安裝完成後，我們可以使用 VisualSVN Server Manager 管理工具來管理使用者及群組，在 Repositories 上按滑鼠右鍵選擇 Properties。
 
接下來我們可以建立一個新的 Repository 來存放我們的特定專案所有用的文件，建立過程中可以勾選 &ldquo;Create default structure&rdquo;，系統將會自動建立 trunk, branches, tags 三個資料夾
 
在設定好 Server 之後，我們將近入安裝與設定 TortoiseSVN 、 AnkhSVN ，我將寫在 Part II 上。待續。]]></description>
      <content:encoded><![CDATA[<p>近期因為在研究 Source Code 的 Version Control ，因為 Visual Studio Team Foundation Server 2008 有版權的問題，因此找了免費版本的方式來達到想要的結果，雖然測試到目前還是覺得 TFS 比較好用比較強大，但是為了只要達到目的又可以不花錢，當然是使用 Free 的就好。</p>
<p>這次的整合工作，我們需要下面 3 個軟體：</p>
<p>1. <a href="http://www.visualsvn.com/server/download/" target="_blank">VisualSVN Server</a> &ndash; SVN Server，已經整合 Apache&nbsp; 和 Subversion 的套裝軟體</p>
<p>2. <a href="http://tortoisesvn.net/downloads" target="_blank">TortoiseSVN</a> &ndash; Windows 檔案總管的整合工具</p>
<p>3. <a href="http://ankhsvn.open.collab.net/servlets/ProjectProcess?pageID=3794" target="_blank">AnkhSVN</a> -&nbsp; Visual Studio 2005/2008 的整合附加工具</p>
<p>目前所使用的各個軟體的版本分別為 VisualSVN Server 1.72 、 TortoiseSVN 1.62 、 AnkhSVN 2.0 (2.0.6347) ，如有更新的版本其安置過程應該都大同小異。</p>
<p>接下來，我們第一的步驟就是找台機器當做 SVN Server，當我們下載 VisualSVN-Server-1.7.2.msi 請執行程式，其實 VisualSVN Server 1.72 安裝的過程中包含了 Apache 2.2.9 和 Subversion 1.6.2 ，在安裝過程中，主要需要設定的內容為：</p>
<p>Location 為 Server 的軟體安裝路徑</p>
<p>Repositories 為存放版本控管的資料庫位置</p>
<p>Server port 為 SVN 的 Web Server 的監聽連接埠，以及是否使用 SSL 加密，如果勾選會自動產生憑證</p>
<p>使用者驗證模式，兩種選擇，一為 Windows 整合模式，一為 Subversion 獨立管理的使用者</p>
<p><a href="http://pic.pimg.tw/weiyiao/4a128db17c024.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://pic.pimg.tw/weiyiao/4a128db257a52.png" border="0" alt="image" width="503" height="389" /></a></p>
<p> 當安裝完成後，我們可以使用 VisualSVN Server Manager 管理工具來管理使用者及群組，在 Repositories 上按滑鼠右鍵選擇 Properties。</p>
<p><a href="http://pic.pimg.tw/weiyiao/4a128db431d8c.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://pic.pimg.tw/weiyiao/4a128db51ad5d.png" border="0" alt="image" width="518" height="516" /></a> </p>
<p>接下來我們可以建立一個新的 Repository 來存放我們的特定專案所有用的文件，建立過程中可以勾選 &ldquo;Create default structure&rdquo;，系統將會自動建立 trunk, branches, tags 三個資料夾</p>
<p><a href="http://pic.pimg.tw/weiyiao/4a128db5e83e0.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://pic.pimg.tw/weiyiao/4a128db6a1152.png" border="0" alt="image" width="460" height="361" /></a> </p>
<p>在設定好 Server 之後，我們將近入安裝與設定 TortoiseSVN 、 AnkhSVN ，我將寫在<a href="http://weiyiao.pixnet.net/blog/post/24118190" target="_blank"> Part II</a> 上。待續。</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24049585">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24049585"></div>]]></content:encoded>
      <pubDate>Tue, 19 May 2009 18:45:11 +0800</pubDate>
      <category><![CDATA[軟體]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24049585#comments</comments>
    </item>
    <item>
      <title><![CDATA[在 SSIS 上產生 SSRS 的 Excel 加密檔案並且發送 E-mail, PART II]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24039053</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24039053</guid>
      <description><![CDATA[在前一篇 PART I 中，已經說明了如何使用 SSRS 的 Web Service 來產生 Excel，接下來就是把產生的 Excel 檔案加密，在執行加密檔案之前，需要做個動作的確認，如果你的開發環境或者是執行 SSIS 的環境上是否有安裝 Excel 程式，如果有可以略過下面的步驟 1 ，如果沒有，那就只好安裝 Office Excel 或者是安裝 Office 2007 Primary Interop Assemblies (PIAs)。
1. 首先至 MS 官方網站下載並安裝 2007 Microsoft Office System Update: Redistributable Primary Interop Assemblies ，安裝完成後即可使用 Microsoft.Office.Interop.Excel.dll
2. 跟 PART I 一樣，我們需要使用一個 Script Tasks，此次我們使用 VB.NET來撰寫，ScriptLanguage 請選擇 Microsoft Visual Basic 2008，並進入 &rdquo;編輯指令碼&rdquo;。
3. 加入參考，請選擇 Microsoft.Office.Interop.Excel 版本請任選一個。
 
4. 加入 Office 和 Excel 的命名空間
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Excel

5. 最後加入主要的程式碼片段
    Public Sub Main()

        Dim AppExcel As Excel.Application = New Excel.Application
        AppExcel.Visible = False

        Dim objWorkbook = AppExcel.Workbooks.Open(Dts.Variables("FileName").Value)

        objWorkbook.Password = Dts.Variables("Password").Value
        objWorkbook.Save()
        AppExcel.Quit()

        Dts.TaskResult = ScriptResults.Success
    End Sub

6. 由於在最後的 E-mail Task 有可能會發生檔案被鎖住的問題，之此在發送 Mail 之前，多加了延遲的功能，延遲的指令碼為：
Threading.Thread.Sleep(2000)]]></description>
      <content:encoded><![CDATA[<p>在前一篇 <a href="http://weiyiao.pixnet.net/blog/post/24037289" target="_blank">PART I</a> 中，已經說明了如何使用 SSRS 的 Web Service 來產生 Excel，接下來就是把產生的 Excel 檔案加密，在執行加密檔案之前，需要做個動作的確認，如果你的開發環境或者是執行 SSIS 的環境上是否有安裝 Excel 程式，如果有可以略過下面的步驟 1 ，如果沒有，那就只好安裝 Office Excel 或者是安裝 Office 2007 Primary Interop Assemblies (PIAs)。</p>
<p>1. 首先至 MS 官方網站下載並安裝 <a title="2007 Microsoft Office System Update: Redistributable Primary Interop Assemblies" href="http://www.microsoft.com/downloads/details.aspx?familyid=59DAEBAA-BED4-4282-A28C-B864D8BFA513&amp;displaylang=en" target="_blank">2007 Microsoft Office System Update: Redistributable Primary Interop Assemblies</a> ，安裝完成後即可使用 <strong>Microsoft.Office.Interop.Excel.dll</strong></p>
<p>2. 跟 PART I 一樣，我們需要使用一個 Script Tasks，此次我們使用 VB.NET來撰寫，ScriptLanguage 請選擇 Microsoft Visual Basic 2008，並進入 &rdquo;編輯指令碼&rdquo;。</p>
<p>3. 加入參考，請選擇 Microsoft.Office.Interop.Excel 版本請任選一個。</p>
<p><a href="http://pic.pimg.tw/weiyiao/4a1115946a1bc.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://pic.pimg.tw/weiyiao/4a11159543b4f.png" border="0" alt="image" width="506" height="367" /></a> </p>
<p>4. 加入 Office 和 Excel 的命名空間</p>
<pre class="brush: vb">Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Excel
</pre>
<p>5. 最後加入主要的程式碼片段</p>
<pre class="brush: vb">    Public Sub Main()

        Dim AppExcel As Excel.Application = New Excel.Application
        AppExcel.Visible = False

        Dim objWorkbook = AppExcel.Workbooks.Open(Dts.Variables("FileName").Value)

        objWorkbook.Password = Dts.Variables("Password").Value
        objWorkbook.Save()
        AppExcel.Quit()

        Dts.TaskResult = ScriptResults.Success
    End Sub
</pre>
<p>6. 由於在最後的 E-mail Task 有可能會發生檔案被鎖住的問題，之此在發送 Mail 之前，多加了延遲的功能，延遲的指令碼為：</p>
<pre class="brush: vbnet">Threading.Thread.Sleep(2000)</pre>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24039053">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24039053"></div>]]></content:encoded>
      <pubDate>Mon, 18 May 2009 16:00:21 +0800</pubDate>
      <category><![CDATA[SSIS]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24039053#comments</comments>
    </item>
    <item>
      <title><![CDATA[在 SSIS 上產生 SSRS 的 Excel 加密檔案並且發送 E-mail, PART I]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/24037289</link>
      <guid>http://weiyiao.pixnet.net/blog/post/24037289</guid>
      <description><![CDATA[最近，因為總經理提出了一個需求，每個禮拜收到的 Report Alert 中的 Excel 檔案需要加密，原本的 SSRS 所發送的 Excel 是 SSRS 本身自動產生的無加密檔案，但是這問題如何解決呢？經過我這個無理頭的思考後，突發奇想，使用 SSIS 呼叫 SSRS 的 Web Service 後產生 Excel 檔案，在利用以前管理 AD/Exchange 時常做的 VBScript 來匯出匯入到 Excel 中的加密檔案程式片段，最後，在把 Excel 檔案給 Mail 出去，終於在多番測試後，真的被我給實踐出來了。流程如下圖：
 
我所使用的系統為 SISS 2008 &amp; SSRS 2008，在 SSIS 2005&nbsp; 中是無法呼叫 Web Service，另外也不支援 C#，不過我還是有做 SSIS 2005 的版本，有需要在跟我說吧～因為 2005 實在是有夠麻煩，我們所用的的元件其實只有兩種，主要是使用 &rdquo;指令碼工作&rdquo;以及一個 &rdquo;傳送郵件工作&rdquo;。
首先，先簡單介紹一下第一個步驟，呼叫 SSRS 的 Web Service，請由工具箱拉取一個 &rdquo;指令碼工作&rdquo;元件，點擊兩下進入編輯設定，在 ScriptLanguage 中因為這次我使用C# 程式，所以請選擇 &ldquo;Microsoft Visual C# 2008&rdquo;，如果有設定變數的話，請自行選取你要用的變數，否則就點選 &rdquo;編輯指令碼&rdquo;進入編輯程式介面。
1. 進入程式編輯畫面後，第一步驟，加入 SSRS 的 Web Service，在專案總管上按滑鼠右鍵，選擇 &rdquo;加入 Web 參考&rdquo;，在 URL 上打上您的 SSRS 的 Web Service 路徑，http://localhost/ReportServer/ReportExecution2005.asmx?wsdl，然後在 Web 參考名稱 打上ReportExecutionService (名稱可以自定)，之後按下 &rdquo;加入參考&rdquo;，如下圖。
 
2. 加入 ReportExecution2005 命名空間，由於在這個 Script Task 中的 Package 名稱是一個常串的亂碼名稱，所以加入 ReportExecution2005 時需要注意，請跟您的命名空間一致。
 
3. 接下來就是主要的程式內容，內容我就不再詳細敘述了，有空在來說明：
        public void Main()
        {
            ReportExecutionService res = new ReportExecutionService();
            res.Credentials = System.Net.CredentialCache.DefaultCredentials;
            res.Url = "http://localhost/reportserver/ReportExecution2005.asmx";

            // Setting Report Name            
            string ReportName = Dts.Variables["ReportName"].Value.ToString();
            string historyID = null;
            
            Byte[] results;
            string format = "Excel"; //XML, NULL, CSV, IMAGE, PDF, HTML4.0, HTML3.2, MHTML, EXCEL, and HTMLOWC
            string deviceInfo = null;
            string extension = String.Empty;
            string mimeType = String.Empty;
            string encoding = String.Empty;
            ReportExecution2005.Warning[] warnings = null;
            string[] streamIDs = null;

            // Save Location and File Name
            string fileName = Dts.Variables["FileName"].Value.ToString();

            try
            {
                ExecutionInfo ei = res.LoadReport(ReportName, historyID);

                // Setting Report Parameters
                ReportExecution2005.ParameterValue[] rptParameters = new ReportExecution2005.ParameterValue[1];

                rptParameters[0] = new ReportExecution2005.ParameterValue();
                rptParameters[0].Name = "ParameterName";
                rptParameters[0].Value = "ParameterValue";

                res.SetExecutionParameters(rptParameters, "en-us");


                results = res.Render(format, deviceInfo, out extension, out mimeType, out encoding, out warnings, out streamIDs);

                // Save the result file
                using (FileStream stream = File.Create(fileName, results.Length))
                {
                    stream.Write(results, 0, results.Length);
                }   
            }
            catch (Exception ex)
            {
                Dts.TaskResult = (int)ScriptResults.Failure;
            }

            Dts.TaskResult = (int)ScriptResults.Success;
        }

繼續閱讀請參考，在 SSIS 上產生 SSRS 的 Excel 加密檔案並且發送 E-mail, PART II]]></description>
      <content:encoded><![CDATA[<p>最近，因為總經理提出了一個需求，每個禮拜收到的 Report Alert 中的 Excel 檔案需要加密，原本的 SSRS 所發送的 Excel 是 SSRS 本身自動產生的無加密檔案，但是這問題如何解決呢？經過我這個無理頭的思考後，突發奇想，使用 SSIS 呼叫 SSRS 的 Web Service 後產生 Excel 檔案，在利用以前管理 AD/Exchange 時常做的 VBScript 來匯出匯入到 Excel 中的加密檔案程式片段，最後，在把 Excel 檔案給 Mail 出去，終於在多番測試後，真的被我給實踐出來了。流程如下圖：</p>
<p><a href="http://pic.pimg.tw/weiyiao/4a10e24f043d6.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://pic.pimg.tw/weiyiao/4a10e25076719.png" border="0" alt="image" width="554" height="251" /></a> </p>
<p>我所使用的系統為 SISS 2008 &amp; SSRS 2008，在 SSIS 2005&nbsp; 中是無法呼叫 Web Service，另外也不支援 C#，不過我還是有做 SSIS 2005 的版本，有需要在跟我說吧～因為 2005 實在是有夠麻煩，我們所用的的元件其實只有兩種，主要是使用 &rdquo;指令碼工作&rdquo;以及一個 &rdquo;傳送郵件工作&rdquo;。</p>
<p>首先，先簡單介紹一下第一個步驟，呼叫 SSRS 的 Web Service，請由工具箱拉取一個 &rdquo;指令碼工作&rdquo;元件，點擊兩下進入編輯設定，在 ScriptLanguage 中因為這次我使用C# 程式，所以請選擇 &ldquo;Microsoft Visual C# 2008&rdquo;，如果有設定變數的話，請自行選取你要用的變數，否則就點選 &rdquo;編輯指令碼&rdquo;進入編輯程式介面。</p>
<p>1. 進入程式編輯畫面後，第一步驟，加入 SSRS 的 Web Service，在專案總管上按滑鼠右鍵，選擇 &rdquo;加入 Web 參考&rdquo;，在 URL 上打上您的 SSRS 的 Web Service 路徑，<a title="http://localhost/ReportServer/ReportExecution2005.asmx?wsdl" href="http://localhost/ReportServer/ReportExecution2005.asmx?wsdl">http://localhost/ReportServer/ReportExecution2005.asmx?wsdl</a>，然後在 Web 參考名稱 打上ReportExecutionService (名稱可以自定)，之後按下 &rdquo;加入參考&rdquo;，如下圖。</p>
<p><a href="http://pic.pimg.tw/weiyiao/4a10e251c8eec.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://pic.pimg.tw/weiyiao/4a10e2530f1f6.png" border="0" alt="image" width="554" height="389" /></a> </p>
<p>2. 加入 ReportExecution2005 命名空間，由於在這個 Script Task 中的 Package 名稱是一個常串的亂碼名稱，所以加入 ReportExecution2005 時需要注意，請跟您的命名空間一致。</p>
<p><a href="http://pic.pimg.tw/weiyiao/4a10e2574c1b7.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://pic.pimg.tw/weiyiao/4a10e259b3cc0.png" border="0" alt="image" width="435" height="128" /></a> </p>
<p>3. 接下來就是主要的程式內容，內容我就不再詳細敘述了，有空在來說明：</p>
<pre class="brush: csharp">        public void Main()
        {
            ReportExecutionService res = new ReportExecutionService();
            res.Credentials = System.Net.CredentialCache.DefaultCredentials;
            res.Url = "http://localhost/reportserver/ReportExecution2005.asmx";

            // Setting Report Name            
            string ReportName = Dts.Variables["ReportName"].Value.ToString();
            string historyID = null;
            
            Byte[] results;
            string format = "Excel"; //XML, NULL, CSV, IMAGE, PDF, HTML4.0, HTML3.2, MHTML, EXCEL, and HTMLOWC
            string deviceInfo = null;
            string extension = String.Empty;
            string mimeType = String.Empty;
            string encoding = String.Empty;
            ReportExecution2005.Warning[] warnings = null;
            string[] streamIDs = null;

            // Save Location and File Name
            string fileName = Dts.Variables["FileName"].Value.ToString();

            try
            {
                ExecutionInfo ei = res.LoadReport(ReportName, historyID);

                // Setting Report Parameters
                ReportExecution2005.ParameterValue[] rptParameters = new ReportExecution2005.ParameterValue[1];

                rptParameters[0] = new ReportExecution2005.ParameterValue();
                rptParameters[0].Name = "ParameterName";
                rptParameters[0].Value = "ParameterValue";

                res.SetExecutionParameters(rptParameters, "en-us");


                results = res.Render(format, deviceInfo, out extension, out mimeType, out encoding, out warnings, out streamIDs);

                // Save the result file
                using (FileStream stream = File.Create(fileName, results.Length))
                {
                    stream.Write(results, 0, results.Length);
                }   
            }
            catch (Exception ex)
            {
                Dts.TaskResult = (int)ScriptResults.Failure;
            }

            Dts.TaskResult = (int)ScriptResults.Success;
        }
</pre>
<p>繼續閱讀請參考，<a href="http://weiyiao.pixnet.net/blog/post/24039053">在 SSIS 上產生 SSRS 的 Excel 加密檔案並且發送 E-mail, PART II</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/24037289">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F24037289"></div>]]></content:encoded>
      <pubDate>Mon, 18 May 2009 12:21:46 +0800</pubDate>
      <category><![CDATA[SSIS]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/24037289#comments</comments>
    </item>
    <item>
      <title><![CDATA[Microsoft Office SharePoint Server 2007 and WSS 3.0 Service Pack 2]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/23789465</link>
      <guid>http://weiyiao.pixnet.net/blog/post/23789465</guid>
      <description><![CDATA[4月28日，微軟發表了 Office System 的 SP2，包含了 Office 2007 以及我比較關注的 MOSS 2007 的 SP2，因為美國時間是 4/28 發表，所以今天 4/29 我就改快下載來測試看看了。 本次的更新除了收尋引擎的功能變多，介面也變了，另外也針對了 IE 8 和 Firefox 做了修正。 詳細更新內容請參考 KB： Description of Windows SharePoint Services 3.0 SP2 and of Windows SharePoint Services 3.0 Language Pack SP2http://support.microsoft.com/kb/953338Description of 2007 Microsoft Office servers Service Pack 2 (SP2) and of 2007 Microsoft Office servers Language Pack Service Pack 2 (SP2)http://support.microsoft.com/kb/953334 下載連結： Service Pack 2 for Windows SharePoint Services 3.0, x64http://go.microsoft.com/fwlink/?LinkId=148404 Service Pack 2 for Windows SharePoint Services 3.0, x86http://go.microsoft.com/fwlink/?LinkId=148403 Service Pack 2 for Office SharePoint Server 2007, x64http://go.microsoft.com/fwlink/?LinkId=148351 Service Pack 2 for Office SharePoint Server 2007, x86http://go.microsoft.com/fwlink/?LinkId=148352 Slipstream Builds For Windows SharePoint Services 3.0 Windows SharePoint Services 3.0 with SP2, x64http://www.microsoft.com/downloads/details.aspx?FamilyId=9FB41E51-CB03-4B47-B89A-396786492CBA&amp;displaylang=enWindows SharePoint Services 3.0 with SP2, x86http://www.microsoft.com/downloads/details.aspx?FamilyId=EF93E453-75F1-45DF-8C6F-4565E8549C2A&amp;displaylang=en]]></description>
      <content:encoded><![CDATA[<p>4月28日，微軟發表了 Office System 的 SP2，包含了 Office 2007 以及我比較關注的 MOSS 2007 的 SP2，因為美國時間是 4/28 發表，所以今天 4/29 我就改快下載來測試看看了。</p> <p>本次的更新除了收尋引擎的功能變多，介面也變了，另外也針對了 IE 8 和 Firefox 做了修正。</p> <p>詳細更新內容請參考 KB：</p> <p>Description of Windows SharePoint Services 3.0 SP2 and of Windows SharePoint Services 3.0 Language Pack SP2<br><a href="http://support.microsoft.com/kb/953338">http://support.microsoft.com/kb/953338</a><br>Description of 2007 Microsoft Office servers Service Pack 2 (SP2) and of 2007 Microsoft Office servers Language Pack Service Pack 2 (SP2)<br><a href="http://support.microsoft.com/kb/953334">http://support.microsoft.com/kb/953334</a> <p>下載連結： <p>Service Pack 2 for Windows SharePoint Services 3.0, x64<br><a href="http://go.microsoft.com/fwlink/?LinkId=148404">http://go.microsoft.com/fwlink/?LinkId=148404</a> <p>Service Pack 2 for Windows SharePoint Services 3.0, x86<br><a href="http://go.microsoft.com/fwlink/?LinkId=148403">http://go.microsoft.com/fwlink/?LinkId=148403</a> <p>Service Pack 2 for Office SharePoint Server 2007, x64<br><a href="http://go.microsoft.com/fwlink/?LinkId=148351">http://go.microsoft.com/fwlink/?LinkId=148351</a> <p>Service Pack 2 for Office SharePoint Server 2007, x86<br><a href="http://go.microsoft.com/fwlink/?LinkId=148352">http://go.microsoft.com/fwlink/?LinkId=148352</a> <p><b>Slipstream Builds For Windows SharePoint Services 3.0</b> <p>Windows SharePoint Services 3.0 with SP2, x64<br><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9FB41E51-CB03-4B47-B89A-396786492CBA&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=9FB41E51-CB03-4B47-B89A-396786492CBA&amp;displaylang=en</a><br>Windows SharePoint Services 3.0 with SP2, x86<br><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=EF93E453-75F1-45DF-8C6F-4565E8549C2A&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=EF93E453-75F1-45DF-8C6F-4565E8549C2A&amp;displaylang=en</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/23789465">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F23789465"></div>]]></content:encoded>
      <pubDate>Wed, 29 Apr 2009 17:14:11 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/23789465#comments</comments>
    </item>
    <item>
      <title><![CDATA[在 MOSS 上安裝 報表總管 (SharePoint 2.0 Web Parts)]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/23698439</link>
      <guid>http://weiyiao.pixnet.net/blog/post/23698439</guid>
      <description><![CDATA[假設在MOSS上想要使用 Reporting Service 又不想做整合模式，可以安裝 SharePoint 2.0 Web Parts 來檢視 Native Mode 的報表管理員內的資料。
安裝指令為:
1. 複製 SQL Server 上的 RSWebParts.cab 到 MOSS Server上，RSWebParts.cab 預設路徑為 C:\Program Files\Microsoft SQL Server\100\Tools\Reporting Services\SharePoint
2. 到 SharePoint Server 上開啟 命令提示字元
3. 執行下面程式
STSADM.EXE -o addwppack -filename "C:\Program Files\Microsoft SQL Server\100\Tools\Reporting Services\SharePoint\RSWebParts.cab" -globalinstall
安裝完後，即可在 MOSS 上使用 Report Explorer 和 Report Viewer。參考來源： Viewing Reports with SharePoint 2.0 Web Parts]]></description>
      <content:encoded><![CDATA[<p>假設在MOSS上想要使用 Reporting Service 又不想做整合模式，可以安裝 SharePoint 2.0 Web Parts 來檢視 Native Mode 的報表管理員內的資料。</p>
<p>安裝指令為:</p>
<p>1. 複製 SQL Server 上的 RSWebParts.cab 到 MOSS Server上，RSWebParts.cab 預設路徑為 C:\Program Files\Microsoft SQL Server\100\Tools\Reporting Services\SharePoint</p>
<p>2. 到 SharePoint Server 上開啟 命令提示字元</p>
<p>3. 執行下面程式</p>
<pre class="brush:js">STSADM.EXE -o addwppack -filename "C:\Program Files\Microsoft SQL Server\100\Tools\Reporting Services\SharePoint\RSWebParts.cab" -globalinstall</pre>
<p><br /><br />安裝完後，即可在 MOSS 上使用 Report Explorer 和 Report Viewer。<br /><br />參考來源： <a href="http://msdn.microsoft.com/en-us/library/ms159772.aspx" target="_blank">Viewing Reports with SharePoint 2.0 Web Parts</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/23698439">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F23698439"></div>]]></content:encoded>
      <pubDate>Tue, 21 Apr 2009 14:19:49 +0800</pubDate>
      <category><![CDATA[SharePoint]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/23698439#comments</comments>
    </item>
    <item>
      <title><![CDATA[Report Builder 2.0 ClickOnce]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/23614106</link>
      <guid>http://weiyiao.pixnet.net/blog/post/23614106</guid>
      <description><![CDATA[在 SQL Server 2008 SP1 發表之後，Reporting Service 的 Report Builder 也就改成了 2.0 版本，由於 2.0 版本比1.0 好用太多，因此建議更換。不過如果您用的 Reporing Service 是 Native Mode 的話，下面的步驟 1 - 3 請略過。
升級目前的 Reporting Builder 1.0 成為 2.0 的方法：
1. 請先備份此目綠的內容 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\ReportBuilder 。
2. 複製 C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\ReportBuilder 目錄下的所有檔案到 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\ReportBuilder 。
上面的步驟如果不想手動的方式進行，也可在 Microsoft&reg; SQL Server&reg; 2008 Reporting Services Add-in for SharePoint 下載 RB2ClickOnce.msi ，也可達到一樣的效過。
3. 如果是 SharePoint 整合模式的話，假設之前已經安裝了 Microsoft&reg; SQL Server&reg; 2008 Reporting Services Add-in for SharePoint ，若已經有安裝了，請開啟 SharePoint 3.0 管理中心，點選 應用程式管理 頁簽，點選 Reporting Services 的 設定伺服器預設值。 
4. 如果是 Native Mode ，請開啟 報表管理員 的 站台設定。
5. 在 自訂報表產生器啟動 URL 打上 ReportBuilder_2._0_0_0.application 的網址，如果是 SharePoint Mode 請打上 http://&lt;servername&gt;/_vti_bin/ReportBuilder/ReportBuilder_2_0_0_0.application ，如果是 Native Mode 請打上 http://&lt;servername&gt;/ReportServer/ReportBuilder/ReportBuilder_2_0_0_0.application 。
6. 之後即可點選使用報表產生器編輯，即可打開 2.0 的編輯器了。]]></description>
      <content:encoded><![CDATA[<p>在 SQL Server 2008 SP1 發表之後，Reporting Service 的 Report Builder 也就改成了 2.0 版本，由於 2.0 版本比1.0 好用太多，因此建議更換。不過如果您用的 Reporing Service 是 Native Mode 的話，下面的步驟 1 - 3 請略過。</p>
<p>升級目前的 Reporting Builder 1.0 成為 2.0 的方法：</p>
<p>1. 請先備份此目綠的內容 <span style="color: #ff0000;"><strong>C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\ReportBuilder</strong></span> 。</p>
<p>2. 複製 <strong><span style="color: #ff0000;">C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\ReportBuilder</span></strong> 目錄下的所有檔案到 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\ReportBuilder 。</p>
<p>上面的步驟如果不想手動的方式進行，也可在 <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=58edd0e4-255b-4361-bd1e-e530d5aab78f&amp;displaylang=en" target="_blank">Microsoft&reg; SQL Server&reg; 2008 Reporting Services Add-in for SharePoint </a>下載 RB2ClickOnce.msi ，也可達到一樣的效過。</p>
<p>3. 如果是 SharePoint 整合模式的話，假設之前已經安裝了 <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=58edd0e4-255b-4361-bd1e-e530d5aab78f&amp;displaylang=en" target="_blank">Microsoft&reg; SQL Server&reg; 2008 Reporting Services Add-in for SharePoint</a> ，若已經有安裝了，請開啟 SharePoint 3.0 管理中心，點選 應用程式管理 頁簽，點選 Reporting Services 的 設定伺服器預設值。 </p>
<p>4. 如果是 Native Mode ，請開啟 報表管理員 的 站台設定。</p>
<p>5. 在 自訂報表產生器啟動 URL 打上 ReportBuilder_2._0_0_0.application 的網址，如果是 SharePoint Mode 請打上 <strong><span style="color: #ff0000;">http://&lt;servername&gt;/_vti_bin/ReportBuilder/ReportBuilder_2_0_0_0.application</span></strong> ，如果是 Native Mode 請打上 <strong><span style="color: #ff0000;">http://&lt;servername&gt;/ReportServer/ReportBuilder/ReportBuilder_2_0_0_0.application</span></strong> 。</p>
<p>6. 之後即可點選使用報表產生器編輯，即可打開 2.0 的編輯器了。</p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/23614106">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F23614106"></div>]]></content:encoded>
      <pubDate>Fri, 10 Apr 2009 10:50:53 +0800</pubDate>
      <category><![CDATA[SQL]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/23614106#comments</comments>
    </item>
    <item>
      <title><![CDATA[SQL Server 2008 Service Pack 1 發佈了]]></title>
      <link>http://weiyiao.pixnet.net/blog/post/23612256</link>
      <guid>http://weiyiao.pixnet.net/blog/post/23612256</guid>
      <description><![CDATA[MS 在兩天前 4/7 發佈了 SQL Server 2008 Service Pack 1，SP1 提供了下面的新功能
1. 匯集是一種安裝方法，可以整合程式的基底安裝檔案與其 Service Pack 並且使它們以單一步驟安裝。您可以匯集 SQL Server 2008 更新及原始安裝媒體，以便同時安裝原始媒體和更新。下載中心提供的更新安裝文件具有最新描述的匯集處理序。MSDN. 也提供更新安裝文件。
2. 您可以從 [控制台] 中的 [程式和功能] 解除安裝 SQL Server 2008 累計更新或 Service Pack。如需詳細資訊，請參閱更新說明檔中的＜SQL Server 服務安裝概觀＞(英文)。 SQL Server 2008 Service Pack 1 會提供報表產生器 2.0 的 ClickOnce 版本。報表產生器可在以原生模式或 SharePoint 整合模式安裝的 Reporting Services (SSRS) 中使用。如果 SSRS 安裝於 SharePoint 整合模式，您必須安裝增益集 (適用於 SharePoint 的 Microsoft&reg; SQL Server&reg; 2008 報表產生器 2.0 ClickOnce) 以便可以從 SharePoint 站台取得報表產生器 2.0 ClickOnce。如需詳細資訊，請參閱適用於 SharePoint 的報表產生器 2.0 ClickOnce 讀我檔案。
其他相關說明請參考 http://go.microsoft.com/fwlink/?LinkId=147331]]></description>
      <content:encoded><![CDATA[<p>MS 在兩天前 4/7 發佈了 <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&amp;FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19" target="_blank">SQL Server 2008 Service Pack 1</a>，SP1 提供了下面的新功能</p>
<p style="padding-left: 30px;">1. 匯集是一種安裝方法，可以整合程式的基底安裝檔案與其 Service Pack 並且使它們以單一步驟安裝。您可以匯集 SQL Server 2008 更新及原始安裝媒體，以便同時安裝原始媒體和更新。下載中心提供的更新安裝文件具有最新描述的匯集處理序。MSDN. 也提供更新安裝文件。</p>
<p style="padding-left: 30px;">2. 您可以從 [控制台] 中的 [程式和功能] 解除安裝 SQL Server 2008 累計更新或 Service Pack。如需詳細資訊，請參閱<a href="http://go.microsoft.com/fwlink/?LinkId=146927" target="_blank">更新說明檔</a>中的＜SQL Server 服務安裝概觀＞(英文)。 SQL Server 2008 Service Pack 1 會提供報表產生器 2.0 的 ClickOnce 版本。報表產生器可在以原生模式或 SharePoint 整合模式安裝的 Reporting Services (SSRS) 中使用。如果 SSRS 安裝於 SharePoint 整合模式，您必須安裝增益集 (適用於 SharePoint 的 Microsoft&reg; SQL Server&reg; 2008 報表產生器 2.0 ClickOnce) 以便可以從 SharePoint 站台取得報表產生器 2.0 ClickOnce。如需詳細資訊，請參閱<a href="http://go.microsoft.com/fwlink/?LinkId=147301" target="_blank">適用於 SharePoint 的報表產生器 2.0 ClickOnce 讀我檔案</a>。</p>
<p>其他相關說明請參考 <a title="http://go.microsoft.com/fwlink/?LinkId=147331" href="http://go.microsoft.com/fwlink/?LinkId=147331">http://go.microsoft.com/fwlink/?LinkId=147331</a></p>  <div class="more"><a href="http://weiyiao.pixnet.net/blog/post/23612256">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fweiyiao.pixnet.net%2Fblog%2Fpost%2F23612256"></div>]]></content:encoded>
      <pubDate>Thu, 09 Apr 2009 23:47:05 +0800</pubDate>
      <category><![CDATA[SQL]]></category>
      <comments>http://weiyiao.pixnet.net/blog/post/23612256#comments</comments>
    </item>
  </channel>
</rss>