Guides — 17 for SQL Server

SQL Server guides

Everything we've written about SQL Server: connections, SQL patterns, imports, clients, and comparisons.

01Connect & How-To

Connect & How-To

Connect & How-ToSQL Server

SQL Server Indexes Explained

Clustered vs nonclustered indexes, included columns, key lookups, filtered indexes, and columnstore, with execution plan checks to verify indexes are used.

8 min read
Connect & How-ToSQL Server

Working with JSON in SQL Server

A practical guide to T-SQL JSON functions: JSON_VALUE, JSON_QUERY, OPENJSON, FOR JSON, JSON_MODIFY, plus the native json type and JSON indexes in SQL Server 2025.

8 min read
Connect & How-ToSQL Server

How to Connect to SQL Server from Ruby

Connect to Microsoft SQL Server from Ruby with tiny_tds and FreeTDS, plus Sequel and ActiveRecord. Working code for connections, parameterized queries, the OUTPUT clause for generated keys, TLS/encryption on FreeTDS, named instances, and the errors you actually hit.

8 min read
Connect & How-ToSQL Server

How to Connect to SQL Server from PHP

Connect to Microsoft SQL Server from PHP with the official sqlsrv and pdo_sqlsrv drivers: ODBC Driver 18, the Encrypt-defaults-on TLS trap, prepared statements, transactions, the OUTPUT clause for generated keys, and the errors you actually hit.

7 min read
Connect & How-ToSQL Server

How to Connect to SQL Server from C# (.NET)

Connect to Microsoft SQL Server from C# with Microsoft.Data.SqlClient: ADO.NET basics, async queries, parameters, the Encrypt-by-default TLS change that breaks local connections, pooling, Dapper and EF Core, and the errors you actually hit.

8 min read
Connect & How-ToSQL Server

How to Connect to SQL Server from Java

Connect to Microsoft SQL Server from Java with the official mssql-jdbc driver: JDBC URL, the encrypt-by-default TLS change that breaks local connections, HikariCP pooling, named instances, integrated auth, and the errors you actually hit.

8 min read
Connect & How-ToSQL Server

How to Connect to SQL Server from Go

Connect to Microsoft SQL Server from Go with the official microsoft/go-mssqldb driver. Working code for the URL DSN, @p1 named parameters, the LastInsertId trap, the encrypt default, named instances, Azure AD auth, and connection pooling.

8 min read
Connect & How-ToSQL Server

How to Connect to SQL Server from Node.js

Connect to Microsoft SQL Server from Node.js using the mssql package over the Tedious driver. Working code for connection pools, the encrypt/trustServerCertificate trap, Azure AD auth, and parameterized queries.

3 min read
Connect & How-ToSQL Server

How to Connect to SQL Server from Python

Connect to Microsoft SQL Server from Python with pyodbc, the new official mssql-python driver, or pymssql. Working code, the ODBC Driver 18 encryption trap, Linux setup, and which driver to pick in 2026.

7 min read
← All guides