問題現(xiàn)象:用友軟件系統(tǒng)數(shù)據(jù)庫UfNoteSys質(zhì)疑?
系統(tǒng)數(shù)據(jù)庫UfNoteSys質(zhì)疑
此種問題需要修復(fù)數(shù)據(jù)庫置疑。請先停用數(shù)據(jù)庫,把關(guān)于出納的物理文件都復(fù)制下。請參照如下語句嘗試修復(fù):
說明:如數(shù)據(jù)庫存放路徑為:C:\用友T6SOFT\CNGL\UfNoteData\Data,執(zhí)行腳本前先停止數(shù)據(jù)庫服務(wù),然后刪除此路徑下的UfNoteSys_log.ldf文件,再啟用數(shù)據(jù)庫服務(wù)執(zhí)行腳本*/
use master
go
sp_configure 'allow updates',1
go
reconfigure with override
go
update sysdatabases set status=-32768 where dbid=DB_ID('UfNoteSys')
go
dbcc rebuild_log('UfNoteSys',C:\用友T6SOFT\CNGL\UfNoteData\Data\UfNoteSys_log.ldf')
go
sp_dboption 'UfNoteSys','dbo use only','false'
go
sp_configure 'allow updates',0
go
reconfigure with override
go
--請參照此方法修復(fù)置疑數(shù)據(jù)庫問題。