---
name: "URI::mssql"
section: "3pm"
platform: "linux"
package: "liburi-db-perl"
version: "0.23-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/URI::mssql"
---

# URI::mssql(3pm)

Microsoft SQL Server database URI

## Name

URI::mssql - Microsoft SQL Server database URI

## Description

URI::db format for Microsoft SQL Server.

## Interface

The following differences exist compared to the `"URI::db"` interface:

### Instance Methods

*"dbi\_dsn"*

```
  my $dsn = $uri->dbi_dsn;
 $dsn = $uri->dbi_dsn($driver);
```

Extends the implementation of `"dbi_dsn"` to support a driver argument. By default, `"dbi_dsn"` returns a DSN appropriate for use with DBD::ODBC. Pass "sybase" or "ado" to instead get a DSN appropriate to DBD::Sybase or DBD::ADO, respectively. Note that DBD::ADO value is experimental and subject to change. Feedback wanted \<https://github.com/theory/uri-db/issues/11\>.
