- Knowledge Base
- Troubleshoot
- Database
-
Getting Help
-
12.3 Specific changes
-
Installation
-
Learn
- Business Activities
- Business Activity Manager
- Business Alerts
- Configuration
- Customer
- Database
- EDI
- General
- Inventory
- Manager Windows
- Mobile
- Picklists (Advanced Picking)
- Product
- Purchasing
- Purchase Order Manager
- QuickBooks & Acctivate Basics
- QuickBooks Desktop Sync
- QuickBooks Online Sync
- Reporting
- Sales
- Sales Order Manager
- Sales Tax
- Server
- Shipping
- Startup
- User Interface
- Webstore
-
Troubleshoot
-
Specs
-
FAQs
SQL Server user account locked out
It's possible that your SQL Server database user gets locked out after multiple failed login attempts.
If you're running Microsoft SQL Server (on-premise) and get locked out of SQL Server, there's a few ways to resolve the problem using tools like SQL Server Management Studio (SSMS), but the command line is the most reliable and relatively easy for a system admin.
The following instructions assume you're running the default "ACCTIVATE" instance of SQL Server. You can swap out "ACCTIVATE" for your instance name if needed. Also, these instructions are written for the SQL Server "sa" user account, but can be adapted for any SQL user account.
- We need to launch Windows PowerShell as administrator on the computer running Microsoft SQL Server. Search for Powershell on the Windows Start menu, then click Run as Administrator
- First, we need to restart SQL Server in single-user mode for SQL CMD utility. Run these commands in PowerShell:
NET STOP "SQL Server (ACCTIVATE)"
NET START "SQL Server (ACCTIVATE)" /f /mSQLCMD
- Now, let's run SQLCMD to connect to the database server for maintenance.
SQLCMD -E -S LOCALHOST\ACCTIVATE
- OPTIONAL, but probably a good idea! Reset the SQL user password. Replace newpassword with a strong password of your liking.
sp_password @new = 'newpassword', @loginame = 'sa' GO
- Finally, unlock the user account after the source of the bad login attempts has been identified and resolved.
ALTER LOGIN sa WITH PASSWORD = 'newpassword' UNLOCK GO
- Quit PowerShell, and you should now be able to launch Acctivate.