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:
Description | SQL Statement | Result |
---|---|---|
select into temp table in local database | select col1, col2 into #tt from local_db..t1 | Succeed |
select into temp table in proxy database | select col1,col2 into #tt from proxy_db..t1 | Succeed |
directly insert into proxy table | insert into col1,col2 into proxy_db..t1 values('ab','10') | Succeed |
insert into local table in non-proxy database | insert local_db..tb_test (col1,col2) select col1,col2 from local_db..t1 | Succeed |
insert into proxy table from table in local database | insert into proxy_db..t1 (col1,col2) select col1,col2 from local_db..t1 | Failed |
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!