Eli Leiba

Eli Leiba
Eli Leiba is a senior application DBA, a teacher and a senior database consultant with 19 years of RDBMS experience.

Eli Leiba is a senior application DBA at Israel Electric Company, a teacher at Microsoft CTEC, and a senior database consultant. With 19 years of experience working with both SQL Server and Oracle RDBMS. He is certified in Oracle and SQL Server database administration and implementation and has a B.S. in Computer Science. He can be reached at: [email protected].
2019 Awards   MSSQLTips award   MSSQLTips award

2018 Awards   MSSQLTips award

2017 Awards   MSSQLTips award   MSSQLTips award

2016 Awards   MSSQLTips award

Category Tip Title
Backup Delete old SQL Server backup files with a Stored Procedure
Backup Script to delete old SQL Server Backup Files Using MSDB Backup History Data
Backup SQL Server Script to Automatically Split Database Backups into Multiple Backup Files
Backup SQL Server Script to Determine Free Space Prior to SQL Server Backup
Backup Validate a SQL Server Backup can be Restored
Compression SQL Server Data Compression Storage Savings for all Tables
Compression SQL Server Stored Procedure to Calculate Database Backup Compression Ratio
Compression SQL Server Stored Procedure to Compress Non Partitioned Tables
Constraints Find Violating SQL Server Foreign Key Values
Database Administration Find SQL Server data and log files that are almost out of space
Database Administration Find the Last Windows Server Reboot Time and Last SQL Server Restart
Database Administration Script to Drop and Delete Offline SQL Server Databases and Data Files
Database Administration Script to Find SQL Server Windows Login Expiration Date
Database Administration Shrink SQL Server Transaction Log for all Databases
Database Configurations Saving storage space alternative for rarely used decimal columns for SQL Server Tables
Database Console Commands DBCCs Script to quickly find SQL Server DBCC CHECKDB Errors
Dynamic Management Views and Functions Creating IO performance snapshots to find SQL Server performance problems
Encryption SQL Server Credit Card Encryption and Decryption
Encryption SQL Server Function to Encrypt Integer Values
Error Logs SQL Server Script to Search Through All Error Logs
Functions User Defined UDF Create a SQL Server InitCap Function
Functions User Defined UDF SQL Server function to check dynamic SQL syntax
Identities SQL Server Current Identity Value Report for All Tables
Import and Export Simple Image Import and Export Using T-SQL for SQL Server
Indexing Script to Disable Non Used SQL Server Indexes
Indexing Script to identify all non-indexed foreign keys in a SQL Server database
Locking and Blocking Altering lock escalation for SQL Server tables
Monitoring Function to quickly find the worst performing SQL Server Stored Procedures
Monitoring Simple free drive space alert for SQL Server databases
Monitoring SQL Server Function to Measure CPU Usage Per Database
Monitoring SQL Server Memory Usage Query
Monitoring SQL Server Table Size Report
Performance Tuning Disk Latency for SQL Server Database and Transaction Log Files
Performance Tuning SQL Server Internal Query Cardinality Estimator Information
PowerShell Find current running SQL Server queries with a PowerShell script
Profiler and Trace Use SQL Server Default Trace to Find Errors
Restore Simple Procedure to Make a Copy of a SQL Server Database
Scripts Script to attach multiple SQL Server MDF files
Scripts Script to find oldest open SQL Server transaction
Scripts Stored procedure to generate HTML tables for SQL Server query output
Scripts Use T-SQL to Find Folders Using the Most Disk Space
Security Find All Failed SQL Server Logins
Security Simple SQL Server Function to Generate Random 8 Character Password
Security SQL Server Database Users to Roles Mapping Report
Security SQL Server security report to show sysadmins and database owners
Spatial Data Storage SQL Server Stored Procedure to Calculate Area of a Polygon and Draw its Shape
SQL Server Configurations Quickly identify non-default sp_configure values for a SQL Server instance
SQL Server Configurations SQL Server Instance Configuration Summary Report
Testing SQL Server Stored Procedure to get every Nth row of a Query Result Set
TSQL Check Windows Services Status with T-SQL
TSQL Dynamically build a multi OR with LIKE query for SQL Server
TSQL How to Extract URLs from HTML using Stored Procedure in SQL Server
TSQL How to Find Top N Largest Time Gaps in Date Ranges in SQL Server with T-SQL Code
TSQL Matrix Multiplication Calculated with T-SQL
TSQL Script to calculate the Median value for SQL Server data
TSQL Scripts to Build a Network of Connected Records Using SQL Server
TSQL Solve Linear Equations with SQL Server T-SQL Code
TSQL SQL Server Dynamic PIVOT Query
TSQL SQL Server Function to Generate Random Numbers
TSQL Using T-SQL to find the Greatest Common Divisor (GCD) for any number of integers
TSQL Using T-SQL to find the shortest distance between two points
No Records Found
No Records Found
CategoryGroup Category (articles)
Analysis Services Analysis Services Administration (32)
Analysis Services Analysis Services Development (94)
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 Tools (1)
Analysis Services Analysis Services Tutorials (6)
Analysis Services Cortana (5)
Analysis Services Performance Point (4)
Business Intelligence Big Data (25)
Business Intelligence Data Warehousing (7)
Cloud Amazon AWS (40)
Cloud Amazon AWS RDS (21)
Cloud Apache Spark (11)
Cloud Azure (149)
Cloud Azure Backup and Restore (25)
Cloud Azure Cosmos DB (15)
Cloud Azure Data Factory (70)
Cloud Azure Databricks (39)
Cloud Azure Integration Services (14)
Cloud Azure SQL Database (49)
Cloud Azure SQL Managed Instance (5)
Cloud Azure Synapse Analytics (41)
Cloud Cloud Strategy (22)
Cloud Google Cloud (10)
Cloud Microsoft Fabric (14)
Data Quality Data Quality Services (10)
Data Quality Master Data Services (41)
Database Administration Availability Groups (79)
Database Administration Backup (81)
Database Administration Central Management Servers (10)
Database Administration Clustering (77)
Database Administration Comparison Data and Objects (14)
Database Administration Compression (22)
Database Administration Contained Databases (4)
Database Administration Containers (12)
Database Administration Database Administration (206)
Database Administration Database Configurations (19)
Database Administration Database Console Commands DBCCs (25)
Database Administration Database Mail (18)
Database Administration Database Mirroring (33)
Database Administration DBA Best Practices (39)
Database Administration Dedicated Administrator Connection (4)
Database Administration Deprecated Features (5)
Database Administration DevOps (36)
Database Administration Disaster Recovery (23)
Database Administration Error Logs (11)
Database Administration Express Edition (16)
Database Administration Extended Events (22)
Database Administration FILESTREAM (9)
Database Administration Fragmentation and Index Maintenance (28)
Database Administration Hardware (14)
Database Administration High Availability (3)
Database Administration Indexing (92)
Database Administration Install and Uninstall (32)
Database Administration Licensing (4)
Database Administration Linked Servers (18)
Database Administration Locking and Blocking (43)
Database Administration Log Shipping (18)
Database Administration Maintenance (34)
Database Administration Monitoring (111)
Database Administration Other Database Platforms (84)
Database Administration Partitioning (17)
Database Administration Performance Data Warehouse (4)
Database Administration Performance Tuning (136)
Database Administration Policy Based Management (29)
Database Administration PostgreSQL (3)
Database Administration PowerShell (131)
Database Administration Profiler and Trace (20)
Database Administration Query Store (7)
Database Administration Recovery Models (4)
Database Administration Referential Integrity (5)
Database Administration Replication (76)
Database Administration Resource Governor (5)
Database Administration Restore (42)
Database Administration Snowflake (25)
Database Administration SQL Server 2016 (96)
Database Administration SQL Server 2017 (44)
Database Administration SQL Server 2019 (20)
Database Administration SQL Server 2022 (22)
Database Administration SQL Server Configurations (75)
Database Administration SQL Server on Linux (78)
Database Administration StreamInsight (2)
Database Administration System Databases (31)
Database Administration Upgrades and Migrations (55)
Database Administration Virtualization (25)
Database Administration Windows Internal Database (1)
Database Development Application Development (46)
Database Development Artificial Intelligence (16)
Database Development Azure Functions (7)
Database Development Change Data Capture (15)
Database Development Common Runtime Language (13)
Database Development Common Table Expressions (4)
Database Development Constraints (20)
Database Development Data Cleansing for Validation (4)
Database Development Data Science (3)
Database Development Data Types (18)
Database Development Database Design (80)
Database Development Dates (54)
Database Development Debugging (4)
Database Development Dynamic Management Views and Functions (33)
Database Development Dynamic SQL (7)
Database Development Entity Framework (13)
Database Development Error Handling (11)
Database Development Full Text Search (21)
Database Development Functions System (74)
Database Development Functions User Defined UDF (41)
Database Development Identities (17)
Database Development Import and Export (77)
Database Development In Memory OLTP (32)
Database Development JOIN Tables (21)
Database Development Language Integrated Query LINQ (7)
Database Development Microsoft Access Integration (8)
Database Development Microsoft Excel Integration (44)
Database Development Microsoft Flow (1)
Database Development Paging (5)
Database Development Python (85)
Database Development Query Optimization (15)
Database Development Query Plans (20)
Database Development R Language (11)
Database Development Scripts (35)
Database Development Service Broker (11)
Database Development Spatial Data Storage (9)
Database Development SQL Injection (5)
Database Development SQL Server Management Objects SMO (3)
Database Development Stored Procedures (29)
Database Development Synonyms (5)
Database Development Table Valued Parameters (4)
Database Development Temp Tables (9)
Database Development Temporal Tables (13)
Database Development Testing (32)
Database Development Transactions (9)
Database Development Triggers (44)
Database Development TSQL (389)
Database Development User Defined Type UDT (3)
Database Development Views (16)
Database Development XML (14)
Integration Services Data Transformation Services (5)
Integration Services Integration Services Administration (10)
Integration Services Integration Services Analysis Services Tasks (5)
Integration Services Integration Services Best Practices (12)
Integration Services Integration Services Configuration Options (22)
Integration Services Integration Services Connection Managers (5)
Integration Services Integration Services Control Flow Transformations (14)
Integration Services Integration Services Data Flow Transformations (19)
Integration Services Integration Services Development (109)
Integration Services Integration Services Email (3)
Integration Services Integration Services Error Handling (8)
Integration Services Integration Services Excel (14)
Integration Services Integration Services Execute Package Options (8)
Integration Services Integration Services Import and Export Wizard (2)
Integration Services Integration Services NULL Management (4)
Integration Services Integration Services Oracle (4)
Integration Services Integration Services Performance (12)
Integration Services Integration Services Security (7)
Integration Services Integration Services Upgrade (4)
Power Platform Power Apps (20)
Power Platform Power BI (168)
Power Platform Power BI Charts (57)
Power Platform Power BI Formatting (17)
Professional Development Professional Development Books (3)
Professional Development Professional Development Branding (16)
Professional Development Professional Development Career (18)
Professional Development Professional Development Career Planning (16)
Professional Development Professional Development Career Transition (4)
Professional Development Professional Development Certifications (61)
Professional Development Professional Development Community (16)
Professional Development Professional Development Conferences (2)
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 (18)
Professional Development Professional Development Management (14)
Professional Development Professional Development Recruiters (6)
Professional Development Professional Development Resume (13)
Professional Development Professional Development Skills Development (18)
Reporting Services Reporting Services Administration (21)
Reporting Services Reporting Services Analysis Services (4)
Reporting Services Reporting Services Best Practices (6)
Reporting Services Reporting Services Charts (25)
Reporting Services Reporting Services Configuration (10)
Reporting Services Reporting Services Custom Report (2)
Reporting Services Reporting Services Dashboard (1)
Reporting Services Reporting Services Data Sources (10)
Reporting Services Reporting Services Development (39)
Reporting Services Reporting Services Drill Through (4)
Reporting Services Reporting Services Dynamic Reports (11)
Reporting Services Reporting Services Filtering (3)
Reporting Services Reporting Services Formatting (26)
Reporting Services Reporting Services Functions (5)
Reporting Services Reporting Services Images (2)
Reporting Services Reporting Services Installation (10)
Reporting Services Reporting Services KPI (5)
Reporting Services Reporting Services Maps (4)
Reporting Services Reporting Services Migration (5)
Reporting Services Reporting Services Monitoring (5)
Reporting Services Reporting Services Network Load Balancing (4)
Reporting Services Reporting Services Overview (5)
Reporting Services Reporting Services Parameters (15)
Reporting Services Reporting Services Performance (6)
Reporting Services Reporting Services Report Builder (9)
Reporting Services Reporting Services Report Models (1)
Reporting Services Reporting Services Security (8)
Reporting Services Reporting Services SharePoint (1)
Reporting Services Reporting Services Subreports (4)
Reporting Services Reporting Services Tutorials (1)
Security Auditing and Compliance (46)
Security Encryption (35)
Security Security (199)
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)
Tools Azure Data Studio (17)
Tools SQL Operations Studio (11)
Tools SQL Server Agent (94)
Tools SQL Server Management Studio (78)
Tools SQL Server Management Studio Configuration (22)
Tools SQL Server Management Studio Shortcuts (9)
Tools Tools (35)

get free sql tips
agree to terms