backup log DBName with no_log
sp_changeobjectowner 를 사용하여 많은 소유자를 변경하는 일은 많은 시간을 필요로합니다. 이럴때는 시스템 테이블을 직접 변경할 수 있습니다. sp_configure 'allow_updates', 1 reconfigure with override Begin Tran update sysobjects set uid =1 where uid <> 1 commit sp_configure 'allow_updates', 0 reconfigure with override 참고 사이트 http://www.ilovedata.net
declare @userid varchar(50); declare aCursor CURSOR for select top 10 userid from login; open aCursor fetch next from aCursor into @userid; while @@fetch_status = 0 begin print @userid; fetch next from aCursor into @userid; end CLOSE aCursor; deallocate aCursor;