ODBC data sources in Plesk
An ODBC DSN is a named database connection stored on the server. An application (most often classic ASP or an old ASP.NET application) refers to the database by the DSN name instead of a full connection string.
Where to find it: the domain card, the Dashboard tab, the Files & Databases group, ODBC Data Sources.

How to create a DSN
- Create the database and user first (creating a database).
- Click Add ODBC DSN.
- Enter the connection name — the application will find the database by it — and, optionally, a description.
- Choose the driver: for MS SQL, the SQL Server driver; for MariaDB/MySQL, the MySQL driver.
- Enter the connection parameters: server, database name, and the database user's login and password.
- If the form offers a connection test, run it, then save.
For MS SQL, specify the server with the instance, for example localhost\MSSQLSERVER2022 (see MS SQL in Plesk). For MariaDB, use localhost.
Using it in code
Classic ASP example:
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DSN=myshop;UID=appuser;PWD=YourPassword"New applications are better connected directly with a connection string — a DSN is mostly needed for legacy code.
Common mistakes
- Data source name not found — the DSN name in the code differs from the one you created.
- Login failed — a wrong password, or the MS SQL instance is missing.
- A 32-bit application cannot see the driver — turn on Enable 32-bit applications in the application pool.
- After changing the database user's password, update it in the DSN too.