sql query to get username and password code example Example: find sql server username and password // In mssql all logins can be found under Security>Logins