Ysaias Portes

Principal Database Engineer and founder of Forward Thinkers Consulting, a data engineering practice I started in 2010. I work on SQL Server administration, security, high availability, and migrations, plus SSIS ETL and healthcare EDI X12 for payers and health systems.

Before consulting full time I spent 13 years as a senior DBA at a large hospital system, running 80+ SQL Servers with 3,000+ databases and building its first enterprise data warehouse, and four years leading business intelligence at a Medicaid health plan.

I maintain sp_SQLFlightRecorder, an open-source T-SQL diagnostic recorder, and contribute to Ola Hallengren's Maintenance Solution.

Based in Miramar, Florida. forwardthinkersconsulting.com
  • Interests: SQL Server internals, performance tuning, high availability, ETL and data integration, healthcare data and EDI X12, Azure SQL
  • Skills: SQL Server 6.5-2022, T-SQL, performance tuning, AlwaysOn Availability Groups, clustering, replication, disaster recovery, TDE and Always Encrypted, SSIS, SSRS, Azure SQL Database and Managed Instance, Azure DevOps, EDI X12 (834, 835, 837, 270/271, 278), C#, PowerShell

Blogs

T-SQL Tuesday #203: Risk and Reward

By

This is timely, as I’m currently on a boat in the Adriatic taking a...

dataMinds Connect 2026 – Slides & Scripts

By

You can find the slides and SQL scripts for my session “Spice up your...

How to Clear the SSMS Cache (SSMS 21 and Later)

By

How to Clear the SSMS Cache (SSMS 21 and Later) Updated...

Read the latest Blogs

Forums

Alamat BCA KCP Pasar Kenari Telp:08218200203

By layanan_Bca88

Telp/Wa 628218200203 Gedung Sutrado, Jl. Kenari 2 No.5 Lt. 1, RT.2/RW.3, Kenari, Kec. Senen,...

Alamat BCA KCP Biak Telp:08217555651

By R4nt4u

Telp/Wa 628218200203 Jl. Biak No.44 AB, RT.8/RW.11, Cideng, Kecamatan Gambir, Kota Jakarta Pusat, Daerah...

Alamat BCA KCP Plaza Index Telp:08217555651

By m4rt1n4

Telp/Wa 628217555651 Gedung Plaza Bank Index Ground, Jl. M.H. Thamrin No.57 Floor Suite GF-21,...

Visit the forum

Question of the Day

Using CHOOSE()

We have this code that sets some status values and then queries them using the CHOOSE() function in SQL Server 2025.

CREATE TABLE Status
(
    StatusID INT,
    StatusDescription VARCHAR(20)
);
GO
INSERT dbo.Status
(
    StatusID,
    StatusDescription
)
VALUES
(0, 'Uncategorized'),
(1, 'Active'),
(2, 'Inactive'),
(3, 'Temp');

GO
SELECT CHOOSE(StatusID, 'Unknown', 'Active', 'Inactive', 'Temporary')
FROM Status;
When the SELECT runs, what is returned?

See possible answers