問題 (1) . 安裝SQL Server 2000報錯 : Command line option syntax error. Type Command /? for Help.
解決方法:
引起這問題的原因是,SQLServer的安裝文件被放在了中文目錄下.
將SQLServer的安裝文件,拷到英文目錄,安裝就OK
比如將:
“D:/Sqlserver安裝盤”中的"安裝盤"去掉。就行了!
如果還是不行,
看看您的用戶名是不是中文的,改成英文的吧。這個用戶名指的就是您登錄windows的時候使用的用戶名,系統默認的是administrator。
您不捨的修改這個用戶名?那就重新創建一個英文的用戶吧,用這個用戶登錄然後安裝就行了。
問題 (2) . 安裝SQL Server 2000報錯 : PackageForTheWeb Error,This program is used internally by PackageFromTheWeb.
It should not be executed directly.
安裝SQL2000數據庫,安裝到“安裝程序正在安裝Microsoft數據訪問組件(MDAC)”後,提示錯誤如下:PackageForTheWeb Error,This program is used internally by PackageFromTheWeb. It should not be executed directly.安裝程序配置服務器失敗。參考服務器錯誤日誌和C:/WINNT/sqlstp.log 瞭解更多信息。
隨後,sql2000會繼續安裝一段程序,但完畢後,菜單里根本沒有sql菜單,安裝失敗。重複安裝了很多次,結果一樣無法正常安裝。
很多方法試過了,包括清理註冊表,清空安裝目錄等等,都不能解決這個錯誤。最後,偶在國外的網站上看到一篇文章-URL:
“
If you really are installing just the components then providing you have
done a dependancy check within InstallShield, things should be OK.
If however, you are trying to deploy MSDE as part of your package then
everything I can find on the matter says "Just Don't Do It". Instead
either:
1. Give the users instructions to install the MSDE package from the CD
if required and then a little application to setup and configure your
database requirements.
2. Or, download the MSDE / SQL Deployment Toolkit and build a separate
installation for your requirements using the templates provided. You can
then call that package from within your own InstallShield project.
”
意思就是兩個建議:
一是從CD光盤重新安裝;
二是從微軟官方網站重新下載mssql2000安裝原程序,重新安裝。
也就是說本地備份的sql2000安裝程序已經被病毒感染並破壞了,需要重新下載或從CD光盤裏安裝。
建議你立即掃描本地硬盤,包括移動U盤,移動硬盤,進行全面殺毒;病毒殺完後再重新安裝。