Patrickkeisler.com

SQL Server Morning Health Checks – Everyday SQL

WEBTo scan a group of SQL Servers, you can provide a hard-coded server list, or you can point it to a Central Management Server (CMS) to dynamically get a list of SQL Servers. The …

Actived: 4 days ago

URL: https://www.patrickkeisler.com/sql-server-morning-health-checks/

The system_health Extended Event Session – Everyday SQL

WEBThe system_health session starts up by default and collects various performance points that can be used to help troubleshoot issues on the server. To look at the details of it, …

Category:  Health Go Health

Making SQL Agent Jobs Aware of Availability Groups

WEBWhat happens if you have a SQL Agent job, but the logic is not aware (or cannot be aware) that you may have an Availability Group in place. There is nothing built-in to Agent to …

Category:  Health Go Health

SQL Server Morning Health Checks – UPDATED!!! – Everyday SQL

WEBThe first check will simply query the sys.dm_server_services DMV to get the status of each service. If the startup mode is “Automatic” and the service is not “Running” then it results …

Category:  Health Go Health

sp_PerformanceCounters – Get a Health Check of SQL Server’s …

WEBThe last and most common TimeFrame is “Avg since SQL startup”, which is for counters of type 272696576. The value of these counters get incremented every time that event is …

Category:  Health Go Health

PowerShell – Everyday SQL

WEBToday, I wanted to discuss how you can use PowerShell to lookup details on the certificate being used for that encryption. For this example, we have three SQL Server instances …

Category:  Health Go Health

Extended Events – Everyday SQL

WEBThe system_health session starts up by default and collects various performance points that can be used to help troubleshoot issues on the server. To look at the details of it, …

Category:  Health Go Health

T-SQL Tuesday #40 – Proportional Fill within a Filegroup

WEBThe proportional fill algorithm is used to keep the amount of free space within a filegroup evenly distributed across all files in a filegroup. SQL Server’s proportional fill falls in line …

Category:  Health Go Health

SQL Server Morning Health Checks – Everyday SQL

WEBSQL Server Morning Health Checks. Every now and again as a Microsoft PFE, you get a chance to make a big difference for a customer. One such occasion happened just …

Category:  Health Go Health

How to Tell If Your Users are Connecting to the Availability Group

WEBOpen a TSQL connection to either the Availability Group listener, and execute the following command. The local_net_address and local_tcp_port columns will display the IP …

Category:  Health Go Health

What is DBCC SHOW_STATISTICS Telling Me About My Data

WEBOur values are formatted to display the entire number, but DBCC SHOW_STATISTICS will use the E notation to shorten number to 5.124001E-05. This notation just means take …

Category:  Health Go Health

Everyday SQL – Page 4

WEBHowever, it’s also something that can easily be changed. From the menu just select Tools and then Options. In the Options window, select SQL Server Object Explorer on the left side. On the right side you’ll see the the Table and View Options. Change the Value for Edit Top <n> Rows to something like 500 and then click OK.

Category:  Health Go Health

Setup Kerberos Constrained Delegation for Group Managed …

WEBThe first step in setting up Kerberos delegation is we need to use SETSPN with the “-S” option create the SPNs for both the SQL Server and PowerBI services. The “-S” option …

Category:  Health Go Health

Customize the Management Studio Toolbar – Everyday SQL

WEBThis option is found under the Window menu and acts a toggle button to either show or hide the results pane for the query editor. In SQL Server 2012 Management Studio, from the …

Category:  Health Go Health

Dynamically Create a Folder for Each Database – Everyday SQL

WEBSo if we need to create a folder for each database before running our backup job, then we can execute a block of code such as this. DECLARE. @BaseFolder nvarchar(128) …

Category:  Health Go Health

Grant Execute Permission on All Stored Procedures

WEBLogin as the test user and execute the stored procedure. 1. 2. EXEC dbo.p_test; GO. This example granted EXECUTE permission to the dbo schema. Any stored procedures that …

Category:  Health Go Health

2020 – Everyday SQL

WEBA while back I wrote an article about how I created a PowerShell script for a customer to help them with their morning routine of checking the health of each SQL Server in their environment.

Category:  Health Go Health

Management Studio Edit Top 200 Rows – Everyday SQL

WEBFrom the menu just select Tools and then Options. In the Options window, select SQL Server Object Explorer on the left side. On the right side you’ll see the the Table and …

Category:  Health Go Health

How to Use xp_dirtree to List All Files in a Folder – Part 2

WEB1. 2. INSERT #DirectoryTree (subdirectory,depth,isfile) EXEC master.sys.xp_dirtree @Path,1,1; If it’s a folder, then it the file parameter will be 0 and the WHILE loop will …

Category:  Health Go Health