SQLServer

    Supported Version

    How to create an SQLServer Load Node

    1. -- MySQL extract node
    2. CREATE TABLE `mysql_extract_table`(
    3. `id` BIGINT,
    4. `name` STRING,
    5. `age` INT
    6. ) WITH (
    7. 'connector' = 'mysql-cdc-inlong',
    8. 'username' = 'inlong',
    9. 'password' = 'inlong',
    10. 'table-name' = 'user'
    11. )
    12. -- SQLServer load node
    13. CREATE TABLE `sqlserver_load_table`(
    14. `id` BIGINT,
    15. `name` STRING,
    16. ) WITH (
    17. 'connector' = 'jdbc-inlong',
    18. 'url' = 'jdbc:sqlserver://localhost:1433;databaseName=column_type_test',
    19. 'username' = 'inlong',
    20. 'password' = 'inlong',
    21. 'table-name' = 'dbo.work1'
    22. )
    23. -- write data into SQLServer
    24. INSERT INTO sqlserver_load_table

    Data Type Mapping