default sa password sql server 2017 code example
Example 1: what is the default password for sql server sa
ALTER LOGIN [sa] WITH PASSWORD='newpassword', CHECK_POLICY=OFF
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