Sometimes there might be a situation when DBA may forget ‘sa’ password and there is no other way to login to SQL Server, in that situation DBA may reset the ‘sa’ password or add another user with SA rights.
To do this, first Stop SQL Server and then start SQL Server with –m option in startup parameter to start SQL in single user mode.
Then login to Windows with Domain Administrator and use sqlcmd utility to connect to sql server. Once connected, write t-sql commands to reset ‘sa’ password or add another domain user with SA rights. After completion, stop SQL Server, remove –m option from startup parameters and restart sql server.
To reset sa password, use the following script.
C:\Users\Administrator>sqlcmd -E -Ssql2k8
1> alter login sa with password = 'password'
2> go
1>
This procedure has been tested with SQL Server 2008, where server was already added to domain.
Subscribe to:
Post Comments (Atom)
-
DISCLAIMER: ANONYMOUS ACCESS IS NOT RECOMMENDED as it may give direct access to your report server or report objects to any one who knows th...
-
There might be some situations when user must be notified that NO RECORD was transferred to destination while executing SSIS Package. There ...
C8F9F828C2
ReplyDeletesms onay
Aşk Acısı Ne Zaman Geçer
Bot Takipçi Atma
Avast Cleanup Aktivasyon Kodu
Ucuz Takipçi
67007B3EF0
ReplyDeletetakipci
velvet swivel accent chair
C4AF5387
ReplyDeleteAntep
Mardin
Gümüşhane
Aksaray
Bilecik
Kilis
Malatya
Şırnak
Bitlis
8529B0C6
ReplyDeleteErgani
Siverek
Manavgat
Başiskele
Yeşilyurt
Bandırma
Altınova
Şahinbey
Midyat
514AF7A0
ReplyDeleteGelibolu
Aliağa
Konyaaltı
Karamürsel
Muratpaşa
Didim
Bismil
Gümbet
Elvankent
0E18E3E3
ReplyDeleteSalihli
Bismil
Şile
Çarşamba
Altındağ
Akseki
Erdek
Adalar
Konak