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/

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

The system_health Extended Event Session – Everyday SQL

WebThe system_health session as two targets defined; the ring_buffer and to an event_file. The ring_buffer target is an in-memory target designed to only hold the collected data for a …

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

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

WebThis stored procedure was created to be used an overall health check for a server. It’s especially useful if another DBA just handed you a new SQL Server to support, and you …

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 …

Category:  Health Go Health

PowerShell – 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

Making SQL Agent Jobs Aware of Availability Groups

WebHealth Checks; Presentations; Contact Me; Making SQL Agent Jobs Aware of Availability Groups. What happens if you have a SQL Agent job, but the logic is not …

Category:  Health Go Health

PSSDiag Configuration Manager – A Companion for SQLNexus

WebVersion 12.0.0.1001 is the latest and to get it installed, just download it from codeplex and run SetupX86.msi. Go to the Start Menu and click on PSSDiag Configuration Manager to …

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

Investigating Plan Cache Bloat – Everyday SQL

WebInvestigating Plan Cache Bloat. SQL Server includes a DMV, sys.dm_exec_query_stats, that returns performance statistics for each query plan cached in memory. However, it …

Category:  Health Go Health

Use Powershell to Manage Idera SQL Diagnostic Manager

Web1. Start, Run, “Powershell”. Load the SQLdm snapin. 1. Add-PSSnapin SQLdmSnapin. Using the New-SQLdmDrive cmdlet, create a SQLdm drive, specifiing drive name, 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

Collecting Historical Wait Statistics – Everyday SQL

WebThe first will be the SQL Server start time. We need the SQL Server start time, so we can identify when the service was restarted. 1. 2. SELECT @CurrentSqlServerStartTime = …

Category:  Health Go Health

Blob Auditing for Azure SQL Database – Everyday SQL

WebIn February 2017, Microsoft announced the general availability of Blob Auditing for Azure SQL Database. While auditing features were available before in Azure, this is a huge …

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

Get Certificate Details for SQL Encryption In-Transit Using …

WebYou’ll then need to use the Certificates manager (via MMC snap-in) to see important details about the certificate such as the expiration date. Since the we are using …

Category:  Health Go Health

Use PsPing When Working in Azure IaaS – Everyday SQL

WebWhen working in Azure, it can give you the same functionality without having to reconfigure your VMs. For example, when I setup a SQL Server instance on one VM, I …

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

Setup Resource-Based Kerberos Constrained Delegation for Group …

WebHealth Checks; Presentations; Contact Me; Setup Resource-Based Kerberos Constrained Delegation for Group Managed Service Accounts. In my previous post, I discussed how …

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

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