After the tip https://www.mssqltips.com/sqlservertip/5526/how-to-setup-and-use-a-sql-server-stretch-database/ I made a video to show step by step how to enable stretch database. https://www.youtube.com/watch?v=nOMantIoy2U&t=7s
I wrote two posts about wait stats: What wait means About SQL Server saving wait stats on DMVs Now, going deeper on wait stats and see "why SQL Server is running slow?". To answer that question I like to start with the DMV sys.dm_os_wait_stats, because this DMV provides a running total of all waits encontered … Continue reading Using wait stats on SQL Server
Developers should use this statistics to get more information about what they just did and pay attention to high physical or logical read values. SQL Server provides commands that are used to return query statistics like SET STATISTICS IO, TIME. The IO command return information about physical, logical for tables referenced in the query and … Continue reading Execution runtime information for developers 😉
SQL Operations Studio Agent is visual way to see, edit and create SQL Server jobs and everybody was asking this feature when SQL Operations Studio appears. To install this the agent follow the link https://docs.microsoft.com/en-us/sql/sql-operations-studio/sql-server-agent-extension?view=sql-server-2017. Installing the agent With the extension installed, right-click on the instance -> Manage to see the server jobs But, not everything … Continue reading Using SQL Operations Studio Agent
SQLPS module to Powershell helps to do so many things on SQL Server without SSMS and the main objective is to automate tasks for your environment. This module isn't installed by default, so there are a couple of steps before use it. First, install the module and the simple cmdlet install-module SQLPS won't work. To … Continue reading How to install SQL Server SQLPS Powershell module
The common way to replicate data and objects from one server to another is using transactional replication. As you know, SQL Server processes all actions within the database using Transact-SQL statements. Each completed statement is called a transaction. In transactional replication, each committed transaction is replicated to the subscriber as it occurs. "Sometimes" can occur a problem and the process don't work accordingly. The … Continue reading Troubleshooting Transactional Replication – part 1
In a post about how update works I showed what happened when run an update with the same values. SQL Server is smart enough to see that and not changing anything and register minimum log. Another day I saw a comment to avoid updating records when none of the values are changing. Avoid updating records when … Continue reading How update works in transactional replication?