Hi ,
i have these two tables
create table [dbo].[test1]( [test1_id] [int] identity(1,1) primary key, [test2_id] [int] not null ) create table [dbo].[test2]( [test2_id] [int] identity(1,1) primary key, [test1_id] [int] not null ) alter table [dbo].[test1] add constraint [fk_test1_test2_id] foreign key([test2_id]) references [dbo].[test2] ([test2_id]) alter table [dbo].[test2] add constraint [fk_test2_test2_id] foreign key([test1_id]) references [dbo].[test1] ([test1_id])
I want to insert the data into two tables in one insert statement. How can i do this using T-SQL ?
Thanks in advance.