> For the complete documentation index, see [llms.txt](https://helpcenter.xopero.com/xopero-one-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.xopero.com/xopero-one-en/common-issues/workstations-and-servers/microsoft-sql-server-database-backup-ends-with-dv0270-user-defined-script-failed-error.md).

# Microsoft SQL Server database backup ends with "DV0270:User-defined script failed" error

## ⚠️ Issue

> **Microsoft SQL Server** database backup task ends with a **"DV0270:User-defined script failed"** error.

***

## 💡 Cause

Some newer versions of **Microsoft SQL Server** use the ODBC driver 18, which enforces encryption by default and may therefore cause the error described above.

***

## ✅ Resolution

ODBC driver 18 encrypted connections requirement can be met by using a self-signed certificate.

The step-by-step instructions below describe how to generate, configure, and install the certificate in **Microsoft SQL Server**.

{% file src="/files/u9BV4VB8lmvCmAMH9ZuR" %}
