The accepted answer to this discussion says
SELECT
is_identity
FROM sys.columns
WHERE
object_id = object_id('assignments')
AND name = 'id'
tells whether the field id of table assignments is an auto-incremented field.
When i run this, i get the value 1 for the is_identity field.
Does this 1 mean true-- "the key of this table is autoincremented"-- and is there any exception to this?
Way too new to SQL Server -- looking for verification.
//=====================
EDIT:
Added the following to the query:
SELECT
is_identity, max_length
FROM sys.columns
WHERE
object_id = object_id('assignments')
AND name = 'id'
max_length is coming out as 4. id is of type int, and from what i know, int is up to 2^32. higher than 9999 in any case. What's missing here?