Can you apply the NOLOCK hint to a whole query with OPTION (NOLOCK)? No, it fails with Msg 102. Here is how I use an isolation level instead.
SQL SERVER – Making Database to Read Only – Changing Database to Read/Write
A reader attached a client database and it showed as Read Only. Two simple ALTER DATABASE scripts switch a database to READ_ONLY and back to READ_WRITE.
SQL SERVER – Finding Location of Log File when Primary Datafile is Crashed
Do you need the primary datafile to back up the log after a crash? Vinod Kumar asked, so I tried finding the location of the log file without it.
SQL SERVER – Transaction Log Impact Detection Using DMV – dm_tran_database_transactions
Which DMV shows the effect of a transaction on the transaction log file? My quick script uses dm_tran_database_transactions to show it per transaction.
SQL SERVER – Query to Recent Query on Server with Execution Plan Function to Get SQL
For T-SQL Tuesday on the APPLY clause, I share the script I use to see each recent query on server along with its execution plan from the cache.
What Is ETL? Extract, Transform and Load Explained
ETL means extract, transform and load, and only the middle word is interesting. What each stage really does, why transform eats most of the schedule, and what changes when a team says ELT instead.






