# 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" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
