• Stefan Krzywicki (11/30/2012)


    Koen Verbeeck (11/30/2012)


    I once had a fact table that could have more than 2 billion rows, but still less than a bigint, so I started with a negative seed so I could keep my identity column as an int.

    Why didn't you want it as a bigint?

    Because it takes up more bytes than an int?

    On 2^31-1 rows (the maximum if you only take positive identity values) you take up 8,5 GB. If you take a bigint, for the same data, you consume another 8,5GB.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP