Auto increment identifier in MSSQL 2008
I’ve had quite a long ride finding a MSSQL 2008 equivalent to MySQL auto_increment primary key. It’s not that IDENTITY didn’t work using it while typing the CREATE table statement in T-SQL. I wanted to utilise it using Microsoft SQL Server Management Studio. There, I just didn’t scroll down enough on my 13″ screen to check the properties and flick the Identity Specification property to Yes. Pertty lame, really.
MSDN help (F1, yes, sometimes it really does help me. Not as many times as on Mac OS platform. But it’s better than nothing) also describes what data types the property identity can be assigned to: Continue reading…

