Equivalent data type for an Oracle varchar2(byte) in T-SQL

pmscorca 1,052 Reputation points
2024-02-07T11:15:09.2233333+00:00

Hi, I need reading and writing Oracle data having the varchar2(byte) as a data type by using the corresponding data type in T-SQL (SQL Server and Synapse). Which is the equivalent data type in T-SQL for an Oracle varchar2(byte)? Thanks

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
0 comments No comments
{count} votes

Accepted answer
  1. LiHongMSFT-4306 31,566 Reputation points
    2024-02-08T03:11:38.3033333+00:00

    Hi @pmscorca Below are summary tables show how Character and binary string datatypes translated from Oracle to SQL Server.

    User's image Referring from this article: Datatypes translation between Oracle and SQL Server part 1: character, binary strings.

    Best regards,

    Cosmog Hong


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2024-02-07T11:27:14.2866667+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.