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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Query About Selecting from an Insert statement

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-04-02 : 20:26:40
Amol writes "I have 2 tables, T1 and T2. Both have Autonumber keys. The key for T1 is a Not NULL Foreign Key in T2. I need to add a new record to both those tables. I want to insert into T1, get the newly created key value and use that when creating a record in T2. Any ideas on how i could do it?"
   

- Advertisement -