---
product: Chilkat
product_version: 11.7.0
language: sqlserver
language_label: SQL Server
class: HttpResponse
license: bundle
deprecated: false
reference_html: https://www.chilkatsoft.com/refdoc/sqlserver_HttpResponseRef.html
---
# Chilkat HttpResponse — SQL Server — v11.7.0

> Chilkat 11.7.0 · language=sqlserver · class=HttpResponse
> Other versions: replace `11.7.0` in this URL. Other languages: `https://www.chilkatsoft.com/ai-docs/v/11.7.0/<lang>/classes/HttpResponse.md`.
> Language-wide rules (install, unlock, error model, strings/bytes): `https://www.chilkatsoft.com/ai-docs/v/11.7.0/sqlserver/guide.md`.

## Purpose

**Inspect HTTP status, headers, cookies, redirects, and response bodies.**

`Chilkat.HttpResponse` represents an HTTP response returned by certain `Chilkat.Http` methods. It provides access to the response status line, status code, headers, cookies, charset, content length, body bytes, body text, full MIME response, redirect URL, and helper methods for saving or loading the response body into Chilkat objects such as `BinData`, `StringBuilder`, `JsonObject`, `JsonArray`, and `Xml`.

**Status and reason**

Read the HTTP status code, status line, and related response information to determine whether the request succeeded, redirected, or failed.

**Headers and cookies**

Inspect response headers, retrieve individual header values, and access cookies returned by the server.

**Body as text or bytes**

Get the response body as raw bytes or decoded text, using the response charset information when appropriate.

**Structured body loading**

Load the body directly into `JsonObject`, `JsonArray`, `Xml`, `BinData`, or `StringBuilder` objects for further processing.

**Redirect information**

Access redirect-related information such as the redirect URL when the server responds with a redirect status.

**Save and inspect responses**

Save body content, inspect the full MIME-style response, and use response metadata for diagnostics, logging, or API troubleshooting.

**Common pattern:** Send a request with `Chilkat.Http`, check the `StatusCode`, inspect headers or cookies as needed, then retrieve the body in the form best suited to the response content: text, bytes, `BinData`, `StringBuilder`, JSON, or XML. Use `HttpResponse` for response inspection; use `Chilkat.Http` for the actual network request.

For an extended overview, see [HttpResponse Class Overview](https://www.chilkatsoft.com/httpresponse_class_overview.asp).

## Object creation, unlocking and error handling

**Object Creation**

```sql
DECLARE @hr int
DECLARE @httpResponse int
EXEC @hr = sp_OACreate 'Chilkat.HttpResponse', @httpResponse OUT
IF @hr <> 0
BEGIN
    PRINT 'Failed to create ActiveX component'
    RETURN
END

-- ... use @httpResponse ...

EXEC @hr = sp_OADestroy @httpResponse
```

T-SQL uses the Chilkat ActiveX through the OLE Automation stored procedures. They must be enabled once on the server (`EXEC sp_configure 'Ole Automation Procedures', 1; RECONFIGURE;`), and the Chilkat ActiveX registered must match the bitness of the SQL Server instance (64-bit for a 64-bit SQL Server). To bind to a specific major version of Chilkat, append the major version number to the ProgID, such as `sp_OACreate 'Chilkat.HttpResponse.11'` for Chilkat v11.\*.\*.

`sp_OACreate` returns an object token (an `int`) that is passed as the first argument of every `sp_OAMethod`, `sp_OAGetProperty` and `sp_OASetProperty` call, and released with `sp_OADestroy`. Objects returned by methods (such as an `HttpResponse` or `JsonObject`) are also tokens received through an `int` OUT parameter; they must likewise be destroyed, and the OUT parameter is `NULL` when the method fails to return an object. Objects passed as arguments are passed by their token. When an OLE Automation procedure itself fails (non-zero `@hr`), `sp_OAGetErrorInfo` describes the error.

Data types: strings are `nvarchar(4000)`; integers, booleans (1 or 0) and object tokens are `int`; dates are `datetime`. In the signatures on this page, `@success`, `@iResult`, `@sResult` and the like are the OUT variables receiving a method's return value, `@iValue` / `@sValue` receive or supply a property value, and the remaining `@` variables are the method's arguments in order.

A string returned through an OUT parameter is limited to 4000 characters. For longer values, retrieve the result as a result set into a table variable instead of an OUT parameter, for example `DECLARE @tmp TABLE (outputLine ntext)` followed by `INSERT INTO @tmp EXEC sp_OAGetProperty @httpResponse, 'LastErrorText'`. See [string length limitations for strings returned by sp_OAMethod calls](https://www.chilkatsoft.com/sql_server_nvarchar_max_limitation.asp).

Methods that pass or return raw byte arrays are not shown on this page, because `varbinary(max)` values cannot be exchanged through `sp_OAMethod` (see [varbinary(max) limitation](https://www.chilkatsoft.com/sql_server_varbinary_max_limitation.asp)). Use the `BinData`-based alternatives (methods ending in *Bd*) or the base64 / hex string-encoded variants instead. Binary *properties* (such as `LastBinaryResult`) can be retrieved as a result set into a table variable, as shown in their signatures. Asynchronous (*\*Async*) methods and event callbacks are not available from SQL Server.

Call `Global.UnlockBundle` once at the start of the program, before using this or any other Chilkat class. Any string unlocks a fully functional 30-day trial; a purchased unlock code is used in production. See `guide.md` for the exact code in SQL Server.

How failure is reported depends on the method's return type and is stated in the note under each method below. In every case the diagnostic text is in the `LastErrorText` property of the object whose method was called.

## Members common to every Chilkat class

Documented once per language in `common-members.md`; listed here so this page is self-contained.

| Property | Signature | Access | Meaning |
|---|---|---|---|
| `DebugLogFilePath` | `EXEC sp_OAGetProperty @httpResponse, 'DebugLogFilePath', @sValue OUT EXEC sp_OASetProperty @httpResponse, 'DebugLogFilePath', @sValue` | read/write | If set to a file path, this property logs the LastErrorText of each Chilkat method or property call to the specified file. |
| `LastBinaryResult` | `INSERT INTO @tmp EXEC sp_OAGetProperty @httpResponse, 'LastBinaryResult'` | read-only | This property is mainly used in SQL Server stored procedures to retrieve binary data from the last method call that returned binary data. |
| `LastErrorHtml` | `EXEC sp_OAGetProperty @httpResponse, 'LastErrorHtml', @sValue OUT` | read-only | Provides HTML-formatted information about the last called method or property. |
| `LastErrorText` | `EXEC sp_OAGetProperty @httpResponse, 'LastErrorText', @sValue OUT` | read-only | Provides plain text information about the last called method or property. |
| `LastErrorXml` | `EXEC sp_OAGetProperty @httpResponse, 'LastErrorXml', @sValue OUT` | read-only | Provides XML-formatted information about the last called method or property. |
| `LastMethodSuccess` | `EXEC sp_OAGetProperty @httpResponse, 'LastMethodSuccess', @iValue OUT EXEC sp_OASetProperty @httpResponse, 'LastMethodSuccess', @iValue` | read/write | Indicates the success or failure of the most recent method call: `1` means success, `0` means failure. |
| `LastStringResult` | `EXEC sp_OAGetProperty @httpResponse, 'LastStringResult', @sValue OUT` | read-only | In SQL Server stored procedures, this property holds the string return value of the most recent method call that returns a string. |
| `LastStringResultLen` | `EXEC sp_OAGetProperty @httpResponse, 'LastStringResultLen', @iValue OUT` | read-only | The length, in characters, of the string contained in the LastStringResult property. |
| `VerboseLogging` | `EXEC sp_OAGetProperty @httpResponse, 'VerboseLogging', @iValue OUT EXEC sp_OASetProperty @httpResponse, 'VerboseLogging', @iValue` | read/write | If set to `1`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may contain more verbose information. |
| `Version` | `EXEC sp_OAGetProperty @httpResponse, 'Version', @sValue OUT` | read-only | Version of the component/library, such as "10.1.0" |

## Member index

| Member | Kind | Signature |
|---|---|---|
| `Body` | property, read-only | `INSERT INTO @tmp EXEC sp_OAGetProperty @httpResponse, 'Body'` |
| `BodyQP` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'BodyQP', @sValue OUT` |
| `BodyStr` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'BodyStr', @sValue OUT` |
| `Charset` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'Charset', @sValue OUT` |
| `ContentLength` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'ContentLength', @iValue OUT` |
| `DateStr` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'DateStr', @sValue OUT` |
| `Domain` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'Domain', @sValue OUT` |
| `FinalRedirectUrl` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'FinalRedirectUrl', @sValue OUT` |
| `FullMime` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'FullMime', @sValue OUT` |
| `Header` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'Header', @sValue OUT` |
| `NumCookies` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'NumCookies', @iValue OUT` |
| `NumHeaderFields` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'NumHeaderFields', @iValue OUT` |
| `StatusCode` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'StatusCode', @iValue OUT` |
| `StatusLine` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'StatusLine', @sValue OUT` |
| `StatusText` | property, read-only | `EXEC sp_OAGetProperty @httpResponse, 'StatusText', @sValue OUT` |
| `UncommonOptions` | property, read/write | `EXEC sp_OAGetProperty @httpResponse, 'UncommonOptions', @sValue OUT EXEC sp_OASetProperty @httpResponse, 'UncommonOptions', @sValue` |
| `GetBodyBd` | method | `EXEC sp_OAMethod @httpResponse, 'GetBodyBd', @success OUT, @binData` |
| `GetBodyJarr` | method | `EXEC sp_OAMethod @httpResponse, 'GetBodyJarr', @success OUT, @jarr` |
| `GetBodyJson` | method | `EXEC sp_OAMethod @httpResponse, 'GetBodyJson', @success OUT, @json` |
| `GetBodySb` | method | `EXEC sp_OAMethod @httpResponse, 'GetBodySb', @success OUT, @sb` |
| `GetBodyXml` | method | `EXEC sp_OAMethod @httpResponse, 'GetBodyXml', @success OUT, @xml` |
| `GetCookieDomain` | method | `EXEC sp_OAMethod @httpResponse, 'GetCookieDomain', @sResult OUT, @index` |
| `GetCookieExpiresStr` | method | `EXEC sp_OAMethod @httpResponse, 'GetCookieExpiresStr', @sResult OUT, @index` |
| `GetCookieName` | method | `EXEC sp_OAMethod @httpResponse, 'GetCookieName', @sResult OUT, @index` |
| `GetCookiePath` | method | `EXEC sp_OAMethod @httpResponse, 'GetCookiePath', @sResult OUT, @index` |
| `GetCookieValue` | method | `EXEC sp_OAMethod @httpResponse, 'GetCookieValue', @sResult OUT, @index` |
| `GetHeaderField` | method | `EXEC sp_OAMethod @httpResponse, 'GetHeaderField', @sResult OUT, @fieldName` |
| `GetHeaderFieldAttr` | method | `EXEC sp_OAMethod @httpResponse, 'GetHeaderFieldAttr', @sResult OUT, @fieldName, @attrName` |
| `GetHeaderName` | method | `EXEC sp_OAMethod @httpResponse, 'GetHeaderName', @sResult OUT, @index` |
| `GetHeaderValue` | method | `EXEC sp_OAMethod @httpResponse, 'GetHeaderValue', @sResult OUT, @index` |
| `SaveBodyBinary` | method | `EXEC sp_OAMethod @httpResponse, 'SaveBodyBinary', @success OUT, @path` |
| `SaveBodyText` | method | `EXEC sp_OAMethod @httpResponse, 'SaveBodyText', @success OUT, @bCrlf, @path` |
| `UrlEncParamValue` | method | `EXEC sp_OAMethod @httpResponse, 'UrlEncParamValue', @sResult OUT, @encodedParamString, @paramName` |

## Properties

### HttpResponse.Body

`Chilkat 11.7.0 · sqlserver · HttpResponse · Body · property · read-only`

```sql
INSERT INTO @tmp EXEC sp_OAGetProperty @httpResponse, 'Body'
```

The response body returned as a byte array.

### HttpResponse.BodyQP

`Chilkat 11.7.0 · sqlserver · HttpResponse · BodyQP · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'BodyQP', @sValue OUT
```

The same as the Body property, but returned as a quoted-printable encoded string.

### HttpResponse.BodyStr

`Chilkat 11.7.0 · sqlserver · HttpResponse · BodyStr · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'BodyStr', @sValue OUT
```

The response body returned as a string.

### HttpResponse.Charset

`Chilkat 11.7.0 · sqlserver · HttpResponse · Charset · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'Charset', @sValue OUT
```

The response charset, such as `iso-8859-1`, if applicable. Obviously, responses for GIF and JPG files will not have a charset.

### HttpResponse.ContentLength

`Chilkat 11.7.0 · sqlserver · HttpResponse · ContentLength · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'ContentLength', @iValue OUT
```

The content length of the response, in bytes.

### HttpResponse.DateStr

`Chilkat 11.7.0 · sqlserver · HttpResponse · DateStr · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'DateStr', @sValue OUT
```

Returns the content of the Date response header field in RFC822 date/time string format.

### HttpResponse.Domain

`Chilkat 11.7.0 · sqlserver · HttpResponse · Domain · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'Domain', @sValue OUT
```

The domain of the HTTP server that created this response.

### HttpResponse.FinalRedirectUrl

`Chilkat 11.7.0 · sqlserver · HttpResponse · FinalRedirectUrl · property · read-only · since 9.5.0.49`

```sql
EXEC sp_OAGetProperty @httpResponse, 'FinalRedirectUrl', @sValue OUT
```

Returns the redirect URL for 301/302 responses.

### HttpResponse.FullMime

`Chilkat 11.7.0 · sqlserver · HttpResponse · FullMime · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'FullMime', @sValue OUT
```

Returns the full MIME (header + body) of the HTTP response.

### HttpResponse.Header

`Chilkat 11.7.0 · sqlserver · HttpResponse · Header · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'Header', @sValue OUT
```

The full text of the response header.

### HttpResponse.NumCookies

`Chilkat 11.7.0 · sqlserver · HttpResponse · NumCookies · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'NumCookies', @iValue OUT
```

The number of cookies included in the response.

### HttpResponse.NumHeaderFields

`Chilkat 11.7.0 · sqlserver · HttpResponse · NumHeaderFields · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'NumHeaderFields', @iValue OUT
```

The number of response header fields.

### HttpResponse.StatusCode

`Chilkat 11.7.0 · sqlserver · HttpResponse · StatusCode · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'StatusCode', @iValue OUT
```

The status code (as an integer) from the first line of an HTTP response. If the StatusLine = `HTTP/1.0 200 OK`, the response status code returned is 200.

### HttpResponse.StatusLine

`Chilkat 11.7.0 · sqlserver · HttpResponse · StatusLine · property · read-only`

```sql
EXEC sp_OAGetProperty @httpResponse, 'StatusLine', @sValue OUT
```

The first line of an HTTP response, such as `HTTP/1.0 200 OK`.

### HttpResponse.StatusText

`Chilkat 11.7.0 · sqlserver · HttpResponse · StatusText · property · read-only · since 9.5.0.49`

```sql
EXEC sp_OAGetProperty @httpResponse, 'StatusText', @sValue OUT
```

The text that follows the status code in the 1st line of the HTTP response. For example, i the first line of an HTTP response is `HTTP/1.0 200 OK`, then this property contains `OK`.

### HttpResponse.UncommonOptions

`Chilkat 11.7.0 · sqlserver · HttpResponse · UncommonOptions · property · read/write · since 9.5.0.89`

```sql
EXEC sp_OAGetProperty @httpResponse, 'UncommonOptions', @sValue OUT
EXEC sp_OASetProperty @httpResponse, 'UncommonOptions', @sValue
```

This is a catch-all property to be used for uncommon needs. Can be set to a list of the following comma separated keywords:

- `TakeResponseBody` - Introduced in v9.5.0.89. The GetBody\* methods will transfer the body to the target object instead of copying the contents. This can be useful if the response body is extremely large because it will reduce the overall memory requirement.

## Methods

### HttpResponse.GetBodyBd

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetBodyBd · method · since 9.5.0.64`

```sql
EXEC sp_OAMethod @httpResponse, 'GetBodyBd', @success OUT, @binData
```

Copies the response body to a BinData object.

Returns 1 for success, 0 for failure.

### HttpResponse.GetBodyJarr

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetBodyJarr · method · since 9.5.0.89`

```sql
EXEC sp_OAMethod @httpResponse, 'GetBodyJarr', @success OUT, @jarr
```

Loads the JSON array response body into a JsonArray This method should only be called when it is known that the response body contains a JSON array (beginning with a square bracket '\[' and ending with a square bracket '\]')

Returns 1 for success, 0 for failure.

### HttpResponse.GetBodyJson

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetBodyJson · method · since 9.5.0.89`

```sql
EXEC sp_OAMethod @httpResponse, 'GetBodyJson', @success OUT, @json
```

Loads the JSON response body into a JsonObject. This method should only be called when it is known that the response body contains JSON (beginning with a curly brace '{' and ending with a curly brace '}')

Returns 1 for success, 0 for failure.

### HttpResponse.GetBodySb

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetBodySb · method · since 9.5.0.64`

```sql
EXEC sp_OAMethod @httpResponse, 'GetBodySb', @success OUT, @sb
```

Copies the response body to a Chilkat StringBuilder object.

Returns 1 for success, 0 for failure.

### HttpResponse.GetBodyXml

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetBodyXml · method · since 9.5.0.89`

```sql
EXEC sp_OAMethod @httpResponse, 'GetBodyXml', @success OUT, @xml
```

Loads the XML response body into an XML object. This method should only be called when it is known that the response body contains XML.

Returns 1 for success, 0 for failure.

### HttpResponse.GetCookieDomain

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetCookieDomain · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetCookieDomain', @sResult OUT, @index
```

Returns the domain of the Nth cookie in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns `NULL` on failure

### HttpResponse.GetCookieExpiresStr

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetCookieExpiresStr · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetCookieExpiresStr', @sResult OUT, @index
```

Returns the expiration date/time of the Nth cookie in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns `NULL` on failure

### HttpResponse.GetCookieName

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetCookieName · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetCookieName', @sResult OUT, @index
```

Returns the name of the Nth cookie returned in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns `NULL` on failure

### HttpResponse.GetCookiePath

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetCookiePath · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetCookiePath', @sResult OUT, @index
```

Returns the path of the Nth cookie returned in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns `NULL` on failure

### HttpResponse.GetCookieValue

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetCookieValue · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetCookieValue', @sResult OUT, @index
```

Returns the value of the Nth cookie returned in the response. Indexing begins at 0. The number of response cookies is specified in the NumCookies property.

Returns `NULL` on failure

### HttpResponse.GetHeaderField

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetHeaderField · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetHeaderField', @sResult OUT, @fieldName
```

Returns the value of a response header field accessed by field name.

Returns `NULL` on failure

### HttpResponse.GetHeaderFieldAttr

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetHeaderFieldAttr · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetHeaderFieldAttr', @sResult OUT, @fieldName, @attrName
```

Returns a response header field attribute. As an example, the response charset is simply the GetHeaderFieldAttr(`content-type`,`charset`)

Returns `NULL` on failure

### HttpResponse.GetHeaderName

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetHeaderName · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetHeaderName', @sResult OUT, @index
```

Gets the name of the Nth response header field. Indexing begins at 0. The number of response headers is specified by the NumHeaderFields property.

Returns `NULL` on failure

### HttpResponse.GetHeaderValue

`Chilkat 11.7.0 · sqlserver · HttpResponse · GetHeaderValue · method`

```sql
EXEC sp_OAMethod @httpResponse, 'GetHeaderValue', @sResult OUT, @index
```

Gets the value of the Nth response header field. Indexing begins at 0. The number of response headers is specified by the NumHeaderFields property.

Returns `NULL` on failure

### HttpResponse.SaveBodyBinary

`Chilkat 11.7.0 · sqlserver · HttpResponse · SaveBodyBinary · method`

```sql
EXEC sp_OAMethod @httpResponse, 'SaveBodyBinary', @success OUT, @path
```

Saves the body of the HTTP response to a file.

Returns 1 for success, 0 for failure.

### HttpResponse.SaveBodyText

`Chilkat 11.7.0 · sqlserver · HttpResponse · SaveBodyText · method`

```sql
EXEC sp_OAMethod @httpResponse, 'SaveBodyText', @success OUT, @bCrlf, @path
```

Saves the HTTP response body to a file. This method provides control over CRLF vs bare-LF line-endings. If `bCrlf` is `1`, then line endings are automatically converted to CRLF if necessary. If `bCrlf` is `0`, then line-endings are automatically converted to bare-LF's (Unix style) if necessary.

To save the HTTP response body exactly as-is (with no line-ending manipulation), then call SaveBodyBinary.

Returns 1 for success, 0 for failure.

### HttpResponse.UrlEncParamValue

`Chilkat 11.7.0 · sqlserver · HttpResponse · UrlEncParamValue · method`

```sql
EXEC sp_OAMethod @httpResponse, 'UrlEncParamValue', @sResult OUT, @encodedParamString, @paramName
```

Convenience method for parsing a param's value out of a URL-encoded param string. For example, if a caller passes the following string in `encodedParamString`:

```
oauth_token=ABC&oauth_token_secret=123&oauth_callback_confirmed=true
```

and `oauth_token_secret` in `paramName`, then the return value would be `123`.

Returns `NULL` on failure

## Related classes

[`BinData`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/sqlserver/classes/BinData.md), [`JsonArray`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/sqlserver/classes/JsonArray.md), [`JsonObject`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/sqlserver/classes/JsonObject.md), [`StringBuilder`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/sqlserver/classes/StringBuilder.md), [`Xml`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/sqlserver/classes/Xml.md)

