Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
waterduck
Aged Yak Warrior
982 Posts |
Posted - 2009-09-10 : 00:07:12
|
DECLARE @tempfun TABLE(col1 INT IDENTITY(1,1), col2 INT)DECLARE @tempfunchild(colx INT IDENTITY(1,1), col1 INT, col3 INT)nows the problem....how to insert @tempfunchild with col1 refering to insert statement of @tempfun Hope can help...but advise to wait pros with confirmation... |
|
|
Nageswar9
Aged Yak Warrior
600 Posts |
Posted - 2009-09-10 : 00:15:06
|
| Hi,declare @id intinsert into @tempfun ( col2 )select ---------------select @id = scope_identity()insert into @tempfunchild ( col1,col3)select @id, ------ |
 |
|
|
waterduck
Aged Yak Warrior
982 Posts |
Posted - 2009-09-10 : 01:19:21
|
thx nages Hope can help...but advise to wait pros with confirmation... |
 |
|
|
Nageswar9
Aged Yak Warrior
600 Posts |
Posted - 2009-09-10 : 01:42:24
|
quote: Originally posted by waterduck thx nages Hope can help...but advise to wait pros with confirmation...
Welcome |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
|
|
|