In my database all tables are using a common table for Sequence(ID_Table).
TABLE_ID has two fields (Common_ID, Table_Name).
If I insert any record in the tab
All the other answers so far declare intermediary variables for SCOPE_IDENTITY(), but it could be simpler:
SCOPE_IDENTITY()
INSERT INTO dbo.TABLE_ID (Table_NAME) VALUES 'Table_Products'; INSERT INTO dbo.Table_Products (ID, Product_Name) VALUES (SCOPE_IDENTITY(),'SomeProduct');