2013年7月15日 星期一
How to setting your Windows Server 2012 desktop ICON
If someone facing the same issue, please try this command line at the below.
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
2011年4月14日 星期四
SQL Server 2000 發生 Error 7391
在安裝 Windows Server 2003 或 Windows XP Service Pack 2 之後,對連結伺服器執行分散式的交易時,您可能會在 SQL Server 2000 中收到 7391 錯誤訊息
- 請確定 MSDTC 服務的 登入身分] 帳戶是 網路服務 帳戶。要這麼做,請您執行下列步驟:
- 按一下 [開始],然後按一下 [執行]。
- 在 [執行] 對話方塊鍵入 Services.msc,再按 [確定]。
- 在 [服務] 視窗尋找在 [名稱] 之下 分散式交易協調器 服務在右邊窗格中。
- 在 登入身份 欄看到 [登入身分] 帳戶是否為 網路服務 或 本機系統]。
如果 登入身分] 帳戶 網路服務 前往步驟 2。如果 登入身分] 帳戶是 本機系統 帳戶,繼續執行這些步驟。 - 按一下 [開始],然後按一下 [執行]。
- 在 [執行] 對話方塊輸入 cmd,再按 [確定]。
- 在的命令提示字元輸入 [Net 停止 msdtc 停止 MSDTC 服務]。
- 在的命令提示字元輸入 [Msdtc –uninstall 移除 MSDTC]。
- 在的命令提示字元輸入 [regedit 以開啟 [登錄編輯程式]。
- 在 [登錄編輯程式] 中,找出下列機碼:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC登錄機碼。
刪除此機碼。 - 結束 「 登錄編輯程式 」。
- 在的命令提示字元輸入 [Msdtc –install 來將 MSDTC 安裝]。
- 在的命令提示字元輸入 [網路啟動 msdtc 啟動 MSDTC 服務]。
注意 MSDTC 服務的 登入身分] 帳戶設為 [網路服務 帳戶。
- 啟用 MSDTC 允許網路交易。要這麼做,請您執行下列步驟:
- 按一下 [開始],然後按一下 [執行]。
- 在 [執行] 對話方塊鍵入 dcomcnfg.exe,再按 [確定]。
- 在 [元件服務] 視窗中展開 [元件服務]、 展開 [電腦,然後再展開 [我的電腦]。
- 用滑鼠右鍵按一下 [我的電腦,然後按一下 [內容]。
- 在 [我的電腦內容] 對話方塊方塊按一下 [[MSDTC] 索引標籤上的 [安全性設定]。
- 在 [安全性設定] 對話方塊按一下以選取 [網路 DTC 存取] 核取方塊。
- 若要以便從遠端電腦在此電腦上執行的分散式的交易按一下以選取 [允許輸入] 核取方塊。
- 若要以便從這台電腦在遠端的電腦上執行的分散式的交易按一下以選取 [允許輸出 核取方塊。
- 交易管理員通訊] 群組下面按一下以選取 [無驗證所需 選項。 設定用戶端和遠端系統上的 [否驗證需要]。
- 在 [安全性設定] 對話方塊中,按一下 [確定]。
- 在 [我的電腦內容] 對話方塊中,按一下 [確定]。
- 設定 Windows 防火牆包括 MSDTC 程式,以及包含連接埠 135 與例外狀況。要這麼做,請您執行下列步驟:
- 按一下 [開始],然後按一下 [執行]。
- 在 [執行] 對話方塊輸入 Firewall.cpl,],然後再按一下 [確定]
- 在 控制台中 中, 按兩下 [Windows 防火牆]。
- 在 [Windows 防火牆] 對話方塊方塊按一下 [例外] 索引標籤上的 [新增程式]。
- 在 [新增程式] 對話方塊按一下 [瀏覽] 按鈕,然後再找出 Msdtc.exe 檔案]。預設情況下,檔案會儲存在 < 安裝磁碟機 >: \Windows\System32 資料夾。
- 在 [新增程式] 對話方塊中,按一下 [確定]。
- 在 [Windows 防火牆] 對話方塊按一下以選取 [程式和服務 清單中的 [msdtc 選項。
- 在 [例外] 索引標籤上,按一下 [新增連接埠]。
- 在 [新增連接埠] 對話方塊輸入 [連接埠號碼] 文字方塊中的 [135,然後再按一下以選取 [TCP] 選項]。
- 在 [新增連接埠] 對話方塊在 [名稱] 文字方塊中輸入例外狀況的名稱,再按 [確定]。
- 在 [Windows 防火牆] 對話方塊選取用於 [程式集] 及 [服務] 清單中的步驟 j 的例外狀況的名稱,再按 [確定]。
- 測試攻擊從主機伺服器到遠端伺服器和遠端伺服器到主機伺服器使用 netbios 名稱 (伺服器名稱,但不在網域)。 Microsoft 分散式交易協調器會使用 netbios 中的不完全符合規定的網域名稱名稱找不到伺服器。如果名稱解析失敗時,分散式的交易將會失敗。 如果 Ping 使用 netbios 名稱失敗,請參閱以下知識庫文件:172218 Microsoft TCP/IP 主機名稱解析順序
2011年4月13日 星期三
MMC Console 出現異常的處理方式 ex:compmgmt.msc & SQL Server Enterprise Manager.MSC
今日再進行資料庫事項的時候
處理「該記憶體不能為read或written」辦法
MsXmL3.dll ↓↓↓↓
MS:Microsoft
XML:一種The Extensible Markup Language XML是一種簡單的數據存儲語言
MSXML3 = 微軟XML 版本3
2011年4月7日 星期四
禁止$分享的方式
2010年12月10日 星期五
Excel 資料筆數超過 65536 匯入 MS SQL 之方式
- 最大資料列筆數是 65,536 列。Excel 匯出選項會檢查此數值,若超過此限制,會在 Excel 中顯示錯誤。
- 最大資料行數是 256 行。Excel 匯出選項會檢查此數值,若超過此限制,會在 Excel 中顯示錯誤。
要解決此問題,可能有幾個方法:
- 當資料筆數會超過 65,536 筆數時,採用新增工作表的方式,讓每個工作表的資料列筆數,不會超過 65,536 筆數的軟體限制。
- 改用 Excel 2007 ,存檔成 *.xlsx 的檔案格式,也可以解決此問題。
將資料匯出成 *.csv 檔案格式,分隔符號選擇為:[逗號{,}],再利用 Excel 2007 開啟存取,也可以正常運作。
以下是使用 SSIS ,將資料匯入到 Excel 2003(*.xls)所遇到錯誤:
Excel 2003(*.xls)至多僅能達到 65,536 列。
改用新版本的 Excel 2007(*.xlsx) 也可以改善這些問題,舉例來說:
- 可支援到 1,048,576 筆資料列。
- 可支援到 16,384 資料行。
- Excel 2007 讓試算表的容量擴充到超過 1 百萬資料列和 1 萬 6 千資料行。

在 Integration Services 中,要與 Excel 2007 連線時,可能要注意以下幾件事情:
- Excel 2007 與 Excel 2003 兩個版本的檔案格式不同,這可能表示我們無法再使用[Microsoft Jet 4.0 OLE DB Provider]來與 Excel 2007 進行連線。
- 在 Microsoft Office 2007 中,發行了新版本的 OLD DB 驅動程式:[Microsoft Office 12.0 Access Database Engine OLE DB Provider],縮寫為 ACE。
新版本的 ACE 驅動程式,可以稍作屬性的調整,就可以與 Excel 2007 及 Access 2007 連線,請各位參考以下的整理:
- 在[SQL Server 匯入和匯出精靈]中,若是要使用 Excel 2007 作來資料來源或是目的地,則需要利用[Microsoft Office 12.0 Access Database Engine OLE DB Provider],點選[屬性],在[資料連結內容]視窗中,點選[全部]頁面,點選[Extended Properties],輸入以下的資料:Excel 12.0 。
- 在設計 SSIS 封裝時,若是要使用 Excel 2007 作來資料來源或是目的地,需要使用[OLE DB 連接管理員],然後在[提供者]畫面,選擇[Microsoft Office 12.0 Access Database Engine OLE DB Provider],請記得,一樣需要設定[Extended Properties]的內容值為:Excel 12.0。
- 至於[Excel 連接管理員]、[Microsoft Jet 4.0 OLE DB Provider]這類的資料庫驅動程式,則仍然適用於與 Excel 2003 (*.xls)進行連線。
筆者提供與利用[SQL Server 匯入和匯出精靈]與 Excel 2007 連線的設定步驟:
0. 請事先利用 Excel 2007 在 C:\ 中,建立 Ex01.xlsx 的檔案。
1. 在資料來源或是目的地的驅動程式部分,選擇[Microsoft Office 12.0 Access Database Engine OLE DB Provider]。

2. 點選[屬性],在[資料連結內容]畫面,點選[資料來源],輸入:C:\Ex01.xlsx。
3. 點選[全部]頁面,點選[Extended Properties],點選[編輯內容值],輸入以下的資料:Excel 12.0。

4. 再點選回[連線]頁面,點選[測試連線],正常應該可以看到測試連線成功的訊息,請按下[確定]\[確定],完成與 Excel 2007 的連線設定,按[下一步]。
若是沒有事先建立 Excel 2007(*.xlsx)檔案時:
如果您的需求是讓 SSIS 於執行時,當下由系統動態創建此 *.xlsx 檔案,無須事先建立此 *.xlsx 檔案。
請將輸入的副檔名修改為 *.xlsb 檔案格式,就可以讓系統自行動態建立此檔案,也能夠正常開啟運作。
Excel 2007 的檔案格式
- Excel 2007 支援多種的檔案格式,依據預設值,副檔名是 *.xlsx,這是一種以 XML 為基礎的全新檔案格式,稱為 Microsoft Office Open XML Formats,具備了數項優點:壓縮檔案、改良的受損檔案復原、輕鬆偵測包含巨集的文件、對個人資訊提供更理想的隱私權保護與更嚴密的控管、更完善地整合並互通商業資料等等,檔案大小也會比(*.xls)來的更小;此外,由於檔案格式屬於 XML 架構格式,再加上開放、免權利金的授權,讓我們開發人員更容易就能建置與採用 Excel 2007 文件內容及中繼資料的解決方案。
- Excel 2007 二進位檔案格式(BIFF12),其副檔名是:*.xlsb,這是 Excel 2007 專屬的二進位檔案格式(BIFF12);與先前的版本之二進位檔案格式,副檔名是:*.xls 是不相容的,例如:在 Excel 5.0/95 版本是(BIFF5),在 Excel 97-2003 版本是(BIFF8)。
參考資料:
Excel 2007 中支援的檔案格式
http://office.microsoft.com/zh-tw/excel/HP100141031028.aspx
將 Office Excel 2007 與舊版 Excel 搭配使用
http://office.microsoft.com/zh-hk/excel/HA100775613076.aspx
新副檔名與 Office XML Formats 簡介
http://office.microsoft.com/zh-tw/help/HA100069351028.aspx
Excel 2007 的規格及限制
http://office.microsoft.com/zh-tw/excel/HP100738491028.aspx
Improving Performance in Excel 2007
http://msdn2.microsoft.com/zh-tw/library/aa730921.aspx#Office2007excelPerf_BigGridIncreasedLimitsExcel
無法匯入超過 65,536 列是文字檔到 Excel 97、 Excel 2000、 Excel 2002 和 Excel 2003
http://support.microsoft.com/kb/120596/
Summary of capability limitations in Excel 97
http://support.microsoft.com/kb/296053/en-us
匯出至 Excel (*.xls)的限制
http://technet.microsoft.com/zh-tw/library/aa337207.aspx
Limitations with Exporting to Excel(*.xls)
http://msdn2.microsoft.com/en-us/library/aa337207.aspx
資料來源:http://blog.csdn.net/Johnson_hejun/archive/2008/11/12/3284582.aspx
2010年8月13日 星期五
Windows Server 啟動 MySQL 出現 1067 Error
2010年6月29日 星期二
about Windows SAM File
光碟啟動,安裝第二套系統(NT/2000/XP/03均可),進入第二套系統,刪除SAM文件
方法二 (很建議)
取下硬碟,掛到另一台電腦上,刪除SAM文件
方法三 (沒A磁碟機就搞笑,所以有USB軟碟機是很正常的事情,只是快買不到了)
利用NTgFSDOS(在網上可搜尋到這類軟體)軟碟啟動電腦,刪除SAM文件
方法四 (現在應該找不到98嚕)
如果你的WINNT夾在FAT分區上,也可以直接利用98啟動碟/98光碟啟動電腦,刪除SAM文件。
2010年5月23日 星期日
Windows Logon Event ID Log Type
| Event ID | Description |
|---|---|
528 | Successful logon. |
529 | Logon failure. Unknown user name or bad password. |
530 | Logon failure. Account logon time restriction violation. |
531 | Logon failure. The account is currently disabled. |
532 | Logon failure. The specified user account has expired. |
533 | Logon failure. The user is not allowed to log on at this computer. |
534 | Logon failure. The user has not been granted the requested logon type at this computer. |
535 | Logon failure. The specified account’s password has expired. |
536 | Logon failure. The NetLogon component is not active. |
537 | Logon failure. An unexpected error occurred during logon. |
538 | User logoff. This event is generated when the logoff process is complete. A logoff is considered complete when the associated logon session object is deleted, which occurs after all tokens associated with the logon session are closed. This can take an arbitrarily long time; this event should not be used to calculate the total logon duration. Instead, use event 551. |
539 | Logon failure. Account locked out. |
540 | Successful network logon. |
541 | IPSec security association established. |
542 | IPSec security association ended. Mode: Data Protection (Quick mode). |
543 | IPSec security association ended. Mode: Key Exchange (Main mode). |
544 | IPSec security association establishment failed because peer could not authenticate. The certificate trust could not be established. |
545 | IPSec peer authentication failed. |
546 | IPSec security association establishment failed because peer sent invalid proposal. |
547 | IPSec security association negotiation failed. |
548 | Logon failure. Domain security identifier (SID) is inconsistent. This event is generated when a user account from a trusted domain attempts to authenticate, but the domain SID does not match the SID stored in the Trusted Domain Object (TDO). |
549 | Logon failure. All SIDs were filtered out. During authentication across forests, SIDs corresponding to untrusted namespaces are filtered out. This event is generated when all SIDs are filtered. This event is generated on the Kerberos Key Distribution Center (KDC). This event is not generated on Windows Server 2003. |
550 | Notification message that can indicate a possible denial-of-service attack. |
551 | User-initiated logoff. This event is generated when the user initiates the logoff process. When the logoff process is complete, event 538 is logged. |
552 | Successful logon. This event is generated when a user logs on with explicit credentials while already logged on as another user. This event is logged when using the RunAs tool. |
553 | Logon failure. This event is generated when an authentication package detects a replay attack. |
