About 801,000 results
Open links in new tab
  1. sql server - How do I enable Microsoft SQL account ... - Stack Overflow

    Apr 26, 2020 · First, Go to SSMS > Server > Security > Logins. Then Right-click and select Properties. Next Log in using Windows Authentication to be able to make this change. After that In the Login Properties screen, select Status on the left side. And finally Change the Login option from Disabled to Enabled. Click OK. This should fix the problem.

  2. sql server - How to enable a user using a script? - Database ...

    Oct 30, 2015 · To enable all Users who are disabled within the user database Use databasename GO SELECT 'GRANT CONNECT TO [' + SU.name + '];' FROM sys.database_principals DP INNER JOIN sys.sysusers SU ON dp.principal_id = SU.uid WHERE DP.TYPE IN ('G','U') AND SU.hasdbaccess = 1 GO Sample Output GRANT CONNECT TO [Domain\User1]; GRANT CONNECT TO [Domain ...

  3. SQL Server – How to Enable a Disabled SQL Server Login - Sql

    Jun 24, 2013 · You can enable a disabled SQL Server Login using SQL Server Management Studio or via T-SQL code. To enable a Login using SQL Server Management Studio: 1. Open SQL Server Management Studio. 2. Login to Server using a system/security administrator account. 3. Locate the disabled login under Security > Logins in Object Explorer. 4.

  4. sql server - How to tell whether a database login is disabled without ...

    use sys.sql_logins for checking enable/disable status of login. example. select * from syslogins sl join sys.sql_logins sql on sl.sid=sql.sid where is_disabled=1

  5. sql - I cannot enable sa account - Stack Overflow

    Aug 1, 2013 · You'll have to use sqlcmd.exe with Windows Authentication (Specify the -E flag) and renable the account: Open up command prompt and navigate to the SQL Directory and use sqlcmd.exe -S server -E. http://msdn.microsoft.com/en-us/library/ms162773.aspx.

  6. ALTER LOGIN (Transact-SQL) - SQL Server | Microsoft Learn

    Jan 21, 2025 · Applies to: SQL Server 2008 (10.0.x) and later, and Azure SQL Managed Instance. ALTER LOGIN TestUser WITH PASSWORD = 0x01000CF35567C60BFB41EBDE4CF700A985A13D773D6B45B90900 HASHED; GO H. Disable the login of a Microsoft Entra user

  7. SQL Server Database Security – Logins and Users

    Nov 10, 2022 · User Mapping – Map a user in the database to the SQL Server login. Securables – View or set the permissions for securables. Status – Set permissions to connect, enable, or disable the login, and set the status of SQL Server authentication.

  8. SQL Server – Why is the ‘sa’ Login Account Disabled & How to Enable

    Aug 20, 2013 · Ever noticed and wondered why the well-known SQL Server system administrator (sa) login is in a disabled state? The reason is simple, sa login account is disabled out of the box (by default) in Windows Authentication mode. You have to enable manually to use it.

  9. SQL Login Account Disabled - Microsoft Q&A

    Sep 30, 2020 · In Object Explorer, expand Security-> Logins->right-click the sql server login-> Properties. On the Status page, in the Login section, click Enabled. If the answer is helpful, please click " Accept Answer " and upvote it.

  10. How To Enable SA Account in MSSQL? - GeeksforGeeks

    Sep 20, 2024 · Enabling the “sa” (system administrator) account in Microsoft SQL Server (MSSQL) is essential for users requiring full administrative access. By default, the “sa” account is disabled when SQL Server is installed in Windows Authentication mode, which limits user management capabilities.

Refresh