I have the following two sql tables:

The GlassesID Column in Glasses table is the primery key defined as auto Increaseble.
The GlassesColor table has GlassesID(not auto Increaseble) colomn that defined as Foreign Key.
When Glasses table get a record (from stored procedure)GlassesID automatecly get value.
The GlassesColor.GlassesID column must be set with value from Glasses.GlassesID Column.
My question is how can i implement this? i,e… How can i set column field with related column field in another table?
Immediately after you insert a record into Glasses table, get the ID from Glasses table
Then you can use @GlassesID to insert into GlassesColor table.