EmailService 服務無法正常開啟

錯誤訊息,如下:

image

查詢 Event Log 得知,

Event Type:	Error
Event Source: Service1
Event Category: None
Event ID: 0
Date: 2010/07/27
Time: 09:40:13
User: N/A
Computer: L01-SRV-06
Description:
Failed to stop service. System.IO.IOException: The process cannot access the file 'C:\Program Files\LRERP\EmailServiceSetup\log\EmailServer\JobLog 2010-07-27.xml' because it is being used by another process.
at LRComponent.StandardLibaray.PublicFunction.WriteLog(LogType logType, String user, String module, String function, String message)
at EmailService.EmailService.OnStop()
at System.ServiceProcess.ServiceBase.DeferredStop()

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


因為在開啟服務的過程中,記錄檔 JobLog 2010-07-27.xml 被獨佔開啟,且內容也被破壞。

所以,要手動刪除該檔案。



再重新啟動 EmailService Service.

帳套錯誤?

在輸入 AP服務器 資料後,系統回報 帳套錯誤 訊息,為何會有這情形?
(已注意到 DBManager 的註冊工作,是正常了)

image

  1. 先確定 LRERP 虛擬目錄下的子文件夾,是不是也和 LRERP 的 圖示 一樣 !!
    (不是,則重新安裝 Lorom ApplicationServices Setup.msi )
  2. 確定下示圖中的步驟,是可以瀏覽到 Service 的內容。

image

image

(不是,還是需要重新安裝 Lorom ApplicationServices Setup.msi )

命令行中執行 *.sql 的問題 (代參數)

記得在命令行中,利用一些工具程式,可以執行 *.sql 的腳本檔案。
這些工具有 OSQL、SQLCMD,使用範例如下:
osql -S. –U UserID –P 1234 –iRestore_DB03.sql
sqlcmd -S. –U UserID –P "PW" -i Restore_DB03.sql
* 在 Microsoft 相關文件中,提及 OSQL 工具將會在未來被移除,建議要改換 SQLCMD 工具。
近來,工作上的需要,要在 *.sql 的腳本中設定變量,好適用在各種環境中。
不料,卻遇到瓶頸:該如何在 批次用法 中,將參數內容加以代入?
經多方查找後,發現 解決方法:
  1. 需要 SQL 2005 工具:SQLCMD
  2. 批次用例:sqlcmd -S. –U UserID –P "PW" -i test.sql -v cols="count(*)" tablename="trpa00h"
  3. SQL 腳本用例:test.sql 檔案內容
    SET NOCOUNT ON
    Select $(cols) from $(tablename)

CRAXDRT Error Occurred on Server. 438: Object doesn't support this property or method

執行報表預覽時,產生下列錯誤,該如何排除問題?

CRAXDRT

解決方案:移除 Crystal Report 程式,再重新安裝。

Login 錯誤 - DBAlias

在登入系統時,出現下列錯誤訊息,該如何排除問題?

Login_Error

處理步驟如下:

  1. 點選 選擇帳套 右方的更新帳套 鈕,更新帳套清單
  2. 先選用其他帳項目,並登錄系統。
  3. 結束此一帳套後,再重新登錄先前出問題的帳套

即可解決問題。

NaviCat 連線到遠端主機的設定

NaviCat Lite 程式是個連接 MySQL 資料庫的好用工具。

初期架設好程式後,發現到好像只能連線到 Localhost,對於遠端主機的連線,卻是得到錯誤訊息 !!
當時,只想著是不是這是 Lite 版的關係,就不再注意此事。

image

然而,隨著作業上的需要,就不得不要用到工具連線遠端DB,這時先前的問題再次地臨到。

問題還是要解決,試試吧

image

沒想到,解決問題還真簡單!!

Index 的修改

MS SQL 中的 index 內容,若要修改,可以採用下列方式之一處理

  1. 以手動方式,進入 SQL Server Enterprise Manager 中,修改表結構中的 index 。
  2. 採用 SQL 指令來調整:(index 無法用 SQL 直接修改,而是要先刪除再創建新索引)

Drop Index table_name.index_name

Create  Unique  Clustered  Index  index_name on table_name(field1,field2)