check sql server default password code example
Example 1: what is the default password for sql server sa
ALTER LOGIN [sa] ENABLE
Example 2: what is the default password for sql server sa
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 2