Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

Need code for inserting from 2 tables in 1 stored proc

THANKS!!
Posted

1 solution

Hi,

try the ff codes:

SQL
BEGIN
   INSERT INTO table1(a,b,c) VALUES(1,2,3)

   INSERT INTO table2(d,e,f) VALUES(4,5,6)
END


What's the problem with this??

Regards,
Eduard
 
Share this answer
 
Comments
[no name] 12-Dec-11 17:40pm    
who is that hater trying to deduct me 16pts 5 consecutive times? :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900