Answer 5
You should be memeber of the server roles either "SYSADMIN" or "SECURITYADMIN" to unlock the 'sa' login.
IF
IS_SRVROLEMEMBER('sysadmin')= 1
print'Current user''s login is a member of the sysadmin role'
ELSE
IFIS_SRVROLEMEMBER('sysadmin')= 0
print'Current user''s login is NOT a member of the sysadmin role'
ELSE
IFIS_SRVROLEMEMBER('sysadmin')ISNULL
print'ERROR: The server role specified is not valid.'
IF
IS_SRVROLEMEMBER('securityadmin')= 1
print'Current user''s login is a member of the securityadmin role'
ELSE
IFIS_SRVROLEMEMBER('securityadmin')= 0
print'Current user''s login is NOT a member of the securityadmin role'
ELSE
IFIS_SRVROLEMEMBER('securityadmin')ISNULL
print'ERROR: The server role specified is not valid.'