---
title: "How to find the ASCII value of any character in SQL Server?"  
description: "How to find the ASCII value of any character in SQL Server?"  
author: "Ashutosh Kumar Verma"  
published: 2021-11-15  
canonical: https://www.mindstick.com/interview/33822/how-to-find-the-ascii-value-of-any-character-in-sql-server  
category: "mssql server"  
tags: ["sql server", "sql"]  
reading_time: 1 minute  

---

# How to find the ASCII value of any character in SQL Server?

The ASCII() function is used to find the ASCII value of any character in SQL server.

## Example:

```
SELECT ASCII('A');
```

## Output:

65 **\**

```
SELECT ASCII('?');
```

## Output:

63 **\**

```
SELECT ASCII('n');
```

**Output:**

110

\

## Answers

### Answer by Ashutosh Kumar Verma

The ASCII() function is used to find the ASCII value of any character in SQL server.

## Example:

```
SELECT ASCII('A');
```

## Output:

65 **\**

```
SELECT ASCII('?');
```

## Output:

63 **\**

```
SELECT ASCII('n');
```

**Output:**

110

\


---

Original Source: https://www.mindstick.com/interview/33822/how-to-find-the-ascii-value-of-any-character-in-sql-server

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
