It should be INT not BIGINT. in the source you change GetInt16 to GetInt32, Getint16(smallint) has a cap of 32767 and GetInt32(INT) has a cap of 2147m if you change in database to BIGINT then the value in database can go above 2147m but the source is capped at 2147m and that will cause problems. Thats why you should change to INT. And no you cannot change to GetInt64 in the source...