In SQL Server, usernames and passwords are stored in the main database in the sysxlogins table.