Data being lost when attribute size changed

If you think that something doesn't work in Aware IM post your message here
Post Reply
denisv
Posts: 253
Joined: Thu Jan 19, 2006 4:36 pm
Location: Ireland
Contact:

Data being lost when attribute size changed

Post by denisv »

I was under the impression that naturally existing data in an attribute will be lost if you change the attribute type or make it smaller.

Should it not be the case that if you increase the size of the attribute while not changing the type that the data should be retained ?

I changed the size of an attribute from 500 - 2000. While I did get the warning of data loss, I was in test and proceeded. All data in that attribute was lost.

If this is the case it coudl have significant impact on distributing BS's where a request has come in to increase a field length.
aware_support2
Posts: 595
Joined: Sun Apr 24, 2005 2:22 am
Contact:

Post by aware_support2 »

Which database are you using?
Aware IM Support Team
denisv
Posts: 253
Joined: Thu Jan 19, 2006 4:36 pm
Location: Ireland
Contact:

Post by denisv »

MSSQL 2000
Aware V2 B870
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

For SQL Server the data will not be lost only if new length is less than 1000. For greater lengths a different column type is created which cannot preserve data in the old column type.

This is SQL Server limitation
Aware IM Support Team
denisv
Posts: 253
Joined: Thu Jan 19, 2006 4:36 pm
Location: Ireland
Contact:

Post by denisv »

Ok, good to know.

Thanks

DV
Post Reply