手机看片精品高清国产日韩,色先锋资源综合网,国产哺乳奶水91在线播放,乱伦小说亚洲色图欧洲电影

幫助中心 >  技術(shù)知識庫 >  網(wǎng)站相關(guān) >  建站知識 >  IIS“數(shù)據(jù)庫連接出錯[代碼:01],請檢查數(shù)據(jù)庫鏈接文件中的連接字串”錯誤的解決辦法

IIS“數(shù)據(jù)庫連接出錯[代碼:01],請檢查數(shù)據(jù)庫鏈接文件中的連接字串”錯誤的解決辦法

2015-10-29 15:59:59 13968

用的win2003+iis6.0系統(tǒng),運(yùn)行的asp+access網(wǎng)站,一直都正常著了,用網(wǎng)上那個垃圾清理程序清了一下垃圾,結(jié)果就不能運(yùn)行asp程序了。報錯誤“數(shù)據(jù)庫連接出錯[代碼:01],請檢查數(shù)據(jù)庫鏈接文

他執(zhí)行的清理垃圾代碼為以下批處理文件:

@echo off 
echo 正在清除系統(tǒng)垃圾文件,請稍等...... 
del /f /s /q %systemdrive%*.tmp 
del /f /s /q %systemdrive%*._mp 
del /f /s /q %systemdrive%*.log 
del /f /s /q %systemdrive%*.gid 
del /f /s /q %systemdrive%*.chk 
del /f /s /q %systemdrive%*.old 
del /f /s /q %systemdrive% ecycled*.* 
del /f /s /q %windir%*.bak 
del /f /s /q %windir%prefetch*.* 
rd /s /q %windir% emp & md %windir% emp 
del /f /q %userprofile%cookies*.* 
del /f /q %userprofile% ecent*.* 
del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*" 
del /f /s /q "%userprofile%Local SettingsTemp*.*" 
del /f /s /q "%userprofile% ecent*.*" 
echo 清除系統(tǒng)LJ完成! 
echo. & pause
問題出在rd這句上面,這一句上。將臨時文件夾Temp用RD命令刪除,再用MD創(chuàng)建臨時文件夾,這樣會導(dǎo)致權(quán)限問題!而如果分區(qū)格式是NTFS格式,這樣做,Temp目錄的權(quán)限肯定會改變,由于數(shù)據(jù)庫操作時需要使用Temp目錄作緩存進(jìn)行數(shù)據(jù)交換,當(dāng)權(quán)限不足時就出現(xiàn):“數(shù)據(jù)庫連接出錯,請檢查連接字串。”的錯誤提示。

解決的辦法為:

windows 文件夾,右擊點(diǎn)temp文件夾選屬性,選擇安全

users

給這個用戶組特別權(quán)限和寫入讀取權(quán)限。

這樣問題就解決了!



提交成功!非常感謝您的反饋,我們會繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問題: