블로그 이미지
bedbmsguru

Notice

Recent Comment

Recent Trackback

Archive

calendar

    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
  • 32,986total
  • 1today
  • 12yesterday
2013.01.23 11:38 SQL SERVER

DB owner가 누구인지 확인하는 쿼리

SELECT  SUSER_SNAME(owner_sid)
FROM    sys.databases
WHERE   name = 'yourDatabase';


--owner를 sa로 변경

ALTER AUTHORIZATION ON DATABASE::yourDatabase TO sa;




 

posted by bedbmsguru