Skip to content

Commit fbe2568

Browse files
Merge pull request #36963 from MicrosoftDocs/main
Auto Publish – main to live - 2026-03-27 17:30 UTC
2 parents 730d417 + bcea54c commit fbe2568

8 files changed

Lines changed: 179 additions & 116 deletions

azure-sql/managed-instance/connectivity-architecture-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ For more information about the connectivity architecture and management traffic,
149149

150150
The following constraints on virtual network features and traffic are in effect:
151151

152-
- **Private subnets**: Deploying SQL managed instances in private subnets (where [default outbound access](/azure/virtual-network/ip-services/default-outbound-access) is disabled) is currently not supported.
152+
- **Private subnets**: SQL managed instances can operate in private subnets. However, deployments to private subnets are expected to fail in the following regions: **Qatar Central**, **Israel Central**, **Israel Northwest**, **UAE Central**, and **UAE North**. To deploy a SQL managed instance in one of these regions, enable default outbound access for the subnet, deploy the instance, and then change the subnet to back to private (disable default outbound access). For information on how to configure private subnets, see [Default outbound access in Azure](/azure/virtual-network/ip-services/default-outbound-access).
153153
- **VNet encryption**: Deploying and operating SQL managed instances in virtual networks where [Azure Virtual Network encryption](/azure/virtual-network/virtual-network-encryption-overview) is enabled is currently not supported.
154154
- **Database mail to external SMTP relays on port 25**: Sending [database mail](/sql/relational-databases/database-mail/configure-database-mail) via port 25 to external email services is only available to certain subscription types in Microsoft Azure. Instances on other subscription types should use a different port (for example, 587) to contact external SMTP relays. Otherwise, instances might fail to deliver database mail. For more information, see [Troubleshoot outbound SMTP connectivity problems in Azure](/azure/virtual-network/troubleshoot-outbound-smtp-connectivity).
155155
- **Microsoft peering**: Enabling [Microsoft peering](/azure/expressroute/expressroute-faqs#microsoft-peering) on ExpressRoute circuits that are peered directly or transitively with a virtual network in which SQL Managed Instance resides affects traffic flow between SQL Managed Instance components inside the virtual network and services it depends on. Availability issues result. SQL Managed Instance deployments to a virtual network that already has Microsoft peering enabled are expected to fail.

docs/connect/node-js/step-3-proof-of-concept-connecting-to-sql-using-node-js.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Step 3: Connecting to SQL using Node.js"
33
description: "This example should be considered a proof of concept showing how to connect to SQL using Node.js and is simplified for clarity."
44
author: David-Engel
55
ms.author: davidengel
6-
ms.date: "02/26/2026"
6+
ms.date: "03/25/2026"
77
ms.service: sql
88
ms.subservice: connectivity
99
ms.topic: install-set-up-deploy
@@ -13,7 +13,22 @@ ms.topic: install-set-up-deploy
1313
:::image type="icon" source="../../includes/media/download.svg" border="false"::: **[Download Node.js SQL driver](../sql-connection-libraries.md#anchor-20-drivers-relational-access)**
1414

1515
This example should be considered a proof of concept only. The sample code is simplified for clarity, and doesn't necessarily represent best practices recommended by Microsoft. Other examples, which use the same crucial functions are available in the [GitHub sample repository](https://github.com/tediousjs/tedious/blob/master/examples/).
16-
16+
17+
## Prerequisites
18+
19+
Before you run the sample code, make sure the following prerequisites are met:
20+
21+
- **Node.js** is installed on your development machine. Download it from [nodejs.org](https://nodejs.org/).
22+
- The **tedious** npm package is installed. Run `npm install tedious` in your project directory.
23+
- A SQL Server instance is available and configured to accept connections:
24+
- **TCP/IP protocol** is enabled in SQL Server Configuration Manager. TCP/IP is disabled by default on SQL Server Express editions.
25+
- **SQL Server Browser service** is running if you're connecting to a named instance.
26+
- The firewall allows connections on the SQL Server port (default: 1433).
27+
- For SQL Server authentication, a SQL login is enabled and SQL Server is configured for **mixed mode authentication**.
28+
29+
> [!TIP]
30+
> If you receive a connection error such as `Failed to connect`, verify that TCP/IP is enabled and the SQL Server service is running. For local development, try connecting with `server: 'localhost'` or `server: '127.0.0.1'`.
31+
1732
## Step 1: Connect
1833

1934
Use the **new Connection** function to connect to SQL Database.
@@ -45,7 +60,7 @@ Use the **new Connection** function to connect to SQL Database.
4560

4661
```
4762

48-
## Step 2: Execute a query
63+
## Step 2: Execute a query
4964

5065

5166
Execute all SQL statements using the **new Request** function. If the statement returns rows, such as a select statement, you can retrieve them using the **request.on** function. If there are no rows, the request.on function returns empty lists.

docs/connect/odbc/download-odbc-driver-for-sql-server.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Download ODBC Driver for SQL Server
33
description: Download the Microsoft ODBC Driver for SQL Server to develop native-code applications that connect to SQL Server and Azure SQL Database.
44
author: David-Engel
55
ms.author: davidengel
6-
ms.date: 12/17/2025
6+
ms.date: 03/25/2026
77
ms.service: sql
88
ms.subservice: connectivity
99
ms.topic: concept-article
@@ -18,6 +18,17 @@ ms.custom:
1818

1919
Microsoft ODBC Driver for SQL Server is a single dynamic-link library (DLL) containing run-time support for applications using native-code APIs to connect to SQL Server. Use Microsoft ODBC Driver 18 for SQL Server to create new applications or enhance existing applications that need to take advantage of newer SQL Server features.
2020

21+
## Prerequisites
22+
23+
Before you install the ODBC driver on Windows, make sure you have the following prerequisites:
24+
25+
- **Visual C++ Redistributable**: The ODBC Driver for SQL Server requires the Microsoft Visual C++ Redistributable. If this component isn't already installed on your system, download and install it before installing the ODBC driver. Download the version that matches your system architecture (x64, x86, or ARM64) from [Microsoft Visual C++ Redistributable latest supported downloads](/cpp/windows/latest-supported-vc-redist).
26+
27+
> [!NOTE]
28+
> Most Windows systems already have the Visual C++ Redistributable installed. If the ODBC driver installation fails or the driver doesn't load correctly, verify that the Visual C++ Redistributable is installed on your system.
29+
30+
Linux and macOS don't require this component. For Linux and macOS prerequisites, see the installation guides linked in the [Download for Linux and macOS](#download-for-linux-and-macos) section.
31+
2132
## Download for Windows
2233

2334
The redistributable installer for Microsoft ODBC Driver 18 for SQL Server installs the client components, which are required during run time to take advantage of newer SQL Server features. It optionally installs the header files needed to develop an application that uses the ODBC API. Starting with version 17.4.2, the installer also includes and installs the Microsoft Active Directory Authentication Library (ADAL.dll).

docs/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to install the Microsoft ODBC Driver for SQL Server on ma
44
author: David-Engel
55
ms.author: davidengel
66
ms.reviewer: vanto
7-
ms.date: 09/12/2024
7+
ms.date: 03/25/2026
88
ms.service: sql
99
ms.subservice: connectivity
1010
ms.topic: install-set-up-deploy
@@ -85,11 +85,28 @@ The driver needs to load the resource file in order to function. This file is ca
8585

8686
Some users encounter an issue when trying to connect after installing the ODBC driver and receive an error like: `"[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 18 for SQL Server' : file not found (0) (SQLDriverConnect)"`. It might be the case that unixODBC isn't configured correctly to find registered drivers. In these cases, creating symbolic links can resolve the issue.
8787

88+
The correct paths depend on your Mac's architecture. Run `brew --prefix` to determine your Homebrew installation prefix:
89+
90+
- **Apple Silicon (ARM64)** — Homebrew prefix is `/opt/homebrew`
91+
- **Intel (x64)** — Homebrew prefix is `/usr/local`
92+
93+
For **Apple Silicon (ARM64)** Macs:
94+
95+
```bash
96+
sudo ln -s /opt/homebrew/etc/odbcinst.ini /etc/odbcinst.ini
97+
sudo ln -s /opt/homebrew/etc/odbc.ini /etc/odbc.ini
98+
```
99+
100+
For **Intel (x64)** Macs:
101+
88102
```bash
89103
sudo ln -s /usr/local/etc/odbcinst.ini /etc/odbcinst.ini
90104
sudo ln -s /usr/local/etc/odbc.ini /etc/odbc.ini
91105
```
92106

107+
> [!NOTE]
108+
> On macOS 15 (Sequoia) and later, the `/usr/local/etc/` directory might not exist by default, especially on Apple Silicon Macs. If the directory doesn't exist, the ODBC configuration files are located under your Homebrew prefix. Run `brew --prefix` to verify the correct path for your system.
109+
93110
For other cases where you're unable to make a connection to SQL Server using the ODBC driver, see the known issues article on [troubleshooting connection problems](known-issues-in-this-version-of-the-driver.md#connectivity).
94111

95112
If brew is having trouble finding the formulas, make sure you didn't skip the install step: `brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release`

docs/connect/php/microsoft-php-drivers-for-sql-server-support-matrix.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Microsoft Drivers for PHP Support Matrix"
33
description: "This page contains the support matrix and support lifecycle policy for the Microsoft PHP Drivers for SQL Server."
44
author: David-Engel
55
ms.author: davidengel
6-
ms.date: 02/24/2026
6+
ms.date: 03/25/2026
77
ms.service: sql
88
ms.subservice: connectivity
99
ms.topic: concept-article
@@ -161,10 +161,8 @@ The following Linux and macOS operating system versions (64-bit only) are suppor
161161
|macOS Sierra (64-bit) | | | | | | |Yes|Yes|Yes|Yes| | |
162162
|macOS El Capitan (64-bit) | | | | | | | |Yes|Yes|Yes| | |
163163

164-
## See Also
164+
## Related content
165165

166-
[Release Notes](release-notes-php-sql-driver.md)
167-
168-
[Support Resources](support-resources-for-the-php-sql-driver.md)
169-
170-
[System Requirements](system-requirements-for-the-php-sql-driver.md)
166+
- [Release notes for the Microsoft PHP Drivers for SQL Server](release-notes-php-sql-driver.md)
167+
- [Support resources for the PHP SQL driver](support-resources-for-the-php-sql-driver.md)
168+
- [System requirements for the Microsoft PHP Drivers for SQL Server](system-requirements-for-the-php-sql-driver.md)

docs/connect/php/step-1-configure-development-environment-for-php-development.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Step 1 of this getting started guide involves installing PHP, the M
44
author: David-Engel
55
ms.author: davidengel
66
ms.reviewer: randolphwest
7-
ms.date: 01/02/2026
7+
ms.date: 03/25/2026
88
ms.service: sql
99
ms.subservice: connectivity
1010
ms.topic: how-to
@@ -15,19 +15,32 @@ ms.custom:
1515

1616
[!INCLUDE [Driver_PHP_Download](../../includes/driver_php_download.md)]
1717

18-
1. Identify which version of the PHP driver to use, based on your environment. For more information, see [System requirements for the Microsoft Drivers for PHP for SQL Server](system-requirements-for-the-php-sql-driver.md).
18+
To connect to SQL Server from a PHP application, you need the following components installed in this order:
1919

20-
1. Download and install the [Microsoft Drivers for PHP for SQL Server](microsoft-php-driver-for-sql-server.md#download).
20+
1. **PHP runtime**: Download and install PHP from [php.net](https://www.php.net/downloads.php) (Windows) or use your system package manager (Linux/macOS).
2121

22-
1. Download and install the [ODBC Driver for SQL Server](../odbc/download-odbc-driver-for-sql-server.md).
22+
1. **Microsoft ODBC Driver for SQL Server**: The PHP drivers require the ODBC driver. Download it from [Download ODBC Driver for SQL Server](../odbc/download-odbc-driver-for-sql-server.md).
23+
24+
1. **Microsoft Drivers for PHP for SQL Server**: Download the drivers from [Download the Microsoft Drivers for PHP for SQL Server](download-drivers-php-sql-server.md). For more information on version compatibility, see [System requirements for the Microsoft Drivers for PHP for SQL Server](system-requirements-for-the-php-sql-driver.md).
2325

24-
1. Configure the PHP driver and web server for your specific operating system.
26+
1. **Web server** (optional): Configure IIS (Windows) or Apache/Nginx (Linux/macOS) if you're building web applications.
2527

2628
## Windows
2729

28-
- To configure loading the PHP driver, see [Loading the Microsoft Drivers for PHP for SQL Server](loading-the-php-sql-driver.md).
29-
- To configure IIS to host PHP applications, see [Download the Microsoft Drivers for PHP for SQL Server](download-drivers-php-sql-server.md).
30+
1. [Download and install PHP](https://windows.php.net/download/) — use the **Thread Safe** (TS) version for IIS, or **Non-Thread Safe** (NTS) for Apache or CLI.
31+
1. Download and install the [ODBC Driver for SQL Server](../odbc/download-odbc-driver-for-sql-server.md).
32+
1. Download the [Microsoft Drivers for PHP for SQL Server](download-drivers-php-sql-server.md) and extract the `.dll` files to your PHP extensions directory.
33+
1. Enable the driver by adding the following lines to your `php.ini` file:
34+
35+
```ini
36+
extension=php_sqlsrv.dll
37+
extension=php_pdo_sqlsrv.dll
38+
```
39+
40+
1. Verify the installation by running `php -m` and checking that `sqlsrv` and `pdo_sqlsrv` appear in the list.
41+
42+
For detailed instructions, see [Loading the Microsoft Drivers for PHP for SQL Server](loading-the-php-sql-driver.md). To configure IIS, see [Download the Microsoft Drivers for PHP for SQL Server](download-drivers-php-sql-server.md).
3043

3144
## Linux and macOS
3245

33-
To configure loading the PHP driver and configure your web server to host PHP applications, see [Linux and macOS Installation Tutorial for the Microsoft Drivers for PHP for SQL Server](installation-tutorial-linux-mac.md).
46+
For step-by-step instructions on installing PHP, the ODBC driver, and the PHP drivers on Linux and macOS, see [Linux and macOS Installation Tutorial for the Microsoft Drivers for PHP for SQL Server](installation-tutorial-linux-mac.md).

docs/connect/ruby/step-1-configure-development-environment-for-ruby-development.md

Lines changed: 82 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -3,100 +3,91 @@ title: "Step 1: Configure development environment for Ruby"
33
description: "Step 1 of this getting started guide involves installing Ruby and an ODBC driver for SQL Server into your development environment."
44
author: David-Engel
55
ms.author: davidengel
6-
ms.date: "01/19/2017"
6+
ms.date: "03/25/2026"
77
ms.service: sql
88
ms.subservice: connectivity
99
ms.custom: linux-related-content
1010
ms.topic: how-to
1111
---
1212
# Step 1: Configure development environment for Ruby development
13-
You will need to configure your development environment with the prerequisites in order to develop an application using the Ruby Driver for SQL Server.
14-
15-
The Ruby Driver uses the TDS protocol, which is enabled by default in SQL Server and Azure SQL Database. No additional configuration is required.
16-
17-
18-
## Windows
19-
20-
1. **Download Ruby Installer**
21-
If your machine does not have Ruby, install it. For new ruby users, we recommend you use Ruby 2.2.X installers, which provide a stable language and an extensive list of packages (gems) that are compatible and updated. Go the [Ruby download page](https://rubyinstaller.org/downloads/) and download the appropriate 2.1.x installer. For example if you are on a 64-bit machine, download the Ruby 2.1.6 (x64) installer.
22-
23-
2. **Install Ruby**
24-
Once the installer is downloaded:
25-
a. Double-click the file to start the installer.
26-
b. Select your language, and agree to the terms.
27-
c. On the install settings screen, select the check boxes next to both Add Ruby executables to your PATH and associate `.rb` and `.rbw` files with this Ruby installation.
28-
29-
3. **Download Ruby DevKit**
30-
Download DevKit from the RubyInstaller page
31-
32-
4. **Install Ruby DevKit**
33-
After the download is finished:
34-
a. Double-click the file. You will be asked where to extract the files.
35-
b. Click the "..." button, and select "C:\DevKit". You will probably need to create this folder first by clicking "Make New Folder".
36-
c. Click "OK", and then "Extract", to extract the files.
37-
38-
5. **Open cmd.exe**
39-
40-
6. **Initialize Ruby DevKit**
41-
```
42-
> chdir C:\DevKit
43-
> ruby dk.rb init
44-
> ruby dk.rb install
45-
```
46-
47-
7. **Install TinyTDS gem**
48-
```
49-
> gem inst tiny_tds
50-
```
51-
52-
## Ubuntu Linux
53-
54-
1. **Open terminal**
55-
56-
2. **Install Ruby Version Manager (`rvm`) and prerequisites**
57-
```
58-
> sudo apt-get --assume-yes update
59-
> command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
60-
> curl -L https://get.rvm.io | bash -s stable
61-
> source ~/.rvm/scripts/rvm
62-
```
63-
64-
3. **Use `rvm` to install Ruby**
65-
For example, install version 2.3.0 of Ruby:
66-
```
67-
> rvm install 2.3.0
68-
> rvm use 2.3.0 --default
69-
> ruby -v
70-
```
71-
           Ensure that the output of the last command indicates you are running version 2.3.0.
72-
73-
4. **Install FreeTDS**
74-
```
75-
> sudo apt-get --assume-yes install freetds-dev freetds-bin
76-
```
77-
78-
5. **Install TinyTDS**
79-
```
80-
> gem install tiny_tds
81-
```
82-
83-
## macOS
84-
85-
Note: macOS already has Ruby pre-installed, as the OS has a dependency.
86-
87-
1. **Open terminal**
88-
89-
2. **Install Homebrew package manager**
90-
```
91-
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
92-
```
93-
94-
3. **Install FreeTDS**
95-
```
96-
> brew install FreeTDS
97-
```
98-
99-
4. **Install TinyTDS gem**
100-
```
101-
> gem install tiny_tds
102-
```
13+
14+
Configure your development environment with the prerequisites to develop an application by using the Ruby Driver for SQL Server.
15+
16+
The Ruby Driver uses the TDS protocol, which is enabled by default in SQL Server and Azure SQL Database. No additional configuration is required.
17+
18+
## Windows
19+
20+
1. **Download Ruby Installer**
21+
If your machine doesn't have Ruby, install it. Go to the [Ruby download page](https://rubyinstaller.org/downloads/) and download the latest **Ruby+Devkit** installer for your architecture (x64 or x86). For example, download **Ruby+Devkit 3.2.x (x64)**.
22+
23+
1. **Install Ruby**
24+
Run the installer:
25+
1. Select your language, and agree to the terms.
26+
1. On the install settings screen, select the check boxes next to both **Add Ruby executables to your PATH** and **Associate `.rb` and `.rbw` files with this Ruby installation**.
27+
1. After installation, the MSYS2 setup dialog appears. Select option **3** (MSYS2 and MINGW development toolchain) and press **Enter** to install the build tools.
28+
29+
1. **Open a new command prompt**
30+
31+
1. **Install TinyTDS gem**
32+
```
33+
gem install tiny_tds
34+
```
35+
36+
> [!NOTE]
37+
> Previous versions of Ruby (2.x) required a separate DevKit download and `dk.rb init` / `dk.rb install` commands. Ruby 3.0 and later versions include the MSYS2 DevKit in the installer, so separate DevKit setup is no longer required.
38+
39+
## Ubuntu Linux
40+
41+
1. **Open terminal**
42+
43+
1. **Install Ruby and prerequisites**
44+
```bash
45+
sudo apt-get update
46+
sudo apt-get install -y ruby-full build-essential
47+
```
48+
49+
1. **Verify Ruby installation**
50+
```bash
51+
ruby -v
52+
```
53+
54+
1. **Install FreeTDS**
55+
```bash
56+
sudo apt-get install -y freetds-dev freetds-bin
57+
```
58+
59+
1. **Install TinyTDS**
60+
```bash
61+
gem install tiny_tds
62+
```
63+
64+
## macOS
65+
66+
macOS includes a system Ruby installation, but for best results, install a current version by using Homebrew.
67+
68+
1. **Open terminal**
69+
70+
1. **Install Homebrew package manager**
71+
```bash
72+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
73+
```
74+
75+
1. **Install Ruby** (optional, if you need a newer version than the system Ruby)
76+
```bash
77+
brew install ruby
78+
```
79+
80+
1. **Install FreeTDS**
81+
```bash
82+
brew install FreeTDS
83+
```
84+
85+
1. **Install TinyTDS gem**
86+
```bash
87+
gem install tiny_tds
88+
```
89+
90+
## Related content
91+
92+
- [Step 2: Create a SQL database for Ruby development](step-2-create-a-sql-database-for-ruby-development.md)
93+
- [Step 3: Proof of concept connecting to SQL using Ruby](step-3-proof-of-concept-connecting-to-sql-using-ruby.md)

0 commit comments

Comments
 (0)