Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 171 Bytes
CREATE DATABASE [DBAUtility]
GO
USE [DBAUtility]
DECLARE @DBOwner nvarchar(max)
SET @DBOwner = SUSER_SNAME(0x01)
EXEC dbo.sp_changedbowner @loginame = @DBOwner