Readers often ask how to disable and enable all constraint for table and database. Here are simple ALTER TABLE scripts for both, plus one for a single constraint.
Hash Index Bucket Count for Memory-Optimized Tables
Size hash index bucket count from distinct keys, inspect empty buckets and chains, rebuild a test index, and choose range indexes wisely.
SQL SERVER – Inside Temp table Object Creation – Part II
A first year developer wrote in with a question after my post on temp table object creation. Here is my answer, with a closer look at tempdb.
SQL SERVER – Customization of New Query in SQL Server Management Studio
A junior DBA was fired for dropping a table on production. Here is how to customize the New Query window in SSMS so it opens with the commands you need.
SQL SERVER – Identifying T-SQL Missing Parameter Data Types with SQL Server
A senior developer asked how to catch code from junior developers with wrong or missing parameter data types. SQL Server itself can help you find them.
SQL SERVER – Proof of Concepts with Windows Azure – Notes from the Field #056
Building proof of concepts is harder than it looks. John Sterrett shows how DBAs and developers can build them faster and get more out of Windows Azure.
SQL SERVER – Inside Temp Table Object Creation
How are temp tables created inside tempdb, even when sessions use the same name? My look inside temp table object creation, with a quick metadata check.





