Quantcast
Channel: SCN: Message List - SAP Applications on SAP Adaptive Server Enterprise (SAP ASE)
Viewing all articles
Browse latest Browse all 3678

proxy table univarchar issue

$
0
0

Hi all,

 

     I encountered one problem about import univarchar data to proxy table from one table in another local database. When I execute " insert into proxy_db..t1 select col1,col2 from local_db..t1 ", it did insert the rows to proxy_db..t1, but col2 with univarchar datatype is null, and ASE didn't return any error messages.

 

Environment Descriptions:

  • OS: x86 SunOS
  • ASE: ASE15.5
  • Default charset: ISO 8859-1 (Latin-1)
  • Servers: local_server, remote_server
  • DBs: proxy_db and local_db are on the same ASE server (local_server) , proxy_db is mapped to remote_server..remote_db
  • Table: t1 in all three databases ( proxy_db, local_db, remote_db) have the same structure
  • SQLs:

          CREATE TABLE  t1                                           

            (

                  col1            varchar(10)                                 NULL,                                                                         

                  col2            univarchar(10)                  NULL     

            ) 

 

  • Result: select * from proxy_db..t1

          Successful result:

               col1: ab

               col2: 10

          Failed result:

               col1: ab

               col2: NULL

 

Test Summary:

 

DescriptionSQL Statement
Result
select into temp table in local databaseselect col1, col2 into #tt from local_db..t1Succeed
select into temp table in proxy database
select col1,col2 into #tt from proxy_db..t1Succeed
directly insert into proxy tableinsert into col1,col2 into proxy_db..t1 values('ab','10')Succeed
insert into local table in non-proxy databaseinsert local_db..tb_test (col1,col2) select col1,col2 from local_db..t1Succeed
insert into proxy table from table in local databaseinsert into proxy_db..t1 (col1,col2) select col1,col2 from local_db..t1Failed
bcp

bcp out from local_db..t1

bcp in to proxy_db..t1

Succeed

 

 

 

     I didn't find constraints about univarchar for proxy databases and the sql statement (insert...select from).  Does anyone have ever met the same issues before or could anyone share me some clues for this? That would be a great help for me, thank you so much in advance!


Viewing all articles
Browse latest Browse all 3678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>