Give identity insert for the table1 then only you can get the id column value
below is code to do
CREATE TABLE Tabel1
(Id int not null Identity(1,1),
Name nvarchar not null,
State nvarchar not null,
City nvarchar not null)
CREATE TABLE Tabel2
(Reg_id int not null,
C_name nvarchar not null,
State nvarchar not null,
City nvarchar not null)
GO
CREATE procedure insert_details
(@Name nvarchar(50), @State nvarchar(50), @City nvarchar(50))
as begin
DECLARE @ID BIGINT
insert into Tabel1(Name,State,City)values(@Name,@State,@City)
SET @ID=@@IDENTITY
insert into Tabel2(Reg_id ,C_name,State,City)values(@ID, @Name,@State,@City)
END