Automatic SQL Server query execution optimization: "get of my lawn"
I had to write a SQL query, that would return the records where the column "ImportFileName" started with the year "2013" -- Drop temp table if it exists. if object_id('tempdb..#Import') is not null…