Summary
Key Points:
原文
You have been permanently redirected here from the old URL (https://www.pineymountain.com/instructions/TroubleShootingProcedures.html).
The most common problems experienced occur immediately after installation as a result of an incorrectly installed database or Data Source Name (DSN). A Data Source Name is used by ODBC (Open Database Connectivity) drivers, which connect a program to a database. This works much like a printer driver, which connects a program to a printer. If ODBC errors are reported by the program, then the following steps should be taken to verify that the DSN for your program is correctly configured.Determine the DSN for your program. See Configuration Settings for this information.
Click on tart?and then un? A dialog box should open up which will allow you to enter a command to execute. In the space provided, type dbcad32?(without the quote marks) and press Enter.
The ODBC Data Source Administrator should appear. The screen should look similar to this:
Figure 1: ODBC Data Source Administrator
If the DSN you found in Step 1 shows up in this list, then click on it and then click on onfigure? If you do not see it in this list, click on the ystem DSN? tab. If the DSN you found in Stop 1 shows up in this list, then click on it and then click on onfigure? If you still have not found the DSN you found in Step 1, then click on this link: Adding a New Data Source Name. Otherwise, a configuration screen should show up, looking similar to this:
Figure 2: ODBC Microsoft Access Setup
The path and name of the database that your program expects to open and use appears in this screen immediately above the button, elect? If the path specified in this field is incorrect, click on elect? which will open up a elect Database?dialog. This will look similar to this:
Figure 3: Select Database
Using the provided controls, navigate to the location (on your computer or on your network) where the database was installed. Refer to Configuration Settings for the name of the database file used by your product. You should find the file at this location. If you do, click on the file and then K?
The previous screen, DBC Microsoft Access Setup?will appear. Click OK.
The previous screen, DBC Data Source Administrator?will appear. Click OK.
Try running your program again. If you were experiencing a problem caused by an incorrectly configured Data Source, then the program should work normally. If you experience more ODBC errors, then do the following:
Referring to Configuration Settings, locate the name and location of the INI file for your program.
Using Windows Explorer, navigate to the location on your computer where INI files and edit the INI file for your program. You can use notepad.exe for this task.
Referring to Configuration Settings, locate the main section header for your program. This section will appear in the INI file, which should now be open in an editor.
You may find a setting value that appears this way: audit= If the setting doesnî–¹ appear in the INI file, add it, making sure that you add it to the main section.
Example where the main section header is earning and Working Styles?
[Learning and Working Styles]
DatabaseName=VLSI Database
DatabaseUser=
DatabasePassword=
Proprietary=C:\VLSI
VideoVersion=No
Audit=
Now, add c:\audit.txt after Audit=
[Learning and Working Styles]
DatabaseName=VLSI Database
DatabaseUser=
DatabasePassword=
Proprietary=C:\VLSI
VideoVersion=No
Audit=c:\audit.txt
Save the updated file and close the notepad editor window.
Run your program and perform the tasks that you did before when the ODBC error occurred. When the errors happen, detailed information will be saved in the file, C:\audit.txt? Send this file, either by disk or by email, to Piney Mountain Press, Inc. where it can be analyzed to determine the exact nature and cause of the problem. If further information or action is needed, Piney Mountain Press will contact you.
When the problem has been solved and a fix determined, you will be contacted by Piney Mountain Press with either instructions or an update (as appropriate) to fix your problem.
中文
寫這篇文章時,我花了不少時間去研究ODBC的運作原理,還有如何一步步引導用戶去檢查和修正DSN的設定。記得當時還特別擔心,怕自己寫得太複雜,讓用戶看了更頭大。所以,我盡量把步驟拆得很細,甚至還加了圖示的說明,希望能讓整個過程更直觀一些。
寫到中間那段關於INI文件的修改時,我其實有點猶豫,因為這部分涉及到直接修改系統文件,萬一用戶操作失誤,可能會引發其他問題。但為了讓文章更完整,我還是硬著頭皮寫下去了,只是特別提醒用戶要小心操作,並且建議他們在修改前先備份文件。
現在回頭看這篇文章,雖然覺得有些地方可以寫得更簡潔,但整體來說,我還是挺滿意的。畢竟,這篇文章確實幫助了不少用戶解決了他們的問題,甚至還收到了一些感謝的郵件,這讓我覺得當時的努力是值得的。
寫技術文章真的是一種挑戰,但也是一種成長。每次寫完,我都會覺得自己對相關技術的理解又更深了一層。雖然過程有點累,但看到自己的文字能幫助到別人,那種成就感還是很棒的。
步驟 | 說明 |
---|---|
確認DSN | 檢查程式所用的資料來源名稱是否正確配置,參考設定參數。 |
啟動ODBC管理員 | 點選開始然後執行,輸入 `dbcad32` 來開啟ODBC資料來源管理員。 |
檢查清單 | 在ODBC管理員中確認DSN是否列在清單中,如無則查看系統DSN頁籤。 |
確認資料庫路徑 | 確保顯示的資料庫路徑和名稱正確,若不正確請選擇正確的資料庫檔案。 |
編輯INI檔案 | 如仍有ODBC錯誤,編輯相應程式的INI檔案並新增audit=設定以便追蹤錯誤。 |
Reference Articles
針對程序進行疑難排解- Visual Basic
下列範例會定義兩個程序,這些程序會依值採用陣列變數,並在其元素上運作。 程序 increase 只會將一個陣列新增至每個元素。 程序 replace 會將新的陣列指派 ...
Source: Learn Microsoft針對DNS 相關啟用問題進行疑難排解的指導方針
如果用戶端找不到您現有的KMS 主機,請使用下列程式針對您的路由組態進行疑難排解。 這些程序會從最簡單到最複雜的方式排列。 確認DNS 伺服器的基本IP 連線 ...
Source: Learn Microsoft疑難排解BPEL 程序的執行作業
本主題僅適用於IBM Business Automation Workflow Advanced 配置。 疑難排解BPEL 程序的執行作業. 線上編輯. 這說明BPEL 程序執行一般問題的解決方案。
Source: IBM錯誤訊息:此Thunderbolt™應用程式不再使用,且可安全卸載
解決方法. 在首次推出Thunderbolt 3系統時發佈的Intel® Thunderbolt™控制器驅動程式是基於不同的驅動程式/應用程式模型。 若要解決錯誤訊息/問題,請按照以下步驟操作.
Source: Intel疑難排解Business Process Choreographer Explorer 或 ...
使用此資訊來解決與Business Process Choreographer Explorer 或Business Process Archive Explorer 相關的問題。
Source: IBMSession Manager 疑難排解 - AWS Documentation
此錯誤通常表示執行的Session Manager 工作者程序太多,且基礎作業系統已達到限制。有兩個選項可用來解決此問題。 解決方案A:提高作業系統 ...
Source: Amazon AWS Documentation疑難排解
請使用此處提供的指標來疑難排解您在安裝和使用Trident 時可能遇到的問題。 一般疑難排解. 如果Trident pod無法正常啟動(例如、當Trident pod卡 ...
Source: NetAppePSA、PSA 錯誤代碼和故障診斷參考表(2000-4NNN 系列)
疑難排解 系統時,最常見的工作之一是更新系統基本輸入/輸出系統(BIOS),也稱為系統設定。 強烈建議您在執行診斷程式之前,先將BIOS 更新為可用的最新版本。如需更多 ...
Source: Dell
Related Discussions