About 18,600,000 results
Open links in new tab
  1. How would I know the password of my Microsoft SQL server

    Feb 23, 2024 · You need to switch your SQL server to SQL authentication mode (see here https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode?view=sql-server-ver16) and then create a user with login and password which you'd use in your JDBC connection string.

  2. SQL Server Username and Password - Stack Overflow

    Jun 19, 2018 · You supply a username (uid) and password that match a server login. This login in turn maps to a user in one (or more!) databases hosted by that server. You can see the user mappings by opening Sql Server Management Studio and connecting to your server.

  3. Optimal query for checking login details(username and password)

    Nov 27, 2012 · Hopefully 'password' is actually a salted hash of the user's password, and you're passing both literals from your application as parameters to a prepared statement. Assuming that you have an index on (username, password), the "optimum" would be: SELECT * FROM login_details WHERE username = ? AND password = ?

  4. How do I retrieve my MySQL username and password?

    SELECT * FROM mysql.user; Reset password; UPDATE mysql.user SET Password=PASSWORD('[password]') WHERE User='[username]';

  5. How to match username and password in database in SQL

    May 17, 2024 · In this article, we are going to check the credentials (username and password) entered by the user. If credentials are matched from the database entries, the user can enter into another page and if credentials are incorrect then it displays “Sorry Invalid Username and …

  6. Listing the existing SQL Server Logins and Users

    Try this one - this will list users, objects and the permissions that they have on those objects: SELECT p.name, o.name, d.* FROM sys.database_principals AS p JOIN sys.database_permissions AS d ON d.grantee_principal_id = p.principal_id JOIN sys.objects AS o ON o.object_id = d.major_id You should also check out the sys.fn_my_permissions function:

  7. Check if a user exists in a SQL Server database

    Jan 11, 2016 · I use SUSER_ID() and USER_ID() for this kind of things: -- Check SQL Server Login IF SUSER_ID('SomeLogin') IS NULL CREATE LOGIN SomeLogin WITH PASSWORD = 'SomePassword'; -- Check database user IF USER_ID('SomeUser') IS NULL CREATE USER SomeUser FOR LOGIN SomeLogin;

  8. How to Recover a SQL Server Login Password

    Aug 28, 2009 · I will describe a simple method anyone can use to obtain lost password information for a SQL Server login.

  9. SQL Server Database Security – Logins and Users

    Nov 10, 2022 · Using Windows Authentication, SQL Server verifies the account name and password when a user connects using a Windows user account. This indicates that Windows has verified the user’s identity. SQL Server does not handle the …

  10. Forgot SQL Server Password - Stack Overflow

    Oct 25, 2008 · If there's no other user with sysadmin privileges but sa, SQL Server should be restarted with -m option for single-user mode. Then you can connect to this SQL Server instance and you're able to add other users with sysadmin role or to execute exec sp_password.

  11. Some results have been removed
Refresh