Symptom
- You are using SELECT INTO to insert rows from another table into a #table.
- You have changed a corresponding tinyint column into int in the #table.
- You noticed the value inserted is wrong (i.e not the same as the source table).
For example:
use tempdb
go
create table testA (a tinyint not null)
go
select convert (int,0) a into #testA from testA where 1=2
go
insert into testA values (20)
go
select * into existing table #testA from testA
go
select * from #testA
go
a
-----------
335544320
(1 row affected)
Read more...
Environment
SAP Adaptive Server Enterprise (ASE)
Product
SAP Adaptive Server Enterprise all versions ; Sybase Adaptive Server Enterprise all versions
Keywords
proxy, datatype, match , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.