SQL Server: Add logins from command prompt
To start SQLSERVER instance in a single user mode and shortens the startup time
SQLSERVR -m–cTo add a Windows user to the sysadmin fixed server role in SQL Server 2005 as a failure recovery mechanism
SQLCMD -s computername -E
Exec sp_addsrvrolemember @loginname=’computername\local account’
GO
Ref:
- http://msdn.microsoft.com/en-us/library/ms180965(v=sql.105).aspx
- http://support.microsoft.com/kb/937682
- Paul Copley, Sr. DBA
Comments
Post a Comment