A check constraint on existing data fails if even one row already breaks the rule. This post finds bad values in a small table of lakes, cleans them, adds the constraint, tightens it with an upper limit, and writes a rule across two columns. It also shows how NULL and WITH NOCHECK behave. Every result comes from SQL Server 2025.
The real Data Type: Seven Digits of Precision and Overflow
Four bytes look like a bargain until a total comes out wrong. Watch real round, overflow and drift, then decide when decimal is the safer pick.
SQL SERVER – FIX – ERROR – Service Logon Failure (ObjectExplorer)
Service Logon Failure (ObjectExplorer) stopped my SQL Server Agent from starting. My password had changed, so updating it in the service fixed it.
SQL SERVER – FIX – ERROR : Msg 3201, Level 16 Cannot open backup device . Operating system error 5(Access is denied.)
Msg 3201, cannot open backup device, operating system error 5 (Access is denied). The SQL Server service account needed permission on the disk.
SQL SERVER – Fix : Error : The request failed or the service did not respond in a timely fashion
The request failed or the service did not respond in a timely fashion: SQL Server would not start after TechEd. The event log and our password policy explained it.
SQL SERVER – Puzzle – Challenge – Error While Converting Money to Decimal
A puzzle for you: why does converting money to decimal throw Msg 8115, an arithmetic overflow error, when you cast 12345.67 as DECIMAL(5,2)? Share your answer.
SQL SERVER – FIX ERROR 3702 Cannot drop database “MyDBName” because it is currently in use
Error 3702: cannot drop database because it is currently in use. Set it to SINGLE_USER WITH ROLLBACK IMMEDIATE, then drop it. Best kept for demo servers.






