Jeffrey Yao

Jeffrey Yao
Jeffrey Yao is a senior SQL Server consultant, striving to automate DBA work as much as possible to have more time for family, life and more automation.

linkedin 
Jeffrey Yao is a senior SQL Server consultant with 15 years of database administration, his current interests are on database administration automation and visualization. He enjoys reading the concise and smart sql tips and loves R&D work in DBA Engineering topics. His blog is at: http://www.sqlservercentral.com/blogs/jeffrey_yao/.
2021 Awards   MSSQLTips award

2018 Awards   MSSQLTips award

2017 Awards   MSSQLTips award   MSSQLTips award

2016 Awards   MSSQLTips award   MSSQLTips award

2015 Awards   MSSQLTips award

2014 Awards   MSSQLTips award

Category Tip Title
Backup Exploring SQL Server Table Backup Methods
Comparison Data and Objects Finding SQL Server Table and Data Differences using PowerShell
Comparison Data and Objects SQL Server Database Schema Synchronization via SQLPackage.exe and PowerShell
Constraints Script to Delete Data from SQL Server Tables with Foreign Key Constraints
Database Administration Automate SQL Server Administration Tasks Using the Windows Command Prompt
Database Administration Automatically Build a SQL Server Script Database Library from Your Script Files
Database Administration Build an Automated SQL Server Database Inventory System
Database Administration Copy a SQL Server database with just the objects and no data
Database Administration Create a Self-Service Framework for SQL Server DBA Tasks
Database Administration Generate INSERT scripts from SQL Server queries and stored procedure output
Database Administration Introduction to C# Scripting for SQL Server DBAs
Database Administration Learn SQL Server from Microsoft’s Own Code
Database Administration MSSQL-Scripter Tool and Examples to Generate Scripts for SQL Server Objects
Database Administration SQL Server HotFix History Analysis
Database Design CRUD Operations in SQL Server
Database Mail Beautify HTML Tables in Emails for SQL Database Mail
Database Mail Generate HTML Formatted Emails from SQL Server
Dates SQL Server Date Time Calculation Examples
Dates SQL Server FORMAT Function for Dates, Numbers and SQL Server Agent Dates
Error Logs Cycle SQL Server Error Logs based on size using PowerShell
High Availability Find SQL Server Downtime Window After Reboot
Import and Export Adding more functionality to SQL Server BCP with PowerShell
Import and Export Copy data to another SQL Server instance without a Linked Server
Import and Export Dynamically Generate SQL Server BCP Format Files
Import and Export Excel File Data Validation for SQL Server Imports
Import and Export Transfer data from SQL Server to MySQL
Indexing Build a Robust Incremental SQL Server Update Statistics Procedure
Integration Services Administration Automated Inventory Collection of Scheduled SQL Server Integration Services Packages
Locking and Blocking Detect and Automatically Kill Low Priority Blocking Sessions in SQL Server
Monitoring Quickly Evaluate SQL Server Best Practices with Invoke-SqlAssessment
Monitoring SP_WhoIsActive Data Collection and Analysis
Performance Tuning Automatically Generate Performance Counter Graphs with SQL Server 2016 and R
PowerShell Bulk Copy Data from Oracle to SQL Server
PowerShell Complete Common SQL Server Database Administration Tasks In Parallel with PowerShell V3 WorkFlow
PowerShell Get Total Line Counts for all SQL Server Source Objects Using PowerShell
PowerShell How to find a specific text string in a SQL Server Stored Procedure, Function, View or Trigger
PowerShell One Line PowerShell Solutions To Common SQL Server DBA Tasks
PowerShell PowerShell Script to Delete All Data in a SQL Server Database
PowerShell PowerShell to automate multiple database SQL Server restores to refresh environments
Professional Development Career The 6 Rules to be a Happy SQL Server DBA
Professional Development Career Things I know now that I wish I knew when I started as a SQL Server DBA
Professional Development Interview Questions DBA PowerShell Interview Questions for SQL Server DBAs
Professional Development Interview Questions DBA Senior SQL Server DBA non-technical interview questions
Professional Development Interview Questions Developer T-SQL Interview Questions for Senior Developers
Professional Development Interviewing Technical Interview Questions for a Senior SQL Server DBA
Professional Development Skills Development How to Build an Efficient Request Process for SQL Server DBAs
Professional Development Skills Development How to Grow Your SQL Server DBA Career
Replication Auto Fix SQL Server Transactional Replication Error 20598 for DELETEs
Replication Auto Fix SQL Server Transactional Replication Error 20598 for UPDATEs
Replication Monitoring SQL Server Transactional Replication Latency via PowerShell and RMO
Reporting Services Development Generate SSRS Report On Demand with PowerShell and a Web Service
Security Backdoor to Elevate SQL Server Security Privileges
Security Cloning a SQL Server Login with all permissions using PowerShell
Security Different Ways to Find SQL Server Orphaned Users
Security Encrypt and Decrypt Passwords in SQL Server with PowerShell
Security Script to drop SQL Server login and all owned objects using PowerShell
Security SQL Server Functions to Mask Confidential Data using CLR or PowerShell
SQL Server 2016 Easily Import CSV Files with R in SQL Server 2016
SQL Server 2016 SQL Server 2016 Regular Expressions with the R Language
SQL Server 2016 Visual SQL Server Performance Data Comparison with R
SQL Server 2017 Create Size Based Backups for SQL Server 2017
SQL Server 2019 Discovering New System Objects and Functions in SQL Server 2019
SQL Server 2022 Find Updated Columns in Update Transaction with New BitWise Operators in SQL Server 2022
SQL Server Agent Add Last Step to SQL Agent Jobs for Failure Notification
SQL Server Agent How to Pass Data Between SQL Server Agent Job Steps
SQL Server Agent Make SQL Server Agent Alert Notifications Smarter and More Flexible
SQL Server Agent SQL Server Agent Job Advanced Management
SQL Server Agent SQL Server Job Change Auditing
SQL Server Configurations Inventory SQL Server Services Version and Edition
SQL Server Management Studio Using Regular Expressions to Manipulate Text in SQL Server Management Studio 2017
SQL Server Management Studio Configuration Automate Registering and Maintaining Servers in SSMS
Testing Generate Random Strings with High Performance with a SQL CLR function
Triggers How to Identify which SQL Server Columns Changed in a Update
TSQL Advanced Use of the SQL Server ORDER BY Clause
TSQL Delete Files with SQL Server 2016 R Logic in T-SQL Code
TSQL Implement a Comment Based Help Framework via CLR Stored Procedure
TSQL Sort Alphanumeric Values in SQL Server
Upgrades and Migrations Creating a SQL Server Build and Patch Release Table
Upgrades and Migrations Extract Hot Fix Details from a SQL Server CU KB Articles
Upgrades and Migrations Identify System Object Differences Between SQL Server Versions
No Records Found
No Records Found
CategoryGroup Category (articles)
Analysis Services Analysis Services Administration (33)
Analysis Services Analysis Services Development (95)
Analysis Services Analysis Services Dimensions (16)
Analysis Services Analysis Services Measure Groups (7)
Analysis Services Analysis Services Performance (14)
Analysis Services Analysis Services Security (7)
Analysis Services Analysis Services Tutorials (6)
Business Intelligence Artificial Intelligence (23)
Business Intelligence Big Data (25)
Business Intelligence Data Science (3)
Business Intelligence Data Warehousing (7)
Business Intelligence Import and Export (81)
Business Intelligence R Language (11)
Business Intelligence Snowflake (29)
Cloud Amazon AWS (38)
Cloud Amazon AWS RDS (21)
Cloud Azure (149)
Cloud Azure Backup and Restore (25)
Cloud Azure Cosmos DB (15)
Cloud Azure Functions (7)
Cloud Azure SQL Database (51)
Cloud Azure SQL Managed Instance (5)
Cloud Cloud Strategy (24)
Cloud Google Cloud (10)
Cloud Analytics Apache Spark (13)
Cloud Analytics Azure Data Factory (73)
Cloud Analytics Azure Databricks (39)
Cloud Analytics Azure Integration Services (14)
Cloud Analytics Azure Synapse Analytics (41)
Cloud Analytics Microsoft Fabric (17)
Data Quality Data Cleansing for Validation (4)
Data Quality Data Quality Services (10)
Data Quality Master Data Services (41)
Database Administration Central Management Servers (10)
Database Administration Comparison Data and Objects (14)
Database Administration Database Administration (208)
Database Administration DBA Best Practices (39)
Database Administration Dedicated Administrator Connection (4)
Database Administration Scripts (35)
Database Administration System Databases (31)
Database Configuration Compression (22)
Database Configuration Database Configurations (19)
Database Configuration Database Mail (18)
Database Configuration FILESTREAM (9)
Database Configuration Full Text Search (21)
Database Configuration In Memory OLTP (32)
Database Configuration Linked Servers (18)
Database Configuration Policy Based Management (29)
Database Configuration Recovery Models (4)
Database Configuration Resource Governor (5)
Database Configuration SQL Server Configurations (75)
Database Design Constraints (20)
Database Design Data Types (22)
Database Design Database Design (92)
Database Design Identities (17)
Database Design JOIN Tables (23)
Database Design Synonyms (5)
Database Design Table Valued Parameters (4)
Database Design Temp Tables (15)
Database Design Temporal Tables (13)
Database Design User Defined Type UDT (3)
Database Design Views (17)
Database Development Application Development (46)
Database Development Common Runtime Language (13)
Database Development Debugging (4)
Database Development DevOps (36)
Database Development Entity Framework (13)
Database Development Language Integrated Query LINQ (7)
Database Development Paging (5)
Database Development Referential Integrity (5)
Database Development Service Broker (11)
Database Development Testing (32)
Database Development XML (14)
Database Maintenance Database Console Commands DBCCs (25)
Database Maintenance Fragmentation and Index Maintenance (28)
Database Maintenance Maintenance (34)
Disaster Recovery / High Availability Availability Groups (79)
Disaster Recovery / High Availability Backup (81)
Disaster Recovery / High Availability Clustering (77)
Disaster Recovery / High Availability Database Mirroring (33)
Disaster Recovery / High Availability Disaster Recovery (23)
Disaster Recovery / High Availability High Availability (3)
Disaster Recovery / High Availability Log Shipping (18)
Disaster Recovery / High Availability Replication (78)
Disaster Recovery / High Availability Restore (42)
Functions Dates (56)
Functions Functions System (99)
Functions Functions User Defined UDF (41)
Infrastructure Contained Databases (4)
Infrastructure Containers (12)
Infrastructure Hardware (14)
Infrastructure Spatial Data Storage (9)
Infrastructure Virtualization (25)
Integration Services Admin Integration Services Administration (10)
Integration Services Admin Integration Services Best Practices (12)
Integration Services Admin Integration Services Configuration Options (22)
Integration Services Admin Integration Services Performance (12)
Integration Services Admin Integration Services Security (7)
Integration Services Admin Integration Services Upgrade (4)
Integration Services Development Data Transformation Services (6)
Integration Services Development Integration Services Analysis Services Tasks (5)
Integration Services Development Integration Services Connection Managers (5)
Integration Services Development Integration Services Control Flow Transformations (14)
Integration Services Development Integration Services Data Flow Transformations (19)
Integration Services Development Integration Services Development (116)
Integration Services Development Integration Services Error Handling (8)
Integration Services Development Integration Services Excel (14)
Integration Services Development Integration Services Execute Package Options (8)
Integration Services Development Integration Services Oracle (4)
Microsoft Office Microsoft Access Integration (8)
Microsoft Office Microsoft Excel Integration (44)
Microsoft Office Microsoft Flow (1)
Other RDBMS Other Database Platforms (16)
Other RDBMS PostgreSQL (11)
Other RDBMS SQL Server and Oracle Comparison (29)
Other RDBMS SQL Server on Linux (78)
Other RDBMS SQL Server vs Oracle vs PostgreSQL Comparison (20)
Performance Dynamic Management Views and Functions (34)
Performance Error Logs (11)
Performance Extended Events (22)
Performance Indexing (94)
Performance Locking and Blocking (43)
Performance Monitoring (110)
Performance Partitioning (17)
Performance Performance Data Warehouse (4)
Performance Performance Tuning (124)
Performance Profiler and Trace (20)
Performance Query Optimization (15)
Performance Query Plans (20)
Performance Query Store (7)
Power Platform Power Apps (20)
Power Platform Power BI (172)
Power Platform Power BI Charts (57)
Power Platform Power BI Formatting (17)
Professional Development Professional Development Branding (16)
Professional Development Professional Development Career (18)
Professional Development Professional Development Career Planning (20)
Professional Development Professional Development Certifications (62)
Professional Development Professional Development Community (16)
Professional Development Professional Development Interview Questions BI (18)
Professional Development Professional Development Interview Questions DBA (23)
Professional Development Professional Development Interview Questions Developer (9)
Professional Development Professional Development Interviewing (39)
Professional Development Professional Development Job Search (24)
Professional Development Professional Development Management (14)
Professional Development Professional Development Resume (13)
Professional Development Professional Development Skills Development (18)
Python Python (88)
Reporting Services Admin Reporting Services Administration (21)
Reporting Services Admin Reporting Services Best Practices (6)
Reporting Services Admin Reporting Services Configuration (10)
Reporting Services Admin Reporting Services Installation (10)
Reporting Services Admin Reporting Services Migration (5)
Reporting Services Admin Reporting Services Monitoring (5)
Reporting Services Admin Reporting Services Network Load Balancing (4)
Reporting Services Admin Reporting Services Performance (6)
Reporting Services Admin Reporting Services Security (8)
Reporting Services Development Reporting Services Analysis Services (4)
Reporting Services Development Reporting Services Charts (25)
Reporting Services Development Reporting Services Data Sources (10)
Reporting Services Development Reporting Services Development (67)
Reporting Services Development Reporting Services Dynamic Reports (11)
Reporting Services Development Reporting Services Formatting (26)
Reporting Services Development Reporting Services KPI (5)
Reporting Services Development Reporting Services Overview (5)
Reporting Services Development Reporting Services Parameters (15)
Reporting Services Development Reporting Services Report Builder (9)
Security Auditing and Compliance (47)
Security Encryption (35)
Security Security (199)
Security SQL Injection (5)
Security Surface Area Configuration Manager (4)
SharePoint SharePoint (131)
SharePoint SharePoint Administration (46)
SharePoint SharePoint Configuration (27)
SharePoint Sharepoint Design (46)
SharePoint SharePoint Document Management (20)
SQL Coding Change Data Capture (16)
SQL Coding Common Table Expressions (4)
SQL Coding Dynamic SQL (7)
SQL Coding Error Handling (11)
SQL Coding Stored Procedures (30)
SQL Coding Transactions (9)
SQL Coding Triggers (44)
SQL Coding TSQL (342)
Tools Azure Data Studio (18)
Tools PowerShell (131)
Tools SQL Operations Studio (11)
Tools SQL Server Agent (94)
Tools SQL Server Management Objects SMO (3)
Tools SQL Server Management Studio (78)
Tools SQL Server Management Studio Configuration (22)
Tools SQL Server Management Studio Shortcuts (9)
Tools Tools (35)
Versions Deprecated Features (6)
Versions Express Edition (16)
Versions Install and Uninstall (33)
Versions Licensing (4)
Versions SQL Server 2016 (96)
Versions SQL Server 2017 (44)
Versions SQL Server 2019 (20)
Versions SQL Server 2022 (21)
Versions Upgrades and Migrations (55)










get free sql tips
agree to terms