SQL Server Integration Services
So.... is it a true statement to say...
Since an unsigned integer can not be negative, if you know you will have positive integers you should use an unsigned data type. Additionaly, because no "sign" information is stored it can hold a larger number
Thanks!
1Dave wrote:
So.... is it a true statement to say...
Since an unsigned integer can not be negative, if you know you will have positive integers you should use an unsigned data type. Additionaly, because no "sign" information is stored it can hold a larger number
Thanks!
Just subtract 2,147,483,647 from your UI before inserting it into SQL Server ![]()
This actually has caused a few issues in some of the larger warehouses I've worked on. We used an int for a key in a fact that was supposed to be low volume, but due to some business changes, it had to handle a much larger volume of inserts than was anticipated. If we'd had an unsigned int, it would have scaled to the new volume without any changes. Since it wasn't, we had to decide between renumbering our keys (starting from -2,147,483,648), or switching to a bigint (twice the storage).