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, just …

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

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 …

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

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 …

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

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

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 address …

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 …

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 …

Category:  Health Go Health

Is There a Limit to msDS-AllowedToDelegateTo – Everyday SQL

WebThe answer is yes, there is a limit. The Active Directory stores the values for msDS-AllowedToDelegateTo as non-linked attribute values. According to 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 …

Category:  Health Go Health

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

WebIn a previous blog post, I demonstrated how you can use an undocumented stored procedure, master.sys.xp_dirtree, to list all files in a folder.The previous posting mostly …

Category:  Health Go Health

Use Trace Flag 902 to Recover from a Cumulative Update Failure

WebTrace Flag 902 will bypass the internal upgrade script on startup. Just open SQL Server Configuration Manager and add -T902 to the Startup Parameters, save the changes, and …

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 …

Category:  Health Go Health

Configuring the Azure SQL Database Firewall – Everyday SQL

WebThe first is the “Allow access to Azure services” button. When this option is turned on, it allows any traffic from services within your Azure subscription to pass through. This is …

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