Error 15434: could not drop login ‘test’ because the user is logged in. A reader ran my demo on production; here is my Force Removing User fix, no restart needed.
SQL SERVER – Case Sensitive Database and Database User – Fix: Error: 15151 – Cannot find the user , because it does not exist or you do not have permission.
Jeff hit Error 15151, cannot find the user, even though the user existed. The cause was a case sensitive database, and here is the fix.
T-SQL Errors and Reactions in SQL Server: SQL in Sixty Seconds #002
T-SQL errors and reactions are the subject of this early SQL in Sixty Seconds episode with Rick Morelan. The tests here show which errors stop one statement, which stop the whole batch, and how XACT_ABORT, TRY CATCH and THROW change the reaction.
SQL SERVER – Installation Log Summary File Location – 2012 – 2008 R2
A new DBA on his first day could not find the SQL Server installation log summary. Here is the file location for SQL Server 2012 and 2008 R2.
SQL SERVER – ERROR: FIX – Database diagram support objects cannot be installed
Database diagram support objects cannot be installed because this database does not have a valid owner. Here is the quick fix I used on a friend’s database.
Common Table Expressions Quiz: Why Did My Second Query Fail?
This Common Table Expressions Quiz defines one CTE, reads it once, and then reads it again. The answer is error 208, because a CTE lives for one statement only. A tested script shows the error, the missing semicolon trap and the recursion limit.
Piecemeal Restore Quiz: What Happens to Tables Not Restored Yet?
This Piecemeal Restore Quiz asks what happens when a query reads a table whose filegroup is still offline. The answer is an error for that table only, while everything else keeps working. A tested script shows the error and then brings the last filegroup online.







