close

有一台沒上去看過的db server,因為空間不足,需要去壓縮log file,

但是查看db的Properites時,出現

Property Owner is not available for Database '[db_name]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.

原因應該是這個db之前設置的owner可能是某人的AD帳號,但是那個人離職了.

 

Solution:

--更改db的owner

USE db_name
GO

EXEC sp_changedbowner 'sa'

GO

Property Owner is not available for Database '[DBName]'

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 泡麵要趁熱才好吃 的頭像
    泡麵要趁熱才好吃

    健忘症補救株式會社

    泡麵要趁熱才好吃 發表在 痞客邦 留言(0) 人氣()