A simple T-SQL script to check whether a year is a leap year, using DATEADD and EOMONTH to find the last day of February for that year.
SQL SERVER – Viewing User Configurable Info in SQL Server
A reader asked about sp_user_counter1 to 10 for debugging. I show how sp_trace_generateevent raises events you can watch as User Configurable info.
Interview Question of the Week #006 – Is Shrinking Database Good or Bad?
Decide whether shrinking database good or bad advice fits your case, inspect fragmentation, and use low-priority shrink cautiously.
SQL SERVER – What are the Different Ways to Script Procedure with T-SQL
What are the different ways to script procedure code with T-SQL? There are four, including sp_helptext and INFORMATION_SCHEMA.ROUTINES. Here is each one.
SQL SERVER – One Trick of Handling Dynamic SQL to Avoid SQL Injection Attack?
SQL Injection is not a SQL Server problem, it comes from coding habits. Here is one trick of handling dynamic SQL to avoid SQL injection attack on a search page.
SQL SERVER – Invoking a Stored Procedure from Azure Mobile Services – Notes from the Field #066
Can you call a SQL stored procedure from Azure Mobile Services? In Notes from the Field #066, Kevin Hazzard shows how, with a bit of humor along the way.







