Can you get the ReadOnly error without marking the database ReadOnly? Yes, using snapshots. Here is a script that shows the behavior step by step.
Hey DBA – Protecting a Proactive Attitude – Notes from the Field #069
Being proactive is about attitude and mindset, not just scripts. Mike Walsh explains how DBAs and developers can protect a proactive attitude.
SQL SERVER – Storing Data in Hindi, Chinese, Gujarati and Tamil (or any other) Language in the Same Table
Getting ??? after storing data in Hindi, Tamil or Gujarati? Here are the basic rules to follow to keep many languages in the same table.
Building the Restore Script for the Latest Backup Chain From msdb
Do not type a restore sequence by hand at 2 AM. Let msdb tell you the order, and prove the script works before you need it.
SQL SERVER – COLUMNSTORE and COLUMNSTORE_ARCHIVE data compression
SQL Server 2014 adds COLUMNSTORE_ARCHIVE data compression for rarely used data. Here is how to use it on older data, at the cost of slower queries.
Interview Question of the Week #008 – Write Scripts to Convert String to Title Case or Proper Case
Convert string values to title case with a corrected function, ordered SQL Server aggregation, and clear limits for personal names.
SQL SERVER – Script to Find Strings with Same Characters
Need to find strings with same characters, like KKK but not KKT? Here is a simple trick using REPLACE and LEFT, with no WHILE loop needed.
SQL SERVER – Finding Top Offenders in SQL Server 2012 – Notes from the Field #068
John Sterrett shows how to capture a workload and find your top offenders in SQL Server 2012 right inside Management Studio, without writing any T-SQL.
SQL SERVER – Notes and Observations on ReadOnly Databases in SQL Server
Can you create temp tables, stored procedures or shrink files in ReadOnly databases? I answer these reader questions with simple examples.










