2011年2月22日 星期二

SQL Reporting Service - Can't export to any format problem!

一如往常...SQL 2000 Reporting Service正常且默默的執行中
就在昨天使用單位打了電話來ICT Dept. 為什麼今天的reporting service怪怪的...Invoice報表產生後要匯出成pdf的格式時會出現錯誤.....(怎麼會?不是都跑的好好的嗎?) 沒多久又接到另一個單位說reciept的報表也沒辦法匯出....(慘了! Reporting service出事了)

問題來了....SQL 2000 Reporting service在參數設定及view report都是正常運作在電腦畫面上也能看到報表資料....就在我按下export to pdf format就掛了
然後就跳出error畫面 "rsInternalError 報表伺服器發生內部錯誤。請參閱錯誤記錄以取得更多詳細資料。" (按~~這種問題最機車了)
類似的網頁說明 http://msdn.microsoft.com/zh-tw/library/aa337323.aspx
解決的步驟是....
1. 先判斷這個訊息的明確原因,請檢閱位於 D:\SQL Reporting Service\MSSQL\Reporting Services\LogFiles 的報表伺服器記錄 註:路徑會因安裝時的選擇而有所不同!!

2. 透過rskeymgmt tool做備份. (rskeymgmt.exe路徑在C:\Program Files\Microsoft SQL Server\80\Tools\Binn
3. Stop the report server and SQL server
4. Back up reportserver and reportservertempDB
5. Restore the Reportservertempdb database from the previous backup
6. Restart report server and SQL server

Reporting service的報表匯出功能又可以正常work了...呼!!

Google橫式廣告