SELECT max(cast(column_name as int)) + 1
FROM table_nameLets look at the real time example:I have a table named PRODUCTS. If want to get the Max +1 ProductID(PK) from this table, can use the following code:
SELECT max(cast(ProductID as int)) + 1
FROM PRODUCTS