Skip to content

Database.Guide

conversion functions

How TRY_CAST() Works in SQL Server

December 18, 2021 by Ian

In SQL Server, an often used function is CAST(), which converts an expression of one data type to another. But if the cast doesn’t succeed, then it returns an error.

Enter TRY_CAST().

The TRY_CAST() function doesn’t return an error if the cast fails. Instead, it returns NULL.

There are some occasions however, where it will return an error.

Read more

Categories SQL Server Tags conversion functions, functions, how to, t-sql

How TRY_CONVERT() Works in SQL Server

December 18, 2021 by Ian

In SQL Server, the TRY_CONVERT() function is very similar to the CONVERT() function, except that TRY_CONVERT() doesn’t return an error if the conversion fails (CONVERT() does).

Instead, the TRY_CONVERT() function returns NULL if the conversion doesn’t succeed.

There are some occasions however, where TRY_CONVERT() will return an error.

Read more

Categories SQL Server Tags conversion functions, functions, t-sql, what is

CONVERT() in SQL Server

January 24, 2023December 17, 2021 by Ian

In SQL Server, the CONVERT() function converts an expression of one data type to another.

Here’s a quick overview of the function with examples.

Read more

Categories SQL Server Tags conversion functions, functions, t-sql, what is

How CAST() Works in SQL Server

December 18, 2021December 17, 2021 by Ian

In SQL Server, the CAST() function converts an expression of one data type to another.

Here’s a quick overview of the function with examples.

Read more

Categories SQL Server Tags conversion functions, functions, t-sql, what is

ROWIDTONCHAR() Function in Oracle

September 12, 2021 by Ian

In Oracle Database, the ROWIDTONCHAR() function converts a ROWID value to NVARCHAR2 data type

It’s similar to the ROWIDTOCHAR() function, except that ROWIDTOCHAR() converts a ROWID value to VARCHAR2 data type.

Read more

Categories Oracle Tags conversion functions, functions, what is

ROWIDTOCHAR() Function in Oracle

September 12, 2021 by Ian

In Oracle Database, the ROWIDTOCHAR() function converts a ROWID value to VARCHAR2 data type.

Read more

Categories Oracle Tags conversion functions, functions, what is

CHARTOROWID() Function in Oracle

September 9, 2021 by Ian

In Oracle Database, the CHARTOROWID() function converts a string value to ROWID data type.

Read more

Categories Oracle Tags conversion functions, functions, what is

TO_DATE() Function in Oracle

September 8, 2021 by Ian

In Oracle Database, the TO_DATE() function converts its argument to a value of DATE data type.

Read more

Categories Oracle Tags conversion functions, date functions, functions, what is

RAWTONHEX() Function in Oracle

September 7, 2021 by Ian

In Oracle Database, the RAWTONHEX() function converts a raw value to hexadecimal.

It’s similar to the RAWTOHEX() function, except that its value is always returned in the national character set.

Read more

Categories Oracle Tags conversion functions, functions, what is

RAWTOHEX() Function in Oracle

September 6, 2021 by Ian

In Oracle Database, the RAWTOHEX() function converts a raw value to hexadecimal.

Read more

Categories Oracle Tags conversion functions, functions, what is
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page10 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved