Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Gisung
Advisor
Advisor
0 Kudos

Hi,

As you know SAP Sybase IQ does not support the Adaptive Server data types UNIVARCHAR.

But You can get the univarchar data from ASE using insert location statement.


Here are steps to get the univarchar data.


[In ASE]

  1> create table univarchar_test(c1 univarchar(100))

  2> go

  1> insert into univarchar_test values('univarchar test')

  2> go

  (1 row affected)

  1> select * from univarchar_test

  2> go

  c1

  -----------------------------------------------------------------------------

  0x0075006e0069007600610072006300680061007200200074006500730074

[IN IQ]

1) create the interfaces file for insert location.

  /work/gjang_home>cat interfaces

  ASE1570

          master tcp ether sybibm-ce1 1570

          query tcp ether sybibm-ce1 1570

2) If the user is different from ASE, create extern login and server as follows.

  CREATE SERVER ASE1570 class 'ASEODBC' USING 'sybibm-ce1:1570';

  create externlogin DBA to ASE1570 remote login sa identified by '' ;

3) Create table for univarchar table.

  create table univarchar_test(c1 varchar(100))

4) Get the univarchar data from ASE using insert location.

  insert univarchar_test location 'ASE1570.master' { SELECT * FROM univarchar_test};

  select * from univarchar_test;

 
  [c1]

  univarchar test

Best Regards,

Gi-Sung Jang

2 Comments