(Arshad Ali) In my last article I discussed the basics of statistics and why it is needed. I also covered when it needed to be created or updated and how it looks. In this article I will talk about how performance gets impacted because of missing and out-of-date statistics, how statistics are manage
Tag: sql server
[SQL Snacks Video] Performance Tuning 102 – Files, FileGroups, and TempDB
(Ayman El-Ghazali) Finally the arrival of Part 2 of my SQL Snack Pack on Performance Tuning! The series is dedicated to help beginners understand how to start performance tuning with SQL Server.
Finding a common AD group for a set of users.
(Kenneth Fisher) I work for a large organization that over the last few years has been doing a LOT of reorgs. And what comes with reorgs? Lots of security requests. I’m always working to find easier ways to deal with them and I’ve gotten pretty good at it over time.
Capturing Database(s) and Table Usage stats – sp_spaceused simulation using DMVs
(prashanthjayaram) sp_spaceused is one of the system stored procedure used frequently by many DBA’s that reveals amount of space used by database/tables. This procedure can be executed either by passing parameters or no parameters.
SQL SERVER – List the Name of the Months Between Date Ranges – Part 2
(Pinal Dave) Last week I wrote a blog post about SQL SERVER – List the Name of the Months Between Date Ranges. It was written in the response to the question – How to list the name of the months between two date ranges? In the original blog post, I made a small error, hence I corrected that in the […]
Maintaining SQL Server database metadata to identify object changes
(Armando Prato) From time to time, I am called in to troubleshoot and diagnose database issues. I often find that someone has modified the database tables or database source code which forces me to comb through the database to find any changes made since it was created.
SQL SERVER – List the Name of the Months Between Date Ranges – Correction
(Pinal Dave) Earlier I wrote a blog post about SQL SERVER – List the Name of the Months Between Date Ranges. It was written in the response to the question – How to list the name of the months between two date ranges?
Reviewing the SQL Server Audit
(Kenneth Fisher) Deciding what method to use to collect audit information can be a task in and of itself. Depending on your needs there are a number of different ways to collect the information.
T-SQL COALESCE Example
(Derek E Wilson) SQL Server T-SQL coalesce simplifies the use of a case statement to find the first non-null value of your expression. For example, I want to return the products in the AdventureWorks sample database and show the SellEndDate if it exists or the SellStartDate if the SellEndDate is nu
Failing over AlwaysOn Availability Groups
(Derik Hammer) A few weeks ago I posted on Availability Group fail-over tests with PowerShell. That post covered the basics of how to check the Availability Group’s state and perform the commands for conducting a zero data loss fail over.
