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]'
全站熱搜