EX : Select Right('00000000' + Cast(123 as varchar),8)  > '00000123'

 

參考自 : The Will Will Blog
http://blog.miniasp.com/post/2010/05/T-SQL-Tips-Fixed-Length-Number-with-Zero-Padded.aspx

felixhuang 發表在 痞客邦 留言(0) 人氣()

錯誤訊息 :
ORA-02429: 無法捨棄用來強制實現唯一/主索引鍵的索引
ORA-02429: cannot drop index used for enforcement of unique/primary key


檢查要刪除的Index是否有相依的Constraint,如果有... 先刪除Constraint,再刪除Index
alter table [Table Name] drop constraint [Constraint];
DROP index [Index Name];

felixhuang 發表在 痞客邦 留言(0) 人氣()

[完整錯誤訊息] :
The project was not built due to "Could not delete 'bin/com'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent

[解決方式] :
刪除bin/ or Web-Inf/classes 底下資料夾,或使用 Projcet > Clean 然後重新 Build Project ,如果該資料夾仍無法刪除,可能需要重開機再執行...

felixhuang 發表在 痞客邦 留言(0) 人氣()

[錯誤訊息] :
伺服器: 訊息 5123、 層級 16,狀態 1、 第 1 行
CREATE FILE 嘗試開啟或建立實體檔案 '< 完整路徑的資料庫檔案名稱 >' 時遇到作業系統錯誤 3(The system cannot find the path specified.)。

[解決方式] :
因為資料夾名稱路徑有空白,將資料庫位置改放在其它資料夾,注意資料夾名稱或路徑不能有空白或特殊符號。

 

詳情可參考 : http://support.microsoft.com/?id=836873

felixhuang 發表在 痞客邦 留言(0) 人氣()

原因 : 通常是安裝英文版的office,但是作業系統的地區設置成非英文區域。

在控制台>語言與地區選項(Regional and Language Options) 將自訂改為英文區域。

 

ms server 2003 language

felixhuang 發表在 痞客邦 留言(1) 人氣()