USE master GO CREATE LOGIN [domain\username] FROM WINDOWS WITH DEFAULT_DATABASE = [Master] GO EXEC sp_addsrvrolemember @loginame=N'domain\username', @rolename=N'sysadmin' GO msdn.microsoft.com/en-us/library/ms186320.aspx